Professional Documents
Culture Documents
Lecture 3
Learning Objectives
Know different types of programming languages used in
PLC
Understand the basic programming techniques of PLC
Note: The instruction mnemonic may vary across different series of the Allen
Bradley PLCs.
operation labeled
with circle 1 is
performed first as it
is the deepest
nested term, and
operations proceed
with circle 2,circle 3
and circle 4
consecutively
(Mitsubishi PLC
codes)
example of IL using
the syntax defined
in IEC 61131-3
example demonstrating
the use of TR instruction
(similar to MPS, MPP &
MRD instructions defined
in IEC 6113-3) in Omron
PLC
example
demonstrating
the use of MCR
instruction in
Allen Bradley
PLC
example
demonstrating the
use of MC & MCR
instructions in
Mitsubishi PLC
(N0 is the nested
number, maximum
7,i.e. a total of 8
nested levels; SP
means space)
example
demonstrating
the use of IL &
ILC instructions
in Omron PLC
Multiplexer
The Timers
four fundamental types
on-delay timer will wait for a set time after a line of
ladder logic has been true before turning on, but it
will turn off immediately
off-delay timer will turn on immediately when a line
of ladder logic is true, but it will delay before turning
off
retentive timer will sum all of the on or off time for a
timer, even if the timer never finished
non-retentive timer will start timing the delay from
zero each time
The Counters
two basic counter types:
count-up and count-down.
when the input to a count-up counter goes true the accumulator
value will increase by 1, if the accumulator value reaches the
preset value the counter DN bit will be set
a count-down counter will decrease the accumulator value until the
preset value is reached
End of Lecture 3
Revision
Mitsubishi PLC FX series hardware handbook.
Allen Bradley PLC handbook
Omron PLC manual