PLC tutorial and guides for automation

PLC tutorial and guides for automation

PLC, programmable logic controller, automation guides

PLC tutorial and guides for automation RSS Feed
 
 
 
 

PLC tutorials. Complete PLC practical guides

We give you the comprehensive knowledge you need on how to design a PLC project, from its conceptual design, input and output selection, circuitry design, hardwiring, commissioning and troubleshooting.

Our comprehensive industrial insights foster innovative solutions. Combining industry-specific experience with extensive technical expertise, our seasoned professionals develop technology solutions that address the unique challenges of our clients’ markets. You can learn how our expertise can give you new insights for your project.

PLC is the most suitable, reliable and user-friendly controller for any of your automation applications.

It has been around for the past 40 years and its reputation in terms of robustness and easy-to-troubleshoot wiring and programming has been the main factor of the increasing demand for the PLC technology.

autonomous car

currently im planning to build an autonomous car. the first one made in malaysia. the idea is that to use inertia measurement unit (IMU) combined with GPS for better accuracy. National Instrument PXI chassis will be used as the chassis for the controller. In the controller, the modules to be included are CAN communication card to communicate between IMU and actuation devices such as servo motor. Other modules to be used are sourcing and sinking digital I/O. High speed pulse input and output. As for external physical sensor, laser sensor from SICK will be used. The controller will be designed using Labview.

The total cost of the project is USD250,000. Im working to get the fund now. This is one hell of a project :D

Get your copy of PLC projects tutorial and guides now!.. only USD8.90!!

PLC tutorials

PLC tutorials

Apart from on-off sequential control, this book also covers the pulse output programming and wiring to control AC servo motor. A few examples will be described in this book together with the wiring and programming for better understanding.

Hurry up, get your copy today! Only USD 8.90!

Please Enter Your Email

File size: 2.75MB

*this is a spam free application. no email will be wrong used.

This e-book will be sent to you by email within 72 hours after the payment has been confirmed by PayPal.

PLC project tutorials and guides is out now!!

Finally! the book is available to help you with your PLC project. It covers the necessary aspect of PLC programming and wiring.

The book has 35 pages and has been written with the view of making the PLC system suitable for industrial and educational purposes.

A case study is used to describe the construction of the whole project in a comprehensive way from the planning, making flowchart, hardwiring, and programming. The programming style used also is easy to be applied for other PLC applications and the wiring also is very user-friendly and easy to troubleshoot.

PLC tutorials

PLC tutorials

Apart from on-off sequential control, this book also covers the pulse output programming and wiring to control AC servo motor. A few examples will be described in this book together with the wiring and programming for better understanding.

Hurry up, get your copy today! Only USD 8.90!

Please Enter Your Email

File size: 2.75MB

*this is a spam free application. no email will be wrong used.

This e-book will be sent to you by email within 72 hours after the payment has been confirmed by PayPal.

long term timers

Example 1:
Long-term Timers
The following program examples show two ways to create long-term timers
with standard TIM and CNT instructions.
Two TIM Instructions
In this example, two TIM instructions are combined to make a 30-minute
timer.

long term timer

long term timer

TIM and CNT Instructions

In this example, a TIM instruction and a CNT instruction are combined to make a 500-second timer.TIM 0001 generates a pulse every 5 s and CNT 0002 counts these pulses. The set value for this combination is the timer interval × counter SV. In this case, the timer SV would be 5 s x 100 = 500 s. With this combination, thelong-term timer’s PV is actually the PV of a counter, which is maintained through power interruptions.

long term timer

long term timer


two stage counter

When an SV higher than 9999 is required, two counters can be combined as shown in the following example. In this case, two CNT instructions are combined to make a BCD counter with an SV of 20,000.

PLC ladder logic two stage counter

PLC ladder logic two stage counter

ladder logic explanation

many of the visitors asked me about the ladder logic i wrote on the sample project. actually it is only a small part of automation. A lot more can be done but that is the basic to move a pneumatic actuator which is largely used in industries such as automotive manufacturing.

