16 using explicit messaging (pcp communications), Figure 6.3 lad5 - pcp read subroutine (continued) – Rockwell Automation 20-COMM-I Interbus Adapter User Manual
Page 78

6-16
Using Explicit Messaging (PCP Communications)
Figure 6.3 LAD5 - PCP Read Subroutine (Continued)
N22:12 = Index (the parameter number or fault/event queue item to be read)
N22:1 determines what area is to be read:
0 = PowerFlex 70 (Host) parameter (N22:2 + 12288 decimal (3000h) = mapped parameter address)
1 = 20-COMM-I parameter (N22:2 + 12213 decimal (2FB5h) = mapped parameter address)
2 = PowerFlex 70 (Host) Fault queue (N22:2 + 12280 decimal (2FF8h) = mapped fault item)
3 = 20-COMM-I Event Queue (N22:2 + 12205 decimal (2FADh) = mapped event item)
0002
B3:47
1
PCP Read
Routine
1-shot
EQU
Equal
Source A
N22:1
0<
Source B
0
0<
EQU
PCP Read
Param / Queue
to Read
ADD
Add
Source A
N22:2
1<
Source B
12288
12288 <
Dest
N22:12
12289 <
ADD
PCP Read
Command Msg
Index
EQU
Equal
Source A
N22:1
0<
Source B
1
1<
EQU
PCP Read
Param / Queue
to Read
ADD
Add
Source A
N22:2
1<
Source B
12213
12213 <
Dest
N22:12
12289 <
ADD
PCP Read
Command Msg
Index
EQU
Equal
Source A
N22:1
0<
Source B
2
2<
EQU
PCP Read
Param / Queue
to Read
ADD
Add
Source A
N22:2
1<
Source B
12280
12280 <
Dest
N22:12
12289 <
ADD
PCP Read
Command Msg
Index
EQU
Equal
Source A
N22:1
0<
Source B
3
3<
EQU
PCP Read
Param / Queue
to Read
ADD
Add
Source A
N22:2
1<
Source B
12205
12205 <
Dest
N22:12
12289 <
ADD
PCP Read
Command Msg
Index
N22:13 = Sub Index (Not used)
0003
B3:47
1
PCP Read
Routine
1-shot
MOV
Move
Source
0
0<
Dest
N22:13
0<
MOV
PCP Read
Command Msg
Sub Index
20COMM-UM007A-EN-P.book Page 16 Tuesday, January 22, 2002 10:52 AM