Using explicit messaging (pcp communications) 6-13 – Rockwell Automation 20-COMM-I Interbus Adapter User Manual
Page 75
![background image](/manuals/577017/75/background.png)
Using Explicit Messaging (PCP Communications)
6-13
Writing Pr. 6 [Comm Flt Action] to a 20-COMM-I
In the example ladder logic program, the user would load these
registers before calling the subroutine to perform the PCP Write:
Message
Command word = 8 = PCP Write (bit 3 ON)
N23:10
Command
8
8
SLC Address
Desc
ription
Value (He
x)
N23:20
N23:13
N23:12
N23:11
N23:21
Reply
2
0
0
8
-32,760
CR# = 2 (Station 1.0)
Sub Index not used
Number of words following = 2
CR# = 2 (Station 1.0)
2FBB
2
0
8
8008
N23:16
0
Value (Dec)
Result = 0 (success)
N23:23
0
2
2
0
2
2
N23:22
N23:24
"8000" (bit 15 ON) indicates Reply message present
Status word:
"0008" (bit 3 ON) echo's the command (PCP Write)
2FB6h is the start of the 20-COMM-I parameters (Pr.1)
Index = 2FB5h+6h = Parameter 6 [Comm Flt Action
6 hex = 6 dec = Parameter 6 [Comm Flt Action]
Echo of the Command Word (PCP Write)
N23:14
N23:15
1
512
200
1
Data word 2 not used
Data Word 1 (upper byte) = 2 (Zero Data)
1 byte of data following
12219
Message
CR# = 2 (Station 1.0)
N23:0
Request
2
2
SLC Address
Desc
ription
Value (He
x)
N23:1
1
1= 20-COMM-I
1
Value (Dec)
N23:2
6
6
Parameter # = 6
N23:3
N23:4
N23:5
1
2
0
1
2
0
1 byte data write
Data Word 1 = 2 (Zero Data)
Data Word 2 not used
20COMM-UM007A-EN-P.book Page 13 Tuesday, January 22, 2002 10:52 AM