Professional Documents
Culture Documents
Controllers
Lecture 3-1
Basic addressing
• For the Allen-Bradley PLCs and the simulator
used, the input and output image areas (in
addition to other data) are held in “data files”
• Each “data file” holds information such as
– Discrete input values
– Discrete output values
– Values associated with timers
– Values associated with counters
– Status information
– Etc.
Lecture 3-2
3-1
PLC data files
3-2
Example Addressing
Digital Digital
CPU Input Output
Module Module Module
(slot 0) (slot 1) (slot 2)
16 inputs 8 outputs
Lecture 3-5
Basic instructions
• Examine If Closed (XIC)
• Examine If Open (XIO)
• Output Energize (OTE)
• Output Latch (OTL)
• Output Unlatch (OTU)
• One-shot Rising (OSR)
Lecture 3-6
3-3
Examine if closed (XIC)
• Alternate name: Normally open contact
• Use the XIC instruction in your ladder program to
determine if a bit is on.
– When the instruction is executed, if the bit addressed is on
(1), then the instruction is evaluated as TRUE.
– When the instruction is executed, if the bit addressed is off
(0), then the instruction is evaluated as FALSE.
Instruction symbol
Normally open switch is open
Lecture 3-7
Instruction symbol
Normally open switch is open
3-4
Output energize (OTE)
• Alternate name: coil
• This instruction is usually used in conjunction with
XIC or XIO or any other input instruction.
• If the logic preceding the OTE instruction is true (1),
the OTE instruction will be energized
Not energized
Instruction symbol
Lecture 3-9
Initially not
energized
Instruction symbol
Energized
L
Latched
Lecture 3-10
3-5
Output unlatch (OTU)
• The OTU instruction is used only to turn
a bit off and latch it off
• OTL and OTU are generally used in pairs
Instruction symbol
Lecture 3-11
Instruction symbol
OSR I:1/0
OSR output
One PLC scan
Lecture 3-12
3-6
Branches
• Branches can be inserted in ladder logic programs to
create parallel combinations of various ladder logic
elements
Lecture 3-13
Lecture 3-14
3-7