Ladder program description, Explicit message transfer, Appendix c – Rockwell Automation 1403-NDNET DeviceNet Communications Card Installation Instructions User Manual
Page 127: Devicenet communication card sample ladder listing, Appendix

1
Publication XXXX-X.X.X - Month Year
Appendix
C
DeviceNet™ Communication Card Sample
Ladder Listing
Ladder Program
Description
The following is a ladder program designed to return real- time data
from a 1403 Powermonitor II to an SLC 500 processor via DeviceNet
using a DeviceNet scanner module. The following example uses these
settings:
•
Node = 5
•
Port = 0
•
Class = 4
•
Instance = 11
•
Attribute = 3
Explicit Message Transfer
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 publication 1747-5.8 - Devicenet scanner module installation
instructions for a detailed description of all coding.
Word M0:1.224
A unique TXID (Transmit Identifier) and Command byte is needed for
this word. The valid command codes are:
TXID
cmd/status
Port
Size
Service
MAC ID
Class
Instance
Attributes
7UDQVDFWLRQ
+HDGHU
ZRUGV
7UDQVDFWLRQ
ZRUGV
%RG\