beautypg.com

Micrologix 1400 code examples, Chapter, Read byte – Rockwell Automation 56RF RFID System User Manual User Manual

Page 113

background image

Rockwell Automation Publication 56RF-UM001A-EN-P - October 2011

113

Chapter

11

MicroLogix 1400 Code Examples

Read Byte

The Read Byte command (value =4) reads a user-specified number of bytes from
a tag, starting at a user-specified address. Additionally, an Option Flag can be set
to return the UUID of the tag.

• Option Flag 0

– Returns the specified user data

• Option Flag 1

– Returns the UUID of the tag and the specified user data

Note:

This command operates only on the first tag in the field.

Example Routine

• Rung 0000:

Place RFID interface into the Run Mode. The bit should be

highlighted in green. If the bit is not green, right-click it and click
Toggle Bit

.

• Rung 0001:

Read Input Image. Double-click the MSG box to enter the

setup screen. Input size is 116 bytes (58 words). Click on the MultiHop
tab to set up an EtherNet/IP Device.