Chapter 10
Sequencer Instructions (SQI, SQO, SQL)
Sequencer Load (SQL)
Mnemonic
Data Type
.EN
BOOL
.DN
BOOL
.ER
BOOL
.LEN
DINT
.POS
DINT
444
The SQL instruction loads reference conditions into a sequencer array.
Operands:
Relay Ladder
Operand
Array
Source
Control
Length
Position
CONTROL Structure
Description
The enable bit indicates that the SQL instruction is enabled.
The done bit is set when all the specified elements have been loaded into Array.
The error bit is set when .LEN ≤ 0, .POS < 0, or .POS > .LEN.
The length specifies the number of steps in the sequencer array.
The position identifies the element that the controller is currently manipulating.
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
DINT
Array tag
SINT
Tag
INT
Immediate
DINT
A SINT or INT tag converts to a DINT value by sign-extension.
CONTROL
Tag
DINT
Immediate
DINT
Immediate
Description
Sequencer array
Specify the first element of the sequencer array
Do not use CONTROL.POS in the subscript
Input data to load into the sequencer array
Control structure for the operation
Typically use the same CONTROL as the SQI and
SQO instructions
Number of elements in the Array (sequencer
table) to load
Current position in the array
Initial value is typically 0