Write multiple blocks, Example routine – Rockwell Automation 56RF RFID System User Manual User Manual
Page 116

116
Rockwell Automation Publication 56RF-UM001A-EN-P - October 2011
Chapter 11
MicroLogix 1400 Code Examples
• 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.
• Rung 0002:
Write Output Image. Double-click the MSG box to enter the
Setup Screen. Output Size is 124 bytes (62 Words). Click on the
MultiHop tab to set up an EtherNet/IP Device.
• Rung 0003:
The Tag Present bit will be highlighted in green when a tag is
present. When a tag is present, clear the command value.
• Rung 0004:
When the command value has been cleared, load in the
instruction parameters contained in N102 (Read Multiple Blocks).
• Rung 0005:
Wait for the read command to run. The Read in Progress bit
will be highlighted in green when the command is running. When the
command has completed, the Read in Progress bit will return to its original
state. When the command has been executed and completed, copy the data
read into N100.
• Rung 0006:
If there was an error with the operation, then N100:0 will
contain the error code.
Write Multiple Blocks
The Write Multiple Blocks command (value = 11) writes multiple blocks of user
data to an FRAM tag.
Note:
This command will only work on FRAM tags. Unless a UUID is specified,
this command will operate 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.
• Rung 0002:
Write Output Image. Double-click the MSG box to enter the
Setup Screen. Output Size is 124 bytes (62 Words). Click on the
MultiHop tab to set up an EtherNet/IP Device.
• Rung 0003:
The Tag Present bit will be highlighted in green when a tag is
present. When a tag is present, clear the command value.
• Rung 0004:
When the command value has been cleared, load in the
instruction parameters contained in N111 (Write Multiple Blocks).
• Rung 0005:
Wait for the write command to run. The Write in Progress bit
will be highlighted in green when the command is running. When the
command has completed, the Write in Progress bit will return to its
original state. When the command has been executed and completed, copy
the data read into N100.
• Rung 0006:
If there was an error with the operation, then N100:0 will
contain the error code.