Installation manual
Publication 1747-RM001G-EN-P - November 2008
7-12 Application Specific Instructions
Sequencer Load (SQL)
The SQL instruction stores 16-bit data into a sequencer load file at each step
of sequencer operation. The source of this data can be an I/O or storage word
address, a file address, or a constant.
Enter Parameters
Enter the following parameters when programming this instruction.
• File is the address of the sequencer file. You must use the indexed file
indicator (#) for this address.
• Source can be a word address, file address, or a constant (-32768 to
32767).
If the source is a file address, the file length equals the length of the
sequencer load file. The two files will step automatically, per the position
value.
• Length is the number of steps of the sequencer load file (and also of
the source if the source is a file address), starting at position 1. The
maximum number you can enter is 255 words. Position 0 is the startup
position. The instruction resets (wraps) to position 1 at each cycle
completion.
The position address assigned for a sequencer file is step zero.
Sequencer instructions use length plus one word of data for each file
referenced in the instruction. This applies to the source if addressed as a
file.
A length value that points past the end of the programmed file causes a
runtime major error to occur.
• Position is the word location or step in the sequencer file to which data
is moved.
A position value that points past the end of the programmed file causes
a runtime major error to occur.
EN
DN
SQL
Sequencer Load
File #B20:0
Source I:1.0
Control R6:3
Length 2<
Position 1<
SQL
Output Instruction
Fixed SLC
5/01
SLC
5/02
SLC
5/03
SLC
5/04
SLC
5/05
• •••••
TIP
If you alter a length value with your ladder program,
make certain that the altered value is valid.
TIP
If you alter a length value with your ladder program,
make certain that the altered value is valid.