Publication 1747-RM001G-EN-P - November 2008
7-14 Application Specific Instructions
Operation
Instruction parameters have been programmed in the SQL instruction shown
below. Input word I:1.0 is the source. Data in this word is loaded into integer
file #N7:30 by the sequencer load instruction.
When rung conditions change from false-to-true, the SQL enable bit (EN) is
set. The control element R6:4 increments to the next position in the sequencer
file, and loads the contents of source I:1.0 into this location. The SQL
instruction continues to load the current data into this location each scan that
the rung remains true. When the rung goes false, the enable bit (EN) is reset.
The instruction loads data into a new file element at each false-to-true
transition of the rung. When step 4 is completed, the done bit (DN) is set.
Operation cycles to position 1 at the next false-to-true transition of the rung
after position 4.
If the source were a file address such as #N7:40, files #N7:40 and #N7:30
would both have a length of 5 (0 to 4) and would track through the steps
together per the position value.
(EN)
(DN)
SQL
SEQUENCER LOAD
File #N7:30
Source I:1.0
Control R6:4
Length 4
Position 2
Source I:1.0 External Inputs Associated with
I:1.0
15 8 7 0 00
0000 0101 0000 1010 01 ON
02
Sequencer Output File #N7:30 03 ON
Word Step 04
N:7:30 0000 0000 0000 0000 0 05
31 1010 0010 1111 0101 1 06
32 0000 0101 0000 1010 2 Current Step 07
33 0000 0000 0000 0000 3 08 ON
34 0000 0000 0000 0000 4 09
10 ON
11
12
13
14
15