444 Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Chapter 10 Sequencer Instructions (SQI, SQO, SQL)
Sequencer Load (SQL)
The SQL instruction loads reference conditions into a sequencer array.
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
Source SINT
INT
DINT
Tag
Immediate
Input data to load into 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 SQI and
SQO instructions
Length DINT Immediate Number of elements in the Array (sequencer
table) to load
Position DINT Immediate Current position in the array
Initial value is typically 0
Mnemonic Data Type Description
.EN BOOL The enable bit indicates that the SQL instruction is enabled.
.DN BOOL The done bit is set when all the specified elements have been loaded into Array.
.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 controller is currently manipulating.