12 using explicit messaging (parameter protocol) – Rockwell Automation 20-COMM-P Profibus Adapter User Manual

Page 82

Advertising
background image

6-12

Using Explicit Messaging (Parameter Protocol)

Figure 6.5 Example SLC Ladder Logic - Station 1 Parameter Protocol (Continued)

N10:10 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 parameter value data.

The response message can be found at:
N7:20 = PCA word = contains the RC and PNU
N7:21 = Subindex = the DPI port # ("0"= Host or PowerFlex drive, "5" = 20-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.

0017

B3:19

15

Station 1
Par Prot
Messaging
Request

NEQ

Not Equal
Source A

N10:10

0<
Source B

0

0<

Station 1
RESPONSE
PCA Word

COP

Copy File
Source

#N10:10

Dest

#N7:20

Length

4

COP

RESPONSE Message
PCA Word

MOV

Move
Source

0

0<
Dest

N20:10

0<

MOV

Station 1
PCA Word

U

B3:19

15

Station 1
Par Prot
Messaging
Request

0018

END

20COMM-UM006A-EN-P.book Page 12 Friday, September 28, 2001 10:43 AM

Advertising