Rockwell Automation 25-COMM-D PowerFlex 525 DeviceNet Adapter User Manual
Page 58

58
Rockwell Automation Publication 520COM-UM002A-EN-E - April 2013
Chapter 6
Using Explicit Messaging
CompactLogix Example Ladder Logic Program to Write a Single
Parameter
A Set Attribute Single message is used to write to a single parameter. This write
message example writes a value to the 16-bit parameter P041 [Accel Time 1] in a
PowerFlex 525 drive.
Example Controller Tags to Write a Single Parameter
Example Ladder Logic to Write a Single Parameter
Source Element
–
Leave blank (not applicable).
Source Length
0 bytes
Number of bytes of service data to be sent in the message.
Destination
Output_Current
(4)
The tag where the data that is read is stored.
Communication Tab Example Value
Description
Path
(2)
DeviceNet_Scanner, 2, 1
The path is the route that the message will follow.
Tag Tab
Example Value
Description
Name
Single_Read_Message
The name for the message.
(1) The default setting for Service Type is “Custom,” enabling entry of a Service Code not available from the Service Type pull-down
menu. When choosing a Service Type other than “Custom” from the pull-down menu, an appropriate Hex. value is automatically
assigned to the Service Code box which is dimmed (unavailable).
(2) Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder (for this example,
DeviceNet_Scanner). Then always type in a comma followed by a “2”, which is the DeviceNet scanner port, followed by another
comma, then followed by the DeviceNet node number of the drive (for this example, “1”).
(3) See
Explicit Messaging Class Code Compatibility with PowerFlex 525 Drives on page 55
for limitations of PowerFlex 525 drives when
using DPI Parameter Object Class code 0x93 for explicit messaging.
(4) In this example, Output Current is a 16-bit parameter requiring the Data Type field to be set to “INT” when creating the controller
tag. See the drive documentation to determine the size of the parameter and its data type.
(5) This applies only in single-drive mode. For Multi-drive mode, see
,
for examples.
Operation
Controller Tags for Single Write Message
Data Types
XIC
Execute_Single_Write_Message
BOOL
MSG
Single_Write_Message
MESSAGE
Configuration Tab
Example Value
Description
Execute_Single_Write_Message
Message
Message Control Single_Write_Message
MSG
EN
DN
ER