ok i think it is best for us to go back to the example i gave in the sample project page. Please save the ladder logic from the link and we will go rung by rung for better understanding. it is important if we have the same view that the vertical line on the left hand side of the ladder logic represent 24V potential and the vertical line on the right hand side represents 0V potential.

At rung 0 (numbered there 0000), we can see that when we first press the start button (addressed at 0.00), it will ON the bit address 200.00. This bit 200.00 is an empty bit and can be used for sequencing purposes. You can also use other empty bit address as your sequencing bit. After 200.00 ON, it will latch itself so that it will remain in ON state. If any of the alarm (250.01 and 250.03) turns ON, the sequencing bit will turn OFF and the actuator will stop.

At rung 1, since the cycle will start when the cylinder has not come out yet, so the BWD reed switch (reed switch at the bottom) will initially turn ON (it is set as the origin). Input Bwd reed switch is addressed at 0.01 and when it is turned ON, second sequencing bit 200.01 will also turn ON and latch itself. The first error timer will turn ON to count the time taken for the actuator to reach forward reed switch. The time allowed as in this programming is only 10 seconds for the actuator to complete its first half cycle.

At rung 2, this rung will ON the output coil 250.00 that will later be connected to the solenoid valve in rung 9 and the actuator will keep going forward (since addressed 200.01 has been latched) until the forward reed switch is ON.

At rung 3, if the error timer forward T5 has exceeded the 10 second, it will turn ON the address 250.01 (alarm for first half cycle forward).

At rung 4, when the actuator has moved forward, it will move until it reaches the forward reed switch, then the forward reed switch (0.02) will turn ON. Sequence bit 200.01 that was latched before at rung 1 will allow the sequence bit 200.02 (ready to OFF SV) to turn ON and latch itself. Error timer backward will also turn ON until one cycle complete sequence bit (200.03) is turned ON.

At rung 5, the latched sequence bit 200.02 will also latched 250.02 to turn OFF the solenoid valve so the actuator will move backward.

At rung 6, if the error timer forward T5 has exceeded the 10 second, it will turn ON the address 250.03 (alarm for second half cycle backward).

At rung 7, the latched sequence bit 200.02 will allow sequence bit 200.03 to turn ON and latch itself when the actuator goes backward and turn ON the Bwd reed switch. Now the actuator has completed 1 cycle and if this is achieved, the turned ON sequence bit 200.03 will not allow the alarm at rung 6 to turn ON.

At rung 8, this rung will make the system runs in a cyclic manner. After 1 cycle is completed, the sequence bit 200.03 will turn ON and latch itself and therefore turning the reset cycle bit addressed at 200.04 to turn ON. When this bit is turned ON, it will turn OFF the second sequencing bit (200.01) at rung 1 and therefore turning OFF other sequencing bit (200.02 and 200.03) since they are also interrelated. When 200.03 is turned OFF, it will also turn the reset cycle bit 200.04 OFF. So the system will go back as normal and the second cycle will start as soon as the bwd reed switch is turned ON. This rung is very important because it causes to system to loop.

At rung 9, 250.00 will turn output bit 100.00 ON so that the solenoid valve will ON until 250.01 is turn ON.

At rung 10, when either one of the alarm 250.01 and 250.03 is turned ON, output bit 100.01 that is connected to the alarm light will turn ON and the light will be switched ON. This is a good example on how to call the same output multiple times in your programming.

PS: take note that in this example, the alarm will only ON momentary to stop the system. it is purposely not latched.

PLC project tutorials and guides is out now!!

Finally! the book is available to help you with your PLC project. It covers the necessary aspect of PLC programming and wiring.

The book has 35 pages and has been written with the view of making the PLC system suitable for industrial and educational purposes.

A case study is used to describe the construction of the whole project in a comprehensive way from the planning, making flowchart, hardwiring, and programming. The programming style used also is easy to be applied for other PLC applications and the wiring also is very user-friendly and easy to troubleshoot.

PLC tutorials

PLC tutorials

Apart from on-off sequential control, this book also covers the pulse output programming and wiring to control AC servo motor. A few examples will be described in this book together with the wiring and programming for better understanding.

