Professional Documents
Culture Documents
: 02
Objectives:
To get introduced to PLC.
To learn about ladder diagram.
To learn how to design a ladder diagram using PLC software (LOGO).
To make logic gates using PLC.
To make counter using PLC.
To make Timer using PLC.
Theory:
PLC stands for Programmable Logic Controller. A programmable logic
controller (PLC) is an industrial solid-state computer that monitors inputs and
outputs and makes logic-based decisions for automated processes or machines. It
was introduced to eliminate issues such as high-power consumption that arose
from the use of relays to control manufacturing processes.
OR Gate:
The output of an OR Gate only returns “LOW” when all of its inputs are at a
logic level “0”. In other words, any “HIGH” input will give a “HIGH”, logic level
“1” output.
Truth Table
Circuit Diagram
Truth Table
Circuit Diagram
NOT Gate:
NOT Gates are single input devices which have an output of logic level “1”
when input is logic level “0” and output of logic level “0” when input is logic level
“1”. In other words, it inverts the input signal.
Truth Table
Input Output
0 1
1 0
Circuit Diagram
PLC Counter:
A PLC Counter is a function in PLC programming that is used to measure things
like how many times an event has happened in a process or how many times a product
has been produced.
Up Counter
Down Counter
Up and Down Counter
These are the blocks that are used as a counter in PLC ladder logic. All counter blocks have some
inputs and some outputs.
Inputs,
CU – Count Up Input
CD – Count Down Input
S – Set Input for presetting counter
PV – Value for presetting counter
R – Reset Input
Outputs,
Q – Status of Counter
CV – Current counter value
CV_BCD – Current counter value in BCD coded
Up Counter(S_CU):
For each pulse at Count Up(CU) bit, the current Counter Value(CV) will be increased by 1. When
there is a pulse at Set input(S), it will set Presetting Value(PV) at the current Counter Value(CV).
When there is a pulse at Reset input(R), the counter block will get reset and the current counter value
is set at 0 again.
Down Counter(S_CD):
For each pulse at Count Down(CD) bit, the current Counter Value(CV) will be decreased by 1. When
there is a pulse at Set input(S), it will set Presetting Value(PV) at the current Counter Value(CV).
When there is a pulse at Reset input(R), the counter block will get reset and the current counter value
is set at 0 again.
Up Down Counter(S_CUD):
At each pulse at Count Up(CU) bit, it will increase the current Counter Value(CV), and each pulse at
Count Down(CD) bit, will decrease the current Counter Value(CV).
When there is a pulse at the Set input(S), it will set Presetting Value(PV) at the current Counter
Value(CV).
When there is a pulse at Reset input(R), the counter block will get reset and the current Counter value
is set at 0 again.
Initial State:
Count Done:
PLC Timer:
Timer plays a significant role to control the operation for a specific period of time. As a very basic
example, we require a timer to control the transition from star to delta function in a star-delt electrical
motor starter.
There are lots of applications where timers are used in PLC programming.
These are the blocks used as a timer in Siemens PLC ladder logic.
Each timer block has bits like S, R, Q and words like TV, BI, and BCD.
These are the blocks uses as a Timer block in Allen Bradley PLC.
Each timer block has EN, DN, and TT bits.
Initial state:
Final State: