User configurable messages – Rockwell Automation 1403-NDNET DeviceNet Communications Card Installation Instructions User Manual

Page 131

Advertising
background image

Publication XXXX-X.X.X - Month Year

DeviceNet™ Communication Card Sample Ladder Listing C-5

Rung 0004 - If the response queue is set (I:1/15 is high), and
data has been copied to the temporary integer file, then copy
the data into a floating point file (F40:0). Strip off the first three
words containing the return header and any integer data that
might have been requested.

Rung 0005 -. If the response queue is set (I:1/15 is high) strip off
the lower byte of the TXID/command word and add 4 to the
result. Then, move that result to the output file M0:1.24. This
resets the response queue and allows the program to continue.

User Configurable Messages

In the event that individual data from several instance tables are
required, and the total data does not exceed 29 words, the Instance 49
(User Configurable Message) can be utilized. An Explicit Message
write using Instance 3 must be done first to set which parameters are
to be returned when requested from Instance 49.

The Explicit Message Transfer Block header for a write command is
similar in structure to reading an instance data table.

TXID is set to 3. Because it's located in the top byte its value is 3
x 256 = 768

Command is 1

Port is 0

Size is fixed for instance 3 at 58 bytes..

Service is set to 16 to "set attributes". Because it is located in the
top byte its value is 16 x 256 = 4096

MAC ID is the node of the unit to be configured.

Class is always 4 for a Powermonitor II.

Instance is 3

Attribute is always 3 for a Powermonitor II.

Next refer to “Instance 3 Attribute (Configurable Assembly Setup
Write)” on page B-6 fo
r the set up.

Parameter 1 is the present password (default = 0).

Parameter 2 should be set to 49 for this example.

Parameter 3 is the total number of parameters to be configured.

Parameter 4 is the total number of words to be returned
(maximum of 29 words).

Parameter 5 is the first parameter to be returned for instance 49.

Parameters 6 to 26 are listed in the order they are to be returned
for instance 49.

Advertising