When enabled, the SQO instruction increments the position, passes the data at
that position in array_dint through the mask, and stores the result in value_1.
SQO Operand
Array
Mask
Destination
A 0 in the mask means the bit is not compared (designated by xxxx in
this example).
Using SQI with SQO
If you pair an SQI instruction with an SQO instruction, make sure that both instructions use the same Control, Length, and Position values.
Resetting the Position of SQO
Each time the controller goes from Program to Run mode, the SQO instruction clears (initializes) the .POS value. To reset .POS to the initialization value (.POS = 0), use a RES instruction to clear the position value. This example uses the status of the first-scan bit to clear the .POS value.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011