Rockwell Automation 842E EtherNet/IP Absolute Encoder User Manual User Manual

Page 76

Advertising
background image

68

Rockwell Automation Publication 842E-UM001A-EN-P May 2012

Appendix B RSLogix 5000 sample code

2.

Add a new MSG function block to the program, browse to the
Run_Time_Message data type created in step 1. Then double-click the grey
box to configure the message instruction.

3.

In the Configuration tab select:

Message type - CIP Generic
Service Type - Get Attribute Single
Service Code - (Automatically populated)
Destination Element - Run_Time_Seconds (browse to this tag)
Instance - 1
Class - 23*
Attribute 32*
* hexadecimal values

Advertising