Professional Documents
Culture Documents
1 of 1
http://plcguide.mrplc.com/menu.shtml
Menu
Command Index
Basic Instructions
Timer & Counter
Compare
Data
Math
Register and Sequencer
Program Control
Communication
Programming References
Example Programs
PLC GuestBook
Links
Down Loads
Send Comments
2001-2006
All Rights Reserved
Your IP Address is: 117.222.1.67
02-07-2013 16:06
1 of 4
http://plcguide.mrplc.com/regsequ/sql.html
The symbol for the sequencer load command is illustrated above. The SQL command
is placed on
the right side of the rung as an output. When the rung transfers from false-to-true the enable bit (EN) of
the SQL commamd is set. The position of the sequencer file is then incremented to the next position by
the control file. The contents of the source file is then loaded into this file. This is continued for each scan
that hte rung remains true. The enable bit is reset when the rung changes to false.
With each false-to-true transtion the instruction loads data into a new file. When the final step is
completed the done bit (DN) is set. On the next false-to-true transition of rung the operation returns to
step one. When the source file address is set as #N7:40 and #N7:30 or similar the length is % and would
track through the steps together per the position value.
Instruction Parameters
Several parameters must be set when programming this instruction. A definition and explanation is of
each is given below.
FILE
The file is the address of the sequencer file. The file indicator(#) for the address must be used.
SOURCE
The source can be specified by either using a file address, word address, or a constant. When a file
address is used the file length equals the length of the sequencer load file. These files will step
automatically, per the positon value.
02-07-2013 16:06
2 of 4
http://plcguide.mrplc.com/regsequ/sql.html
CONTROL
The control parameter is a file address. The status bits, length value, and position value are stored in
this element. The control file address can not be used for any other instruction.
LENGTH
The length is the number of steps of the sequencer load file starting at position 1. The maximum
number of words is 255 ( in MicroLogix 1000 controllers the max. is 104 words). The zero position
is the startup position. At the end of each cycle the instruction resets to position 1. Step zero is the
position address assigned to the sequencer file. For each file referenced by the instruction uses
length plus on word. This applies only if the source is addressed as a file.(A run time major error
will occur if the length value points past the end of the programmed file.)
POSITION
The position is the word location or step the sequencer file from/to which the instruction moves
data. (A run time major error occurs if the postion value points past the end of the programmed
file.)
Programming Problem
02-07-2013 16:06
3 of 4
http://plcguide.mrplc.com/regsequ/sql.html
The example of a palletized conveyor system is used below to demostrate how the sequencer command is
used. When the proximity sensor (I:1/15) is enabled by the pallet, the magnet code of the pallet is loaded
into the sequencer file. This allows an inventory of the pallets to be set up.
The IIM command places the input word into the I:1.0 file when the sensor is enabled. The sequencer load
command then loads the word from I:1.0 into the sequencer file.
The diagram above shows the input word that is to set to the sequencer file.
The diagram shows words containing the pallet codes that have been loaded into the sequencer file.
02-07-2013 16:06
4 of 4
http://plcguide.mrplc.com/regsequ/sql.html
02-07-2013 16:06