Multiple data table reads by using devicenet, Explicit message transfer block, Explicit message transfer setup – Rockwell Automation 1404-M4_M5_M6_M8 Powermonitor 3000 User Manual, Firmware rev. 3.0 or LATER User Manual

Page 305

Advertising
background image

Publication 1404-UM001F-EN-P - November 2009

305

Sample Applications Appendix C

Multiple Data Table Reads
by Using DeviceNet

The following is a ladder program designed to return a number of
real-time data tables from a power monitor to an SLC 500 processor
via DeviceNet by using a DeviceNet scanner module. The following
example and ladder diagram uses these settings:

Node (MAC ID) = 5

Port = 0

Class = 4

Instance = 14, 16, 18, 20, 22, 17, 25

Attribute = 3

Command = 1, 4

Size 3

Size = 3

Service = 14

Explicit Message Transfer Setup

The Explicit Message Transfer Block header for this example is
assembled in integer file N10:0. The header contains the information
for all aspects of the transmission request. Each different node or
instance requires assembling another file. Each file has to be moved in
turn to the output M0 file starting at word 224.

Refer to Devicenet Scanner Module Installation Instructions,
publication 1747-IN058, for a detailed description of all coding.

Word M0:1.224

A unique TXID (Transmit Identifier) and Command byte is needed for
this word. These are the valid command codes.

1 = Execute transaction block

4 = Delete transaction from response queue

Explicit Message Transfer Block

TXID

cmd/status

Port

Size

Service

MAC ID

Class

Instance

Attributes

Advertising