beautypg.com

Rockwell Automation 1404-M4_M5_M6_M8 Powermonitor 3000 User Manual, PRIOR to Firmware rev. 3.0 User Manual

Page 273

background image

Publication 1404-UM001D-EN-E - October 2004

Sample Applications C-19

Word M0:1.225

A port number and transaction body size is needed for this word. The
port number is the DeviceNet scanner port that handles this
transaction; an SLC-500 uses port 0 and the PLC-5 uses port 0 or 1.
The size is the number of bytes (2 bytes = 1 word) in the transaction
body which is 6 (6 bytes = 3 words).

Word M0:1.226

A service code and MAC ID is needed for this word. The service code
is the DeviceNet service that can be use on the Class 4 assembly
instances; the valid service codes are:

• 14 = Get_Attributes_Single
• 16 = Set_Attributes_Single

The MAC ID is the node number of the device that the DeviceNet
scanner is communicating to; this example uses node 5.

Word M0:1.227

The class number is the first word of the transaction body; class 4 is
used to retrieve the real-time data assemblies.

Table 3.C

Port

Size

Port x 256 + Size

0 x 256 + 6

6

Table 3.D

Service

MAC ID

Service x 256 + MAC ID

14 x 256 + 5

3589

Table 3.E

Class

4