Rockwell Automation 22-COMM-P PowerFlex Profibus Adapter User Manual
Page 93

SLC Ladder Logic Examples
D-5
Figure D.2 Drive 0 Control/Reference/Parameter Access Routine (continued)
N10:2 is the Station 1 Response Parameter Access Word 1. It is <> 0 when a message has been received in response to a
message request. If the response is >= 7000 hex (28672 decimal), then the adapter is responding that an error has occurred.
In this case, the returned data in the response will contain a fault code and not the parameter value data.
The response message can be found at:
N7:20 = PCA Word = contains RC and PNU
N7:21 = Subindex = the DPI port # ("0" = Host or PowerFlex drive, "5" = 22-COMM-P, etc.)
N7:22 = PVA #1 = the parameter value (high word)
N7:23 = PVA #2 = the parameter value (low word)
The PVA's will either contain parameter read data, echo the parameter write data or contain an error code if unsuccessful.
12
B3:19
15
Station 1
Par Prot
Messaging
Request
NEQ
Not Equal
Source A
N10:2
0<
Source B
0
0<
NEQ
Station 1
RESPONSE
PCA Word
COP
Copy File
Source
#N10:2
Dest
#N7:20
Length
4
COP
RESPONSE Message
PCA Word
MOV
Move
Source
0
0<
Dest
N20:2
0<
MOV
Station 2
PCA Word
U
B3:19
15
Station 1
Par Prot
Messaging
Request
13
END