8/12/2019 abmicrologixplc-130320005545-phpapp02
1/52
PLCAllen Bradley Micrologix
www.nfiautomation.org
nfi
8/12/2019 abmicrologixplc-130320005545-phpapp02
2/52
8/12/2019 abmicrologixplc-130320005545-phpapp02
3/52
Understanding PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
4/52
Understanding PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
5/52
Wiring PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
6/52
Wiring PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
7/52
Wiring PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
8/52
Wiring PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
9/52
Wiring PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
10/52
Wiring PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
11/52
Wiring PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
12/52
PLC Ladder Logic
8/12/2019 abmicrologixplc-130320005545-phpapp02
13/52
Addressing the PLC
InputsI: 0/0 First Input I: 0/1 Second Input
8/12/2019 abmicrologixplc-130320005545-phpapp02
14/52
Addressing the PLC
OutputsO: 0/0 First Output O: 0/1 Second Output
8/12/2019 abmicrologixplc-130320005545-phpapp02
15/52
Addressing the PLCInternal BitsB3: 0/0
8/12/2019 abmicrologixplc-130320005545-phpapp02
16/52
Addressing the PLCTimersT4: 0
8/12/2019 abmicrologixplc-130320005545-phpapp02
17/52
Addressing the PLCCountersC5: 0
i
8/12/2019 abmicrologixplc-130320005545-phpapp02
18/52
Addressing the PLCControl RegistersR6: 0
Add i th PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
19/52
Addressing the PLCData RegisterN7: 0
Add i th PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
20/52
Addressing the PLCInstruction Palette
P i PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
21/52
Programming PLCAdd new Rung
P i PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
22/52
Programming PLCParallel Rung at Input
Parallel Rung at Output
P i PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
23/52
Programming PLCNormally Open/Examine if Open
Normally Close/Examine if Close
Output Energize Output Latched Output Unlatched
One Shot Rising
P i PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
24/52
Programming PLCTimer ON DELAY
Timer OFF DELAY
Timer Retentive Type
Timer Reset
8/12/2019 abmicrologixplc-130320005545-phpapp02
25/52
8/12/2019 abmicrologixplc-130320005545-phpapp02
26/52
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
27/52
Programming PLCEqualizer
Example:
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
28/52
Programming PLCNot Equal to
Example:
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
29/52
Programming PLCLess Than
Example:
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
32/52
Programming PLCGreater Than or equal to >=
Example:
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
33/52
Programming PLCGreater Than or equal to >=
Example:
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
34/52
Programming PLCMEQ = Masked Equal to
Example:
Output will be energized when N7:0 AND with N7:1 equals N7:5Bit wise multiplication
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
35/52
Programming PLCScale
Example:
When Input is energized, Scaling will be done
N7:9= {N7:0x (Rate/10000)} + offset
N7:9 = {44x (5000/10000)} + 5N7:9 = 27
8/12/2019 abmicrologixplc-130320005545-phpapp02
36/52
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
37/52
Programming PLCNegate
Example:
When Input is energized, Negate function will be performed
N7:0= 44
N7:0 = -44 (after command executed)
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
38/52
Programming PLCMVM = Masked Move
Example:
When Input is energized, MVM will be performed
N7:5 = N7:0 bit wise AND with N7:2
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
39/52
Programming PLCCopy File
Example:
When Input is energized, Copy Function will be performed
N7:0 ------------ N7:10N7:1 ------------ N7:11N7:2 ------------ N7:12N7:3 ------------ N7:13N7:4 ------------ N7:14
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
40/52
Programming PLCFill File
Example:
When Input is energized, Fill Function will be performed
N7:0 ------------ N7:10N7:0 ------------ N7:11N7:0 ------------ N7:12N7:0 ------------ N7:13N7:0 ------------ N7:14N7:0 ------------ N7:15
8/12/2019 abmicrologixplc-130320005545-phpapp02
41/52
Note:
In Allen Bradley, Fault occurs when calculation value exceeds
32767
Math Error
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
42/52
Programming PLCFlow Control Instructions
Example:
Jump & LabelCase 1: When Jump is not enabled
When I:0/5 is True/False B3:0 is On/OffWhen I:0/4 is True/False B3:1 is On/Off
When I:0/3 is True/False O:0/2 is On/Off
Case 2: When Jump is EnabledWhen I:0/5 is True/False B3:0 will be at last stateNo effectWhen I:0/4 is True/False B3:1 will be at last stateNo effect
When I:0/3 is True/False O:0/2 is On/Off
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
43/52
Programming PLCFlow Control Instructions
Subroutine
Jump Subroutine & Return
Main Program
Case 1: When Subroutine is not calledU:3 i.e. Subroutine program wont be scanned by CPU
Case 2: When Subroutine is calledU:3 i.e. Subroutine program starts getting scanned by CPU
Case 3: When Return is executedOuput of U:3 ladder get freezed & remain at that state
8/12/2019 abmicrologixplc-130320005545-phpapp02
44/52
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
45/52
Programming PLCTemporary END
Example:
When I:0/5 is energized ladder below TND is not scanned by CPU
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
46/52
Programming PLCSequencer Output
Example:
File is the address of the sequencer file. Make sure to use the file indicator (#). This file stores the reference data formonitoring inputs.Maskis a hexadecimal code or the address of the mask word or file through which the instruction moves data. Ifthe 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 itssequencer file.Control is the instructions address and control element (3 words) that stores the status byte of the instruction, thelength of the file, and the position in the file. Do not use this address for any other instruction. Status bits in thecontrol file includeLength is the number of steps of the sequencer file starting at position 1. Maximum = 255 words (104 words whenusing the MicroLogix controller). Position 0 is the startup position. The instruction resets (wraps) to position 1 at eachcycle completion.Position is the word location or step in the sequencer file from/to which the instruction moves data. A position valuethat points past the end of the programmed file causes a runtime major error to occur.
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
47/52
Programming PLCSequencer Output
Example:
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
48/52
Programming PLCSequencer Compare
Example:
R6:3/FD is bit which is ON when comparison is TRUEi.e. When I:0.0 masked with B3:1 & result equals B3:0
This command can be used for diagnostic purpose such that to checkWhether specified inputs are ON or OFF at various stages of sequenceEx Homing, Station 1, Station 2 etc.
Programming PLC
8/12/2019 abmicrologixplc-130320005545-phpapp02
49/52
g gSequencer Load
Example:
This command stores the status of Inputs at N7:0 till number of positionmentioned. In this case upto N7:4
Position 1 N7:1Position 2 N7:2Position 3 N7:3Position 4 N7:4 Values get over rite when cycle completes
L 4 PLC i D
f
i
8/12/2019 abmicrologixplc-130320005545-phpapp02
50/52
Learn 4 PLCs in a Day100+Video Tutorials
Life time Access
nfipresents
LearntoCode|CodetoLearn
Coupon Codehttps://www.udemy.com/nfi-plc-online-leaning/?couponCode=slideshare
in $99 $49
For more courses visit www.nfiautomation.org
Course Outline 100+ PLC Video Tutorials Doubt Clearing Complementary LIVE Sessions on Team Viewer Ladder Logic Programming PLC Presentations, PLC Circuits, PLC Codes FREE PLC Simulation Software for Practice
PLC Programmable Logic ControllerDelta DVP 14 SS + 16 SP
Allen Bradley M1000Siemens S7 200
SchneiderAnalog Cards Programming04 AD Analog to Digital
04DA- Digital to Analog
PLC & VFD Ad d
http://www.nfiautomation.org/http://www.nfiautomation.org/8/12/2019 abmicrologixplc-130320005545-phpapp02
51/52
PLC & VFD Advanced
Course
PLCs Trainingl tforms
For more courses visit www.nfiautomation.org
Course Highlights: 30 Live Practical Classes on PLC, Analog Cards & AC drives- VFD 100+ PLC Video Tutorials with Lifetime Access & FREE PLC Simulator FREE Circuits Diagram
149Course Link:http://www.wiziq.com/course/28882-plc-and-
ac-drives-online-certificate-trainaing-course
http://www.nfiautomation.org/http://www.wiziq.com/course/28882-plc-and-ac-drives-online-certificate-trainaing-coursehttp://www.wiziq.com/course/28882-plc-and-ac-drives-online-certificate-trainaing-coursehttp://www.wiziq.com/course/28882-plc-and-ac-drives-online-certificate-trainaing-coursehttp://www.wiziq.com/course/28882-plc-and-ac-drives-online-certificate-trainaing-coursehttp://www.nfiautomation.org/8/12/2019 abmicrologixplc-130320005545-phpapp02
52/52
Thankswww.nfiautomation.org
nfi