Professional Documents
Culture Documents
PLC Programming Languages: Liju G Chacko
PLC Programming Languages: Liju G Chacko
Programming Languages
Liju G Chacko
1 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 PLC Programming Languages 3 / 25
PLC programming languages
Structures in ST Language
Structures 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
Function Blocks
Set(S)
The action starts execution as soon as the step is active,
continues till R qualifier is executed .
Liju G Chacko PLC Programming Languages 20 / 25
PLC programming languages Sequential Function Chart
References