436 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 10 Sequencer Instructions (SQI, SQO, SQL)
Sequencer Input (SQI)
The SQI instruction detects when a step is complete in a sequence pair of SQO/
SQI instructions.
Operands:
Relay Ladder
CONTROL Structure
Operand Type Format Description
Array DINT Array tag Sequencer array
Specify the first element of the sequencer array
Do not use CONTROL.POS in the subscript
Mask SINT
INT
DINT
Tag
Immediate
Which bits to block or pass
A SINT or INT tag converts to a DINT value by sign-extension.
Source SINT
INT
DINT
Tag Input data for the sequencer array
A SINT or INT tag converts to a DINT value by sign-extension.
Control CONTROL Tag Control structure for the operation
Typically use the same CONTROL as the SQO and
SQL instructions
Length DINT Immediate Number of elements in the Array (sequencer table)
to compare
Position DINT Immediate Current position in the array
initial value is typically 0
Mnemonic Data Type Description
.ER BOOL The error bit is set when .LEN ≤ 0, .POS < 0, or .POS > .LEN.
.LEN DINT The length specifies the number of steps in the sequencer array.
.POS DINT The position identifies the element that the instruction is currently comparing.