User Manual Manual

Rockwell Automation Publication 56RF-UM001A-EN-P - October 2011 111
SLC Code Examples Chapter 10
Rung 0004: When the command value has been cleared, load in the instruction
parameters contained in N104 (Read Byte). N101 (Read Single Block) could be
used in place of N104.
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.