Professional Documents
Culture Documents
AB Micrologix PLC PDF
AB Micrologix PLC PDF
nfi
This is a PLC
Output Terminals
Input Terminals
Programming Cable
Power 24 VDC
Understanding PLC
Understanding PLC
Wiring PLC
Wiring PLC
Wiring PLC
Wiring PLC
Wiring PLC
Wiring PLC
Wiring PLC
PLC Ladder Logic
Addressing the PLC
Inputs
I: 0/0 First Input I: 0/1 Second Input
Addressing the PLC
Outputs
O: 0/0 First Output O: 0/1 Second Output
Addressing the PLC
Internal Bits
B3: 0/0
Addressing the PLC
Timers
T4: 0
Addressing the PLC
Counters
C5: 0
Addressing the PLC
Control Registers
R6: 0
Addressing the PLC
Data Register
N7: 0
Addressing the PLC
Instruction Palette
Programming PLC
Add new Rung
Programming PLC
Parallel Rung at Input
Counter - Down
Counter Reset
Programming PLC
Limit Test
Example:
Programming PLC
Equalizer
Example:
Programming PLC
Not Equal to
Example:
Programming PLC
Less Than <
Example:
Programming PLC
Less Than or Equal to <=
Example:
Programming PLC
Greater Than >
Example:
Programming PLC
Greater Than or equal to >=
Example:
Programming PLC
Greater Than or equal to >=
Example:
Programming PLC
MEQ = Masked Equal to
Example:
Output will be energized when N7:0 “AND” with N7:1 equals N7:5
Bit wise multiplication
Programming PLC
Scale
Example:
N7:1= 49
N7:8 = 7 (after command executed)
Example:
N7:0= 44
N7:0 = -44 (after command executed)
Example:
Example:
Example:
Example:
Note:
In Allen Bradley, Fault occurs when calculation value exceeds
32767
Programming PLC
Flow Control Instructions
Case 1: When Jump is not enabled
Jump & Label When I:0/5 is True/False B3:0 is On/Off
When I:0/4 is True/False B3:1 is On/Off
When I:0/3 is True/False O:0/2 is On/Off
Main Program
Example:
Example:
Example:
File is the address of the sequencer file. Make sure to use the file indicator (#). This file stores the reference data for
monitoring inputs.
Mask is a hexadecimal code or the address of the mask word or file through which the instruction moves data. If
the mask is a file, its length will be equal to the length of the sequencer file. The two files track automatically.
You can enter the code in binary, decimal, or hexadecimal.
Destination is the address of the output word or file for a SQO to which the instruction moves data from its
sequencer file.
Control is the instruction’s address and control element (3 words) that stores the status byte of the instruction, the
length of the file, and the position in the file. Do not use this address for any other instruction. Status bits in the
control file include
Length is the number of steps of the sequencer file starting at position 1. Maximum = 255 words (104 words when
using the MicroLogix controller). Position 0 is the startup position. The instruction resets (wraps) to position 1 at each
cycle completion.
Position is the word location or step in the sequencer file from/to which the instruction moves data. A position value
that points past the end of the programmed file causes a runtime major error to occur.
Programming PLC
Sequencer Output
Example:
Programming PLC
Sequencer Compare
Example:
This command can be used for diagnostic purpose such that to check
Whether specified inputs are ON or OFF at various stages of sequence
Ex Homing, Station 1, Station 2 etc.
Programming PLC
Sequencer Load
Example:
This command stores the status of Inputs at N7:0 till number of position
mentioned. In this case upto N7:4
Position 1 N7:1
Position 2 N7:2
Position 3 N7:3
Position 4 N7:4 Values get over rite when cycle completes
Thanks
www.nfiinnovation.org
nfi