Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 439
Sequencer Instructions (SQI, SQO, SQL) Chapter 10
Example: When enabled, the SQI instruction passes value_2 through the mask to
determine whether the result is equal to the current element in array_dint. The
masked comparison is true, so the rung-condition-out goes true.
A 0 in the mask means the bit is not compared (designated by sextets in
this example).
Use SQI without SQO
If you use the SQI instruction without a paired SQO instruction, you have to
externally increment the sequencer array.
The SQI instruction compares the source value. The ADD instruction increments the sequencer array. The GRT determined whether another val ue is availabl e to check in th e sequence r array. The MOV instr uction rese ts the positi on value after completely st epping through the sequencer array one time.
SQI Operand Example Values (DINTs Displayed In Binary)
Source xxxxxxxx xxxxxxxx xxxx0101 xxxx1010
Mask 00000000 00000000 00001111 00001111
Array xxxxxxxx xxxxxxxx xxxx0101 xxxx1010