Professional Documents
Culture Documents
PLC Programming Languages: Liju G Chacko
PLC Programming Languages: Liju G Chacko
PLC Programming Languages: Liju G Chacko
Programming Languages
Liju G Chacko
Liju G Chacko
1 / 25
Table of contents
1
Introduction
Liju G Chacko
2 / 25
Introduction
Introduction
PLC(Programmable logic controller) is a multiple
inputs and output digital computer used for
automation of electromechanical processes.
These are the processes normally a PLC will carry
out during one cycle.
Step 1-: Self diagnosis.
Step 2-: Read inputs and store values.
Step 3-: Process logics/instructions.
Step 4-: Write outputs
(Above four steps are repeated again and again)
PLCs are programmed using application a software on personal
computers. From computer, binary or pseudocode will be
downloaded to PLC through Ethernet, RS-232, RS-485 or
RS-422 cable.
Liju G Chacko
3 / 25
4 / 25
Liju G Chacko
5 / 25
Liju G Chacko
6 / 25
Liju G Chacko
7 / 25
Explanation
IF-THEN-ELSIF-ELSE-END IF normal if-then structure
CASE-value:-ELSE-END CASE a case switching function
FOR-TO-BY-DO-END FOR
for-next loop
WHILE-DO-END WHILE
while loop
TAN(A), COS(A), A**B,,. . .
Basic math functions
Liju G Chacko
8 / 25
Liju G Chacko
9 / 25
10 / 25
Examine if close
Examine if open
Liju G Chacko
11 / 25
Output energized
Output latch/set
Output unlatch/unset
Liju G Chacko
12 / 25
Function Blocks
On Delay Timer
Liju G Chacko
13 / 25
Liju G Chacko
14 / 25
Liju G Chacko
15 / 25
Liju G Chacko
16 / 25
Liju G Chacko
17 / 25
Liju G Chacko
18 / 25
Liju G Chacko
19 / 25
Set(S)
The action starts execution as soon as the step is active,
continues till R qualifier is executed .
Liju G Chacko
20 / 25
Liju G Chacko
21 / 25
EXPLANATION
Non-stored(null qualifier)
Non-stored
Overriding reset
Set(stored)
time limited
timer delayed
pulse
stored and time delayed
delay and stored
stored andtime limited
Pulse(rising edge)
pulse(falling edge)
22 / 25
Liju G Chacko
23 / 25
References
Liju G Chacko
24 / 25
THANK YOU