Hurry up, get your copy today! Only USD19.90!

Please Enter Your Email

File size: 2.75MB

*this is a spam free application. no email will be wrong used.

This e-book will be sent to you by email within 72 hours after the payment has been confirmed by PayPal.

SERVO motor training

i have been working with servo motor for quite sometimes. anyhow, it is also good to have training from the original equipment manufacturer.

PLC servo system

PLC servo system

things at hand:
im on a servo motor training organized by OMRON malaysia. fundamentally we are not learning about a linear servo system but overall on motion control system which also include a linear motion system.

difference:

linear servo system: PLC will supply pulse input to the motor drive (digital type) then the motor driver will give power through PWM to the AC servo motor. feedback will be given by encoder to the driver and driver will do the error counter.

motion control system: PLC will supply pulse to the motion control unit. then motion control unit will give analog input 0-10V to motor driver. the motor driver will give power through PWM to the AC servo motor. feedback will be given by encoder to the driver and driver will give the error signal to the motion control unit to do the error counting.

i will start explaining on the linear servo system. basically, there are two common ways to control the direction of the motor which is using the CW/CCW pulse mode or using the pulse + direction mode. u need two pulse outputs from the servo motor to do this. make sure u know the setting from your plc of how the pulses are being output. please check with the manual of the pulse timing diagram for better understand. it is important also to know the response time of the pulse.

make sure the wiring is correct. basic outputs from the PLC to the servo driver (amplifier) are the pulse outputs (u need two outputs here, if you are using the pulse + direction, one output will supply the pulse whereas the other output will tell the servo amplifier the direction. if u are in CW/CCW mode, one output is for clockwise pulse and the other is for counter clockwise pulses).

u also need to output the servo RUN signal to on the motor and Reset signal to reset any alarm. just for extra information, not all alarms can be reset from the reset signal, for some alarms, u need to reboot the servo driver.

for the input to the PLC from the servo driver, u need the feedback from the AC servo motor encoder. if you are using open collector, one feedback input is enough. it will count the Z phase from the encoder and pass it back to the plc to do the pulse count.

u also can tap into the PLC the ‘pulse output complete’ signal from the servo driver. this is important to make sure all pulse have been supplied and the motor is ready for next move.

here is a sample of ladder diagram on how u can jog your motor backward, tell the motor to count how many pulses has it moved backward, and use the same amount of pulses to go forward. since what i use is pulse+direction mode, when i moved backward, the encoder gave me a negative-signed pulses. i need to make it positive so a little arithmatics has been done so that the amount of pulses use to move forward, is the same amount of pulses supplied to the motor to move backward. it is also worth noting here that the PULS instruction is to tell the plc what is the amount of pulses to be supplied, the SPED instruction is to tell the frequency of the pulses, and this will determine the speed of the servo system, and the PRV is the instruction to tell the PLC to receive the pulse count from the Servo driver output ( input to the PLC).
click HERE for the ladder logic.
for more information, stay tuned for my ebook which will be out soon.

plc programming

most of the visitors to this website did not realize there is a sample PLC project in this website. i am currently busy creating an e-book that will give a complete guide on PLC programming together with the hardwiring. so keep looking for the updates.

Free ladder logic tutorial

This is another simple ladder logic programming that you can try. A simple water level controller which is practical.

Often people say fail to plan, you plan to fail. It is very-very important to plan your work in designing your PLC projects. identify your project requirements, inputs and outputs involve etc.

Today i will give you a free PLC programming on how to do a PLC controller for a water tank system. This is a typical exam question for PLC beginner.

The inputs involve are 1 start button addressed at 0.00 and  2 level switches addressed at 0.01 and 0.02 respectively. The one address at 0.01 will turn ON whenever the tank is empty thus it will switch ON the water valve (output) which is address at 10.00. The other level switch will turn ON whenever the tank is full and consequently will turn the water valve OFF. By doing this control, the water tank will not run empty. The water will fill into the tank whenever the empty switch is ON.

Click HERE for the ladder logic!