beautypg.com

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

Page 96

background image

D-8

SLC Ladder Logic Examples

Figure D.3 Drive 1 Control/Reference/Parameter Access Routine (continued)

N10:8 is the Station 2 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 occured.
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:40 = PCA Word = contains RC and PNU
N7:41 = Subindex = the DPI port # ("0" = Host or PowerFlex drive, "5" = 22-COMM-P, etc.)
N7:42 = PVA #1 = the parameter value (high word)
N7:43 = 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

0

Station 2
Par Prot
Messaging
Request

NEQ

Not Equal
Source A

N10:8

0<

Source B

0
0<

NEQ

Station 2
RESPONSE
PCA Word

COP

Copy File
Source

#N10:8

Dest

#N7:40

Length

4

COP

RESPONSE Message
PCA Word

MOV

Move
Source

0
0<

Dest

N20:8

0<

MOV

Station 2
PCA Word

U

B3:19

0

Station 2
Par Prot
Messaging
Request

13

END