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

Page 70

Advertising
background image

62

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

Appendix B RSLogix 5000 sample code

6.

Add a normally open contact and a one-shot instruction to initialize the
message instruction.

7.

After you enter a value into the Preset_Value DINT and toggle the preset
contact, the message instruction presets the encoder’s current count value.
The position value is changed to the preset value you set.

IMPORTANT

Always do a Get after a Set to verify the value was changed.

Advertising