4.ladder Logic Programming
4.ladder Logic Programming
•Programming languages
•Electrical Ladder Diagram
•Ladder Logic Diagram
•Ladder Logic Instructions
•Combining Instructions
•Program execution
Programming Languages
Motor – M1
Auxiliary Holding
Contact
• Each ladder contains at least one control
(output) instruction and usually contains one or
more condition instructions (Input)
• On the right hand side , a control instruction is
the operation or function that is activated/de-
activated by rung logic – such as output
energize (Valve, solenoid alarms , etc.) bit
commands, timers, and counters.
• If logical continuity exists , the PLC energises
the control output. IF it does not exist the
control instruction will be off or de-energized
state.
Ladder logic Instructions
• Normally open Instruction (XIC) – Check if closed
Input Output
Input Device terminal Ladder Program terminal Output
on PLC on PLC Device
PB1
Input Output
Input Device terminal Ladder Program terminal Output
on PLC on PLC Device
PB1
Input Output
Input Device terminal Ladder Program terminal Output
on PLC on PLC Device
PB1
Input Output
Input Device terminal Ladder Program terminal Output
on PLC on PLC Device- off
PB1
PB1
N. O. Push button –
Activated (XIC)
PB1
N. C. Push button – Not
Activated (XIC)
PB1
N. C. Push button –
Activated (XIC)
PB1
Data The status of instruction
Table bit
XIC XIO OTE
Logic 0 false True False