rslogix 5000 report(s) - plc conversions · rslogix 5000 file instructions and pid 0 copy file...
TRANSCRIPT
LAD_002_BITS - Ladder Diagram Page 1LAD_002_BITS - Ladder Diagram Page 1RSL500:MainTask:MainProgram 10/29/2008 2:07:02 PMTotal number of rungs in routine: 5 E:\RSL500.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.
0
INPUTI:1/00
Local:1:I.Data.0
OUTPUTO:2/00
Local:2:O.Data.0
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 1756 option. I/O modules were converted to a local 1756 module in the ControlLogix chassis.
I/O addresses will convert to: Local:SS:I.Data.TT
1
INPUTI:1/01
Local:1:I.Data.1
INPUTI:1/02
Local:1:I.Data.2
INPUTI:1/03
Local:1:I.Data.3
/
INPUTI:1/04
Local:1:I.Data.4/
INPUTI:1/05
Local:1:I.Data.5/
INPUTI:1/06
Local:1:I.Data.6
INPUTI:1/07
Local:1:I.Data.7L
OUTPUTO:2/01
Local:2:O.Data.1
This program was converted using the 1756 option. I/O modules were converted to a local 1756 module in the ControlLogix chassis.
I/O addresses will convert to: Local:SS:I.Data.TT
where:SS = slot
I = Input (or O for Output)TT = Terminal
2
INPUTI:1/08
Local:1:I.Data.8
INPUTI:1/09
Local:1:I.Data.9
INPUTI:1/10
Local:1:I.Data.10
INPUTI:1/11
Local:1:I.Data.11
INPUTI:1/12
Local:1:I.Data.12
U
OUTPUTO:2/08
Local:2:O.Data.8
where:SS = slot
I = Input (or O for Output)TT = Terminal
I/O outside of this range (or using the NONE option) or modules that don't convert will point to the INT array (Ixxx or Oxxx).
where: xxx = slot
This section of rungs show how BITS are converted.
3 /
INPUTI:1/13
Local:1:I.Data.13/
INPUTI:1/14
Local:1:I.Data.14/
INPUTI:1/15
Local:1:I.Data.15
OUTPUTO:2/15
Local:2:O.Data.15
I/O outside of this range (or using the NONE option) or modules that don't convert will point to the INT array (Ixxx or Oxxx).
where: xxx = slot
This section of rungs show how BITS are converted.
4 ONS
ONE SHOTB003[0].0
ONE SHOTOUTPUTB003[0].2
LAD_002_BITS - Ladder Diagram Page 2LAD_002_BITS - Ladder Diagram Page 2RSL500:MainTask:MainProgram 10/29/2008 2:07:03 PMTotal number of rungs in routine: 5 E:\RSL500.ACD
RSLogix 5000
(End)
LAD_003_TIMERS - Ladder Diagram Page 3LAD_003_TIMERS - Ladder Diagram Page 3RSL500:MainTask:MainProgram 10/29/2008 2:07:03 PMTotal number of rungs in routine: 4 E:\RSL500.ACD
RSLogix 5000
TIMER INSTRUCTIONS
0
TON1.0 TIMERENABLE
T004[0].EN
TON1.0 TIMER
TIMINGT004[0].TT
TON1.0 TIMER
DONET004[0].DN
ENDN
Timer On DelayTimer T004[0]Preset 3600000Accum 0
TON
TON1.0 TIMER
TIMER INSTRUCTIONS
1
TOF0.01 TIMER
ENABLET004[1].EN
TOF0.01 TIMER
TIMINGT004[1].TT
TOF0.01 TIMER
DONET004[1].DN
ENDN
Timer Off DelayTimer T004[1]Preset 327670Accum 0
TOF
TOF0.01 TIMER
2
RTO0.01 TIMER
ENABLET004[2].EN
RTO0.01 TIMER
TIMINGT004[2].TT
RTO0.01 TIMER
DONET004[2].DN
ENDN
Retentive Timer OnTimer T004[2]Preset 10Accum 0
RTO
RTO0.01 TIMER
3
RTO0.01 TIMER
DONET004[2].DN
RES
RTO0.01 TIMER
T004[2]
(End)
LAD_004_COUNTERS - Ladder Diagram Page 4LAD_004_COUNTERS - Ladder Diagram Page 4RSL500:MainTask:MainProgram 10/29/2008 2:07:03 PMTotal number of rungs in routine: 3 E:\RSL500.ACD
RSLogix 5000
COUNTER INSTRUCTIONS
0
CTUENABLE
C005[0].CU
CTUOVER FLOWC005[0].OV
CTUDONE
C005[0].DNCUDN
Count UpCounter C005[0]Preset 500Accum 0
CTU
CTUCOUNTER
COUNTER INSTRUCTIONS
1
CTDENABLE
C005[1].CD
CTDUNDER FLOW
C005[1].UN
CTDDONE
C005[1].DNCDDN
Count DownCounter C005[1]Preset 32767Accum 0
CTD
CTDCOUNTER
2
CTDDONE
C005[1].DNRES
CTDCOUNTER
C005[1]
(End)
LAD_005_IO_MSG - Ladder Diagram Page 5LAD_005_IO_MSG - Ladder Diagram Page 5RSL500:MainTask:MainProgram 10/29/2008 2:07:04 PMTotal number of rungs in routine: 3 E:\RSL500.ACD
RSLogix 5000
I/O INSTRUCTIONS
0 NOP
I/O INSTRUCTIONS
1 Immediate OutputUpdate Tag Local:2:O
IOT
2 /
MSGENABLE
MSG000.ENENDNER
Type - UnconfiguredMessage Control MSG000 ...
MSG
MSGCONTROL
BLOCK
(End)
LAD_006_CMP_CPT - Ladder Diagram Page 6LAD_006_CMP_CPT - Ladder Diagram Page 6RSL500:MainTask:MainProgram 10/29/2008 2:07:05 PMTotal number of rungs in routine: 9 E:\RSL500.ACD
RSLogix 5000
COMPARE AND COMPUTE INSTRUCTIONS
0 ComputeDest N007[1] 0Expression N007[2] + N007[3]
CPTCOMPUTE
COMPARE AND COMPUTE INSTRUCTIONS
1 Limit Test (CIRC)Low Limit 0 Test N007[4] 0High Limit 100
LIM
LIMITTEST
AddSource A N007[5] 0Source B N007[6] 0Dest N007[7] 0
ADDADD
2 Mask EqualSource N007[8] 0Mask 16#00FF Compare N007[9] 0
MEQ
MASKEDEQUAL
SOURCE
SubtractSource A N007[10] 0Source B N007[11] 0Dest N007[12] 0
SUBSUBTRACT
3 EqualSource A N007[13] 0Source B 55
EQUEQUAL
MultiplySource A N007[14] 0Source B 100 Dest N007[15] 0
MULMULTIPLY
4 Not EqualSource A N007[16] 0Source B N007[17] 0
NEQNOT EQUAL
DivideSource A N007[18] 0Source B 4095.0 Dest F008[0] 0.0
DIVDIVIDE
LAD_006_CMP_CPT - Ladder Diagram Page 7LAD_006_CMP_CPT - Ladder Diagram Page 7RSL500:MainTask:MainProgram 10/29/2008 2:07:06 PMTotal number of rungs in routine: 9 E:\RSL500.ACD
RSLogix 5000
5 Less Than (A<B)Source A N007[20] 0Source B N007[21] 0
LESLESS THAN
Square RootSource N007[22] 0Dest N007[23] 0
SQR
SQUAREROOT
6 Greater Than (A>B)Source A N007[24] 0Source B N007[25] 0
GRT
GREATERTHAN
NegateSource N007[26] 0Dest N007[27] 0
NEGNEGATE
7 Less Than or Eql (A<=B)Source A N007[28] 0Source B N007[29] 0
LEQ
LESS THANOR EQUAL
To BCDSource N007[30] 0Dest Local:2:O.Data 2#0000_0000_0000_0000_0000_0000_0000_0000
TOD
OUTPUTWORD
8 Grtr Than or Eql (A>=B)Source A N007[31] 0Source B N007[32] 0
GEQ
GREATERTHAN OR
EQUAL
From BCDSource Local:1:I.Data 2#0000_0000_0000_0000_0000_0000_0000_0000Dest N007[33] 0
FRDFROM BCD
(End)
LAD_007_MOVE - Ladder Diagram Page 8LAD_007_MOVE - Ladder Diagram Page 8RSL500:MainTask:MainProgram 10/29/2008 2:07:06 PMTotal number of rungs in routine: 7 E:\RSL500.ACD
RSLogix 5000
WORD MOVE AND LOGICAL INSTRUCTIONS
0 MoveSource N011[0] 0Dest N011[1] 0
MOV
MOVEWORD
WORD MOVE AND LOGICAL INSTRUCTIONS
1 Masked MoveSource N011[2] 0Mask 16#0FF00 Dest N011[3] 0
MVM
MASKEDMOVEWORD
2 Bitwise ANDSource A N011[4] 0Source B N011[5] 0Dest N011[6] 0
AND
BITWISEAND
3 Bitwise Inclusive ORSource A N011[7] 0Source B 255 Dest N011[8] 0
OR
BITWISEOR
LAD_007_MOVE - Ladder Diagram Page 9LAD_007_MOVE - Ladder Diagram Page 9RSL500:MainTask:MainProgram 10/29/2008 2:07:06 PMTotal number of rungs in routine: 7 E:\RSL500.ACD
RSLogix 5000
4 Bitwise Exclusive ORSource A N011[9] 0Source B B003[1] 0Dest N011[10] 0
XOR
BITWISEEXCULSIVE
OR
5 Bitwise NOTSource N011[11] 0Dest N011[12] 0
NOT
NOTWORD
6 ClearDest N011[13] 0
CLR
CLEARWORD
(End)
LAD_008_FILE - Ladder Diagram Page 10LAD_008_FILE - Ladder Diagram Page 10RSL500:MainTask:MainProgram 10/29/2008 2:07:06 PMTotal number of rungs in routine: 5 E:\RSL500.ACD
RSLogix 5000
FILE INSTRUCTIONS AND PID
0 Copy FileSource N012[0]Dest N012[10]Length 10
COP
COPYFILE
FILE INSTRUCTIONS AND PID
1 Fill FileSource 0Dest N012[20]Length 10
FLL
FILLFILE
2 DivideSource A S000[13] 0Source B N012[30] 0Dest N012[31] 0
DIV
DOUBLEDIVIDE
3 ComputeDest N012[33] 0Expression (N012[32] * 1250) + 32
CPTSCALE
4 /
PIDENABLE
BITPID000.EN
Proportional Integral DerivativePID PID000 ... Process Variable N012[34]Tieback 0Control Variable N012[35]PID Master Loop 0Inhold Bit 0Inhold Value 0Setpoint 0.0Process Variable 0.0Output % 0.0
PID
PIDCONTROL
BLOCK
(End)
LAD_009_SEQUENCER - Ladder Diagram Page 11LAD_009_SEQUENCER - Ladder Diagram Page 11RSL500:MainTask:MainProgram 10/29/2008 2:07:07 PMTotal number of rungs in routine: 9 E:\RSL500.ACD
RSLogix 5000
SHIFT AND SEQUENCE INSTRUCTIONS
0 /
BSLENABLE
R006[0].EN/
BSLDONE
R006[0].DN
BSLERROR
R006[0].ER
BSLUNLOAD
R006[0].UL
Copy FileSource B014[0]Dest DINTArray[0]Length 2
COP
EN
DN
Bit Shift LeftArray DINTArray[0]Control R006[0]Source Bit B003[0].1Length 45
BSL
BITSHIFTLEFT
Copy FileSource DINTArray[0]Dest B014[0]Length 3
COP
SHIFT AND SEQUENCE INSTRUCTIONS
LAD_009_SEQUENCER - Ladder Diagram Page 12LAD_009_SEQUENCER - Ladder Diagram Page 12RSL500:MainTask:MainProgram 10/29/2008 2:07:07 PMTotal number of rungs in routine: 9 E:\RSL500.ACD
RSLogix 5000
1
BSRENABLE
R006[1].EN
BSRDONE
R006[1].DN
BSRERROR
R006[1].ER
BSRUNLOAD
R006[1].UL
Copy FileSource B014[3]Dest DINTArray[0]Length 2
COP
EN
DN
Bit Shift RightArray DINTArray[0]Control R006[1]Source Bit B003[0].3Length 45
BSR
BITSHIFTRIGHT
Copy FileSource DINTArray[0]Dest B014[3]Length 3
COP
LAD_009_SEQUENCER - Ladder Diagram Page 13LAD_009_SEQUENCER - Ladder Diagram Page 13RSL500:MainTask:MainProgram 10/29/2008 2:07:07 PMTotal number of rungs in routine: 9 E:\RSL500.ACD
RSLogix 5000
2 /
SQCENABLE
R006[2].EN/
SQCDONE
R006[2].DN/
SQCERROR
R006[2].ER/
SQCFOUND
R006[2].FD
EN
DN
ER
File Arith/LogicalControl CTRL00Length 21Position 0Mode ALLDest DINTArray[0+CTRL00.POS] 0Expression B014[6+CTRL00.POS]
FAL
MoveSource Local:1:I.Data 2#0000_0000_0000_0000_0000_0000_0000_0000Dest DINTResult[0] 0
MOV
Sequencer InputArray DINTArray[0]Mask 16#0000_0fffSource DINTResult[0]Control R006[2]Length 20Position 0
SQI
SEQUENCERCOMPARE
NOP
LAD_009_SEQUENCER - Ladder Diagram Page 14LAD_009_SEQUENCER - Ladder Diagram Page 14RSL500:MainTask:MainProgram 10/29/2008 2:07:07 PMTotal number of rungs in routine: 9 E:\RSL500.ACD
RSLogix 5000
3 /
SQLENABLE
R006[3].EN/
SQLDONE
R006[3].DN/
SQLERROR
R006[3].ER
EN
DN
ER
File Arith/LogicalControl CTRL01Length 21Position 0Mode ALLDest DINTArray[0+CTRL01.POS] 0Expression B014[6+CTRL01.POS]
FAL
MoveSource Local:1:I.Data 2#0000_0000_0000_0000_0000_0000_0000_0000Dest DINTResult[0] 0
MOV
EN
DN
Sequencer LoadArray DINTArray[0]Source DINTResult[0]Control R006[3]Length 20Position 0
SQL
SEQUENCERLOAD
EN
DN
ER
File Arith/LogicalControl CTRL02Length 21Position 0Mode ALLDest B014[6+CTRL02.POS] 0Expression DINTArray[0+CTRL02.POS]
FAL
LAD_009_SEQUENCER - Ladder Diagram Page 15LAD_009_SEQUENCER - Ladder Diagram Page 15RSL500:MainTask:MainProgram 10/29/2008 2:07:07 PMTotal number of rungs in routine: 9 E:\RSL500.ACD
RSLogix 5000
4 /
SQOENABLE
R006[4].EN/
SQODONE
R006[4].DN/
SQOERROR
R006[4].ER
EN
DN
ER
File Arith/LogicalControl CTRL03Length 21Position 0Mode ALLDest DINTArray[0+CTRL03.POS] 0Expression B014[6+CTRL03.POS]
FAL
EN
DN
Sequencer OutputArray DINTArray[0]Mask 16#0000_00ffDest DINTResult[0]Control R006[4]Length 20Position 0
SQO
SEQUENCEROUTPUT
MoveSource DINTResult[0] 0Dest Local:2:O.Data 2#0000_0000_0000_0000_0000_0000_0000_0000
MOV
OUTPUTWORD
5 /
FFLENABLE
R006[5].EN/
FFLDONE
R006[5].DN/
FFLEMPTY
R006[5].EMENDNEM
FIFO LoadSource B014[27]FIFO B014[28]Control R006[5]Length 20Position 0
FFL
FIFOLOAD
6 /
FFUENABLE
R006[6].EU/
FFUDONE
R006[6].DN/
FFUEMPTY
R006[6].EMEUDNEM
FIFO UnloadFIFO B014[28]Dest B014[48]Control R006[6]Length 20Position 0
FFU
FIFOUNLOAD
LAD_009_SEQUENCER - Ladder Diagram Page 16LAD_009_SEQUENCER - Ladder Diagram Page 16RSL500:MainTask:MainProgram 10/29/2008 2:07:07 PMTotal number of rungs in routine: 9 E:\RSL500.ACD
RSLogix 5000
7 /
LFLENABLE
R006[7].EN/
LFLDONE
R006[7].DN/
LFLEMPTY
R006[7].EMENDNEM
LIFO LoadSource B014[49]LIFO B014[50]Control R006[7]Length 20Position 0
LFL
LIFOLOAD
8 /
LFUENABLE
R006[8].EU/
LFUDONE
R006[8].DN/
LFUEMPTY
R006[8].EMEUDNEM
LIFO UnloadLIFO B014[50]Dest B014[70]Control R006[8]Length 20Position 0
LFU
LIFOUNLOAD
(End)
LAD_010_PROGRAM - Ladder Diagram Page 17LAD_010_PROGRAM - Ladder Diagram Page 17RSL500:MainTask:MainProgram 10/29/2008 2:07:08 PMTotal number of rungs in routine: 6 E:\RSL500.ACD
RSLogix 5000
PROGRAM CONTROL INSTRUCTIONS
0 SubroutineSBR
Jump To SubroutineRoutine Name LAD_010_PROGRAM
JSRPROGRAM CONTROL INSTRUCTIONS
1 JMPLBL_1
2 TND
3 LBLLBL_1
MCR
4 MCR
5 Return from SubroutineRET
(End)
LAD_011_ADV_MATH - Ladder Diagram Page 18LAD_011_ADV_MATH - Ladder Diagram Page 18RSL500:MainTask:MainProgram 10/29/2008 2:07:14 PMTotal number of rungs in routine: 15 E:\RSL500.ACD
RSLogix 5000
ADVANCED MATH INSTRUCTIONS
0 SineSource F015[0] 0.0Dest F015[1] 0.0
SINSINE
ADVANCED MATH INSTRUCTIONS
1 CosineSource F015[2] 0.0Dest F015[3] 0.0
COSCOSINE
2 TangentSource F015[4] 0.0Dest F015[5] 0.0
TANTANGENT
3 Arc SineSource F015[6] 0.0Dest F015[7] 0.0
ASNARCSINE
4 Arc CosineSource F015[8] 0.0Dest F015[9] 0.0
ACSARCCOSINE
5 Arc TangentSource F015[10] 0.0Dest F015[11] 0.0
ATNARCTANGENT
LAD_011_ADV_MATH - Ladder Diagram Page 19LAD_011_ADV_MATH - Ladder Diagram Page 19RSL500:MainTask:MainProgram 10/29/2008 2:07:14 PMTotal number of rungs in routine: 15 E:\RSL500.ACD
RSLogix 5000
6 Natural LogSource F015[12] 0.0Dest F015[13] 0.0
LN
NATURALLOG
7 Log Base 10Source F015[14] 0.0Dest F015[15] 0.0
LOG
LOGBASE 10
8 Radians To DegreesSource F015[16] 0.0Dest F015[17] 0.0
DEG
RADIANSTO
DEGREES
9 Degrees To RadiansSource F015[18] 0.0Dest F015[19] 0.0
RAD
DEGREESTO
RADIANS
10 X To Power Of YSource X F015[20] 0.0Source Y 2.0 Dest F015[21] 0.0
XPYX TO Y
LAD_011_ADV_MATH - Ladder Diagram Page 20LAD_011_ADV_MATH - Ladder Diagram Page 20RSL500:MainTask:MainProgram 10/29/2008 2:07:14 PMTotal number of rungs in routine: 15 E:\RSL500.ACD
RSLogix 5000
11 Absolute ValueSource F015[22] 0.0Dest F015[23] 0.0
ABS
ABSOLUTEVALUE
12 ComputeDest SCP_Rate 0Expression (4096 - 0) / (16384 - 0)
CPT
ComputeDest N016[1] 0Expression (N016[0] * SCP_Rate) + (0 - (0 * SCP_Rate))
CPT
SCALEWITH
PARAMETERS
13 Swap ByteSource N016[2] 0Order Mode REVERSEDest N016[2] 0
SWPB
SWAPBYTES
14 L
DECODE4 TO 16
B003[2].[N016_3]
(End)
LAD_012_INDIRECT - Ladder Diagram Page 21LAD_012_INDIRECT - Ladder Diagram Page 21RSL500:MainTask:MainProgram 10/29/2008 2:07:14 PMTotal number of rungs in routine: 2 E:\RSL500.ACD
RSLogix 5000
INDIRECT ADDRESSING
These rungs show how indirect addresses will be converted. Indirect addressescan not be documented in the ControlLogix.
0 MoveSource 1 Dest N017_0
<N017[0]> 0
MOV
INDIRECT ADDRESSING
These rungs show how indirect addresses will be converted. Indirect addressescan not be documented in the ControlLogix.
1N007[19].[N017_0]
MoveSource 2 Dest N007[N017_0] 0
MOV
(End)