Upload
others
View
12
Download
0
Embed Size (px)
Citation preview
LAD_002_MAIN - Ladder Diagram Page 1LAD_002_MAIN - Ladder Diagram Page 1_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:13 PMTotal number of rungs in routine: 2 E:\_6200PLC5.ACD
RSLogix 5000
This program is totally useless...
as far as controlling any process. Now on the other hand if youwould like to see how different instructions are converted read on.
This program was converted using the DHRIO option. Bits in the rack rangewill be remapped to I/O. Bits outside of this range will point
to the INT array (I000 or O000).
I/O bit addresses use the format: _RRS:I.Data[M].Bwhere: RR = rack in octalS = Starting module groupI = Input (or O for output)M = Module group offset
B = Terminal number in decimal
0 Jump To SubroutineRoutine Name LAD_003_BITS
JSR
This program is totally useless...
as far as controlling any process. Now on the other hand if youwould like to see how different instructions are converted read on.
This program was converted using the DHRIO option. Bits in the rack rangewill be remapped to I/O. Bits outside of this range will point
to the INT array (I000 or O000).
I/O bit addresses use the format: _RRS:I.Data[M].Bwhere: RR = rack in octalS = Starting module groupI = Input (or O for output)M = Module group offset
B = Terminal number in decimal
1 Get System ValueClass Name WALLCLOCKTIMEInstance Name Attribute Name DateTimeDest S000[18] 0
GSV
Real timeclock YEAR
(End)
LAD_003_BITS - Ladder Diagram Page 2LAD_003_BITS - Ladder Diagram Page 2_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:14 PMTotal number of rungs in routine: 5 E:\_6200PLC5.ACD
RSLogix 5000
This is a rung comment. This section of rungs show how BITS are converted.
0
This isthe firstinput
INPUT_0<_000:I.Data[0].0>
This isthe firstoutput
OUTPUT_0<_000:O.Data[0].0>
This is a rung comment. This section of rungs show how BITS are converted.
1 /
Addresscomment
forI:000/01INPUT_1
<_000:I.Data[0].1>/
Addresscomment
forI:000/02INPUT_2
<_000:I.Data[0].2>
/
Addresscomment
forI:000/03INPUT_3
<_000:I.Data[0].3>/
Addresscomment
forI:000/04INPUT_4
<_000:I.Data[0].4>
L
Addresscomment
forO:000/01OUTPUT_1
<_000:O.Data[0].1>
2
INPUT_5<_000:I.Data[0].5>
INPUT_6<_000:I.Data[0].6>
INPUT_7<_000:I.Data[0].7>
U
Addresscomment
forO:000/01OUTPUT_1
<_000:O.Data[0].1>
3 /
Commentfor
I:000/10INPUT_10
<_000:I.Data[0].8>/
Commentfor
I:000/11INPUT_11
<_000:I.Data[0].9>/
Commentfor
I:000/12INPUT_12
<_000:I.Data[0].10>/
Commentfor
I:000/13INPUT_13
<_000:I.Data[0].11>
Commentfor
I:000/14INPUT_14
<_000:I.Data[0].12>
Commentfor
I:000/15INPUT_15
<_000:I.Data[0].13>
Commentfor
I:000/16INPUT_16
<_000:I.Data[0].14>
Commentfor
I:000/17INPUT_17
<_000:I.Data[0].15>
Outputcomment
forO:000/17
OUTPUT_17<_000:O.Data[0].15
LAD_003_BITS - Ladder Diagram Page 3LAD_003_BITS - Ladder Diagram Page 3_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:14 PMTotal number of rungs in routine: 5 E:\_6200PLC5.ACD
RSLogix 5000
>
4 ONS
One shotB003[0].0
Outputfor
One ShotB003[0].1
(End)
LAD_004_TIMERS - Ladder Diagram Page 4LAD_004_TIMERS - Ladder Diagram Page 4_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:15 PMTotal number of rungs in routine: 3 E:\_6200PLC5.ACD
RSLogix 5000
Timers
0
TONTimer with0.01 timebase
enable bitT004[0].EN
TONTimer with0.01 timebase
timing bitT004[0].TT
TONTimer with0.01 timebase
done bitT004[0].DN
ENDN
Timer On DelayTimer T004[0]Preset 9990Accum 0
TON
TONTimer with0.01 timebase
Timers
1 /
TOFTimer with1.0 timebase
T004[1].DNENDN
Timer Off DelayTimer T004[1]Preset 999000Accum 0
TOF
TOFTimer with1.0 timebase
2
RTORetentiveTimer with0.01 timebase TT
T004[2].TTENDN
Retentive Timer OnTimer T004[2]Preset 327670Accum 0
RTO
RTORetentiveTimer with0.01 timebase
(End)
LAD_005_COUNTERS - Ladder Diagram Page 5LAD_005_COUNTERS - Ladder Diagram Page 5_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:15 PMTotal number of rungs in routine: 3 E:\_6200PLC5.ACD
RSLogix 5000
Counters
0
CTUCounter
Upenable bitC005[5].CU
CUDN
Count UpCounter C005[5]Preset 32000Accum 0
CTU
CTUCounter
Up
Counters
1
CTDCounterDown
enable bitC005[6].CD
CDDN
Count DownCounter C005[6]Preset 10Accum 0
CTD
CTDCounterDown
2
CTDCounterover flow
bitC005[6].OV
CTDCounterunder flow
bitC005[6].UN
CTDCounterdone bit
C005[6].DNRES
CTDCounterDownC005[6]
(End)
LAD_006_IO - Ladder Diagram Page 6LAD_006_IO - Ladder Diagram Page 6_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:16 PMTotal number of rungs in routine: 5 E:\_6200PLC5.ACD
RSLogix 5000
I/O instructions
0 /
BTRenable bit
MSG000.EN/
BTRdone bit
MSG000.DN/
BTRerror bit
MSG000.ERENDNER
Type - Block Transfer ReadMessage Control MSG000 ...
MSG
BTRControlBlock
I/O instructions
1 /
BTWenable bit
MSG001.EN/
BTWdone bit
MSG001.DN/
BTWerror bit
MSG001.ERENDNER
Type - Block Transfer WriteMessage Control MSG001 ...
MSG
BTWControlBlock
2 /
MSGenable bit
MSG002.EN/
MSGdone bit
MSG002.DN/
MSGControlBlock
MSG002.ERENDNER
Type - UnconfiguredMessage Control MSG002 ...
MSG
MSGControlBlock
3 NOP
4 Immediate OutputUpdate Tag _020:O.Data[1]
IOT
(End)
LAD_007_CMPR_CMPT - Ladder Diagram Page 7LAD_007_CMPR_CMPT - Ladder Diagram Page 7_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:17 PMTotal number of rungs in routine: 9 E:\_6200PLC5.ACD
RSLogix 5000
Compare and Compute instructions
0 CompareExpression N011[0] < N011[1]
CMPComputeDest F008[0] 0.0Expression N011[2] * 10000.0
CPTCompute
Compare and Compute instructions
1 Limit Test (CIRC)Low Limit 0 Test N011[3] 0High Limit 4095
LIM
LimitTest
AddSource A N011[4] 0Source B 1 Dest N011[5] 0
ADDAdd
2 Mask EqualSource B003[1] 0Mask 16#FFF Compare B003[2] 0
MEQSubtractSource A N011[6] 0Source B N011[7] 0Dest N011[8] 0
SUBSubtract
3 EqualSource A N011[9] 0Source B N011[10] 0
EQUEqual
MultiplySource A N011[11] 0Source B 10 Dest N011[12] 0
MULMultiply
4 Not EqualSource A N011[13] 0Source B 0
NEQNot Equal
DivideSource A N011[14] 0Source B N011[15] 0Dest N011[16] 0
DIVDivide
LAD_007_CMPR_CMPT - Ladder Diagram Page 8LAD_007_CMPR_CMPT - Ladder Diagram Page 8_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:17 PMTotal number of rungs in routine: 9 E:\_6200PLC5.ACD
RSLogix 5000
5 Less Than (A<B)Source A N011[17] 0Source B N011[18] 0
LESLess Than
Square RootSource N011[19] 0Dest N011[20] 0
SQR
SquareRoot
6 Greater Than (A>B)Source A N011[21] 0Source B N011[22] 0
GRT
GreaterThan
NegateSource N011[23] 0Dest N011[24] 0
NEGNegate
7 Less Than or Eql (A<=B)Source A N011[25] 0Source B N011[26] 0
LEQ
Less thanor equal
To BCDSource N011[27] 0Dest _020:O.Data[2] 2#0000_0000_0000_0000
TODTo BCD
8 Grtr Than or Eql (A>=B)Source A N011[28] 0Source B N011[29] 0
GEQ
Greaterthan orequal
From BCDSource _020:I.Data[3] 2#0000_0000_0000_0000Dest N011[30] 0
FRDFrom BCD
(End)
LAD_008_MOV_LOGIC - Ladder Diagram Page 9LAD_008_MOV_LOGIC - Ladder Diagram Page 9_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:18 PMTotal number of rungs in routine: 7 E:\_6200PLC5.ACD
RSLogix 5000
Move instructions
0 MoveSource T004[0].ACC 0Dest N012[0] 0
MOVMove
Move instructions
1 Masked MoveSource N012[1] 0Mask 16#FF Dest N012[2] 0
MVM
Move withmask
2 Bitwise ANDSource A B003[3] 0Source B B003[4] 0Dest B003[5] 0
AND
BitwiseAnd
3 Bitwise Inclusive ORSource A B003[6] 0Source B B003[7] 0Dest B003[8] 0
OR
BitwiseOr
4 Bitwise Exclusive ORSource A B003[9] 0Source B B003[9] 0Dest B003[9] 0
XOR
BitwiseExclusive
Or
LAD_008_MOV_LOGIC - Ladder Diagram Page 10LAD_008_MOV_LOGIC - Ladder Diagram Page 10_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:18 PMTotal number of rungs in routine: 7 E:\_6200PLC5.ACD
RSLogix 5000
5 ClearDest N012[5] 0
CLRClear
6 Bit Field DistributeSource B003[10] 0Source Bit 3Dest B003[11] 0Dest Bit 10Length 5
BTD
Bit FieldDistribute
(End)
LAD_009_FILE - Ladder Diagram Page 11LAD_009_FILE - Ladder Diagram Page 11_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:18 PMTotal number of rungs in routine: 8 E:\_6200PLC5.ACD
RSLogix 5000
File instructions
0
FAL withmode: ALLenable bitR006[2].EN
FAL withmode: ALLdone bit
R006[2].DN
FAL withmode: ALLerror bit
R006[2].EREN
DN
ER
File Arith/LogicalControl R006_2
<R006[2]>Length 100Position 0Mode ALLDest N013[0+R006_2.POS] 0Expression N014[0+R006_2.POS]+32
FAL
FAL withmode: ALL
File instructions
1
FAL withmode: INCenable bitR006[3].EN
FAL withmode: INCdone bit
R006[3].DN
FAL withmode: INCerror bit
R006[3].ERFile Arith/LogicalControl R006_3
<R006[3]Length 150PositionMode INCDest N013[101] Expression N014[101+R006_3.POS]-N013[0+R006_3.POS]
FAL
FAL withmode: INC
LAD_009_FILE - Ladder Diagram Page 12LAD_009_FILE - Ladder Diagram Page 12_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:18 PMTotal number of rungs in routine: 8 E:\_6200PLC5.ACD
RSLogix 5000
EN
DN
ER
2
FAL withmode: 50enable bitR006[4].EN
FAL withmode: 50done bit
R006[4].DN
FAL withmode: 50error bit
R006[4].EREN
DN
ER
File Arith/LogicalControl R006_4
<R006[4]>Length 200Position 0Mode 50Dest N013[1+R006_4.POS] 0Expression N014[101]*N013[120+R006_4.POS]
FAL
FAL withmode: 50
LAD_009_FILE - Ladder Diagram Page 13LAD_009_FILE - Ladder Diagram Page 13_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:18 PMTotal number of rungs in routine: 8 E:\_6200PLC5.ACD
RSLogix 5000
3
FSC withmode: ALLenable bitR006[5].EN
FSC withmode: ALLdone bit
R006[5].DN
FSC withmode: ALLfound bit
R006[5].FDENDNER
File Search/CompareControl R006_5
<R006[5]>Length 30Position 0Mode ALLExpression N013[200+R006_5.POS]>75
FSC
FSC withmode: ALL
4
FSC withmode: INCenable bitR006[6].EN
FSC withmode: INCdone bit
R006[6].DN
FSC withmode: INCfound bit
R006[6].FDENDNER
File Search/CompareControl R006_6
<R006[6]>Length 30Position 0Mode INCExpression N013[200+R006_6.POS]<75
FSC
FSC withmode: INC
5
FSC withmode: 1enable bitR006[7].EN
FSC withmode: 1done bit
R006[7].DN
FSC withmode: 1found bit
R006[7].FDENDNER
File Search/CompareControl R006_7
<R006[7]>Length 30Position 0Mode 1Expression N013[200+R006_7.POS]=75
FSC
FSC withmode: 1
LAD_009_FILE - Ladder Diagram Page 14LAD_009_FILE - Ladder Diagram Page 14_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:19 PMTotal number of rungs in routine: 8 E:\_6200PLC5.ACD
RSLogix 5000
6 Copy FileSource N013[0]Dest N014[0]Length 100
COPCopy
7 Fill FileSource 0Dest N013[1]Length 99
FLLFile fill
(End)
LAD_010_SHIFT - Ladder Diagram Page 15LAD_010_SHIFT - Ladder Diagram Page 15_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:19 PMTotal number of rungs in routine: 4 E:\_6200PLC5.ACD
RSLogix 5000
Shift instructions
0
BSLenable bit
R006[10].EN
BSLdone bit
R006[10].DN
BSLUnload bit
R006[10].ULCopy FileSource B015[0]Dest DINTArray[0]Length 2
COP
EN
DN
Bit Shift LeftArray DINTArray[0]Control R006[10]Source Bit _000:I.Data[7].1Length 64
BSL
BSLControl
Copy FileSource DINTArray[0]Dest B015[0]Length 4
COP
Shift instructions
1
BSRenable bit
R006[11].EN
BSRdone bit
R006[11].DN
BSRunload bit
R006[11].ULCopy FileSource B015[5]Dest DINTArray[0]Length 2
COP
EN
DN
Bit Shift RightArray DINTArray[0]Control R006[11]Source Bit _000:I.Data[7].2Length 64
BSR
BSRControl
Copy FileSource DINTArray[0]Dest B015[5]Length 4
COP
LAD_010_SHIFT - Ladder Diagram Page 16LAD_010_SHIFT - Ladder Diagram Page 16_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:19 PMTotal number of rungs in routine: 4 E:\_6200PLC5.ACD
RSLogix 5000
2
FFLenable bit
R006[12].EN
FFLdone bit
R006[12].DN
FFLempty bit
R006[12].EMENDNEM
FIFO LoadSource B015[20]FIFO B015[10]Control R006[12]Length 10Position 0
FFL
FFLControl
3
FFUenable bit
R006[13].EU
FFUdone bit
R006[13].DN
FFUempty bit
R006[13].EMEUDNEM
FIFO UnloadFIFO B015[10]Dest B015[21]Control R006[13]Length 10Position 0
FFU
FFUControl
(End)
LAD_011_SEQUENCR - Ladder Diagram Page 17LAD_011_SEQUENCR - Ladder Diagram Page 17_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:19 PMTotal number of rungs in routine: 2 E:\_6200PLC5.ACD
RSLogix 5000
Sequencer instructions
0 EN
DN
ER
File Arith/LogicalControl CTRL00Length 9Position 0Mode ALLDest DINTArray[0+CTRL00.POS] 0Expression B017[0+CTRL00.POS]
FALMoveSource _020:I.Data[6] 2#0000_0000_0000_0000Dest DINTResult[0] 0
MOVSequencer InputArrayMaskSourceControlLengthPosition
SQIControl
Sequencer instructions
LAD_011_SEQUENCR - Ladder Diagram Page 18LAD_011_SEQUENCR - Ladder Diagram Page 18_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:19 PMTotal number of rungs in routine: 2 E:\_6200PLC5.ACD
RSLogix 5000
Sequencer InputDINTArray[0]16#0000_0ff0DINTResult[0]
R006[20]80
SQI
SQI/SQOControl
EN
DN
ER
File Arith/LogicalControl CTRL01Length 9Position 0Mode ALLDest DINTArray[0+CTRL01.POS] 0Expression B017[9+CTRL01.POS]
FAL
EN
DN
Sequencer OutputArray DINTArray[0]Mask 16#0000_0ff0Dest DINTResult[0]Control R006[20]Length 8Position 0
SQO
SQI/SQOControl
MoveSource DINTResult[0] 0Dest _020:O.Data[4] 2#0000_0000_0000_0000
MOV
LAD_011_SEQUENCR - Ladder Diagram Page 19LAD_011_SEQUENCR - Ladder Diagram Page 19_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:19 PMTotal number of rungs in routine: 2 E:\_6200PLC5.ACD
RSLogix 5000
1
Loadsequence
fileinput
condition_000:I.Data[1].8
EN
DN
ER
File Arith/LogicalControl CTRL02Length 9Position 0Mode ALLDest DINTArray[0+CTRL02.POS] 0Expression B017[0+CTRL02.POS]
FAL
MoveSource _020:I.Data[6] 2#0000_0000_0000_0000Dest DINTResult[0] 0
MOV
EN
DN
Sequencer LoadArray DINTArray[0]Source DINTResult[0]Control R006[21]Length 8Position 0
SQL
SQLControl
EN
DN
ER
File Arith/LogicalControl CTRL03Length 9Position 0Mode ALLDest B017[0+CTRL03.POS] 0Expression DINTArray[0+CTRL03.POS]
FAL
(End)
LAD_012_PROGRAM - Ladder Diagram Page 20LAD_012_PROGRAM - Ladder Diagram Page 20_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:20 PMTotal number of rungs in routine: 7 E:\_6200PLC5.ACD
RSLogix 5000
0 SubroutineSBR
Return from SubroutineRET
1 LBLLBL_5
AFI JMPLBL_5
2
Inputcondition
_000:I.Data[1].9MCR
3 TND
4 Jump To SubroutineRoutine Name LAD_012_PROGRAM
JSR
5 MCR
6 Return from SubroutineRET
(End)
LAD_013_SPECIAL - Ladder Diagram Page 21LAD_013_SPECIAL - Ladder Diagram Page 21_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:26 PMTotal number of rungs in routine: 3 E:\_6200PLC5.ACD
RSLogix 5000
Special instructions
0 /
FBCenable bit
R006[30].EN/
FBCdone bit
R006[30].DN/
FBCfound bit
R006[30].FD/
FBCinhibitbit
R006[30].IN/
FBCerror bit
R006[30].ER
File Bit ComparisonSourceReferenceResultCmp. ControlLengthPositionResult ControlLengthPosition
File Arith/LogicalControlLengthPositionModeDest Expression DINTResult[0+CTRL04.POS]
FAL
Special instructions
LAD_013_SPECIAL - Ladder Diagram Page 22LAD_013_SPECIAL - Ladder Diagram Page 22_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:26 PMTotal number of rungs in routine: 3 E:\_6200PLC5.ACD
RSLogix 5000
Copy FileSource B018[0]Dest DINTSource[0]Length 1
COP
Copy FileSource B018[20]Dest DINTReference[0]Length 1
COP
ENDNFDINER
File Bit ComparisonDINTSource[0]
DINTReference[0]DINTResult[0]
Cmp. Control R006[30]90
Result Control R006[31]90
FBC
FBCresultcontrol
EN
DN
ER
CTRL0490
ALLN019[21]
0DINTResult[0+CTRL04.POS]
FAL
LAD_013_SPECIAL - Ladder Diagram Page 23LAD_013_SPECIAL - Ladder Diagram Page 23_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:26 PMTotal number of rungs in routine: 3 E:\_6200PLC5.ACD
RSLogix 5000
1 /
DDTenable bit
R006[32].EN/
DDTdone bit
R006[32].DN/
DDTfound bit
R006[32].FD/
DDTinhibitbit
R006[32].IN/
DDTerror bit
R006[32].ER
Diagnostic DetectSourceReferenceResultCmp. ControlLengthPositionResult ControlLengthPosition
File Arith/LogicalControlLengthPositionModeDest Expression DINTResult[0+CTRL05.POS]
FAL
LAD_013_SPECIAL - Ladder Diagram Page 24LAD_013_SPECIAL - Ladder Diagram Page 24_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:27 PMTotal number of rungs in routine: 3 E:\_6200PLC5.ACD
RSLogix 5000
Copy FileSource B018[0]Dest DINTSource[0]Length 1
COP
Copy FileSource B018[20]Dest DINTReference[0]Length 1
COP
ENDNFDINER
Diagnostic DetectDINTSource[0]
DINTReference[0]DINTResult[0]
Cmp. Control R006[32]90
Result Control R006[33]90
DDT
DDTResultControl
EN
DN
ER
CTRL0590
ALLN019[22]
0DINTResult[0+CTRL05.POS]
FAL
2
PIDenable bitPID000.EN
PIDSet Output
ModePID000.SWM
PIDmode
PID000.MOProportional Integral DerivativePID PID000 ... Process Variable N007[4]Tieback 0Control Variable N007[235]PID Master Loop 0Inhold Bit 0Inhold Value 0Setpoint 0.0Process Variable 0.0Output % 0.0
PID
PIDControlblock
LAD_013_SPECIAL - Ladder Diagram Page 25LAD_013_SPECIAL - Ladder Diagram Page 25_6200PLC5:MainTask:MainProgram 10/23/2008 3:09:27 PMTotal number of rungs in routine: 3 E:\_6200PLC5.ACD
RSLogix 5000
(End)