Writing (set) data example – Rockwell Automation 1761-NET-DNI DeviceNet Interface (DNI) User Manual
Page 82

Publication 1761-UM005B-EN-P - October 2006
82 Explicit Messaging (DNI Series B Only)
Writing (Set) Data Example
In this example we want to write data to the light tower at node 20.
The light tower has specific parameters that are accessible via the
DeviceNet network. In this example, profile register 241 within the
DNI (node 10) has been configured to set data in the light tower.
DNI Profile Register 241:
• DeviceNet Node:20
• Class: 9
• Instance: 1
• Attribute: 3
• Size: 1 byte
To set DeviceNet data, a write message is initiated from the controller
to node address 250. The first data word of the write message
identifies which profile register to use (240…249). The remaining data
words in the message contain the data that is transmitted to the
DeviceNet device, in this example the light tower.
The size specified in the DNI’s profile register is in bytes. The data
being sent by the controller is in words. In this example N7:0 contains
the profile register to be used (241). Location N7:1 contains the data to
be sent to the light tower.
Node 5
Node 15
Node 25
Node 30
Node 20
Node 10