Controllogix example, Formatting a message to read a parameter, Controllogix example -3 – Rockwell Automation 22-COMM-C ControlNet Adapter User Manual
Page 63

Using Explicit Messaging
6-3
Formatting a Message to Read a Parameter
A Get Attribute Single message is used to read a single parameter. This
example read message is for parameter d003 - [Output Current] for a
PowerFlex 4-Class drive.
Figure 6.2 Get Attribute Single Message Configuration Screens
ControlLogix Example
TIP: To display the Message Configuration screen in RSLogix 5000,
add a message instruction (MSG), create a new tag for the message
(Properties: Base tag type, MESSAGE data type, controller scope), and
click the
button in the message instruction.
Configuration Tab
Example Value
Description
Message Type
Service Type
(1)
Service Code
(1)
Class
Instance
Attribute
Destination
CIP Generic
Get Attribute Single
e (Hex.)
f (Hex.)
3 (Dec.)
1 (Hex.)
Output_Current
CIP messages are used to access the Parameter object
in the 22-COMM-C.
This service is used to read a parameter value.
The code for the requested service.
The Class ID for the CIP Parameter object.
The instance number is the same as the parameter
number in Single mode operation.
The attribute number for the Parameter Value attribute.
The tag where the data that is read is stored.
Communication Tab Example Value
Description
Path
(2)
PowerFlex_40…
The path is the route that the message will follow.
(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 selecting a Service Type other than “Custom” from the pull-down menu, an
appropriate Hex. value is automatically assigned to the Service Code box which grays out (unavailable).
(2)
Click Browse to find the path, or type in the name of the device listed in the I/O Configuration folder.