7: BASIC INSTRUCTIONS
7-32 USER’S MANUAL
SET and RST (Reset)
The SET and RST (reset) instructions are used to set (on) or reset (off) outputs, internal relays, and shift register bits. The SET
and RST instructions require one address which must be selected from the appropriate operand numbers. The same output
can be set and reset many times within a program. SET and RST instructions operate in every scan while the input is on.
END
The END instruction is always required at the end of a program; however, it is not necessary to program the END instruc-
tion after the last programmed instruction. The END instruction already exists at every unused address. (When an address
is used for programming, the END instruction is removed.)
The END key is provided on the program loader for purposes other than programming an END
instruction, (which is rarely necessary). A useful purpose for the END key is to find the program
address for the end of a program:
A scan is the execution of all instructions from address zero to the END instruction. The time required for this execution is
referred to as one scan time. The scan time varies with respect to program length, which corresponds to the address where
the END instruction is found.
During the scan time, program instructions are processed sequentially. This is why the output instruction closest to the
END instruction has priority over a previous instruction for the same output. No output is initiated until all logic within a
scan is processed.
Output occurs simultaneously, and this is the first part of the END instruction execution. The second part of the END
instruction execution is to monitor all inputs, also done simultaneously. Then program instructions are ready to be pro-
cessed sequentially once again.
Valid Operands
When using in the high-speed processing mode,
operands are limited. See page 6-1.
Instruction
IQMTCR
SET — 0-31 0-287 — — 0-63
RST — 0-31 0-287 — — 0-63
Ladder Diagram
Key Operation
I0
LOD
10
SET
I
RST
F
Q
0
RST
F
Q
Prgm Adrs Instruction Data
0
1
2
3
LOD
SET
LOD
RST
I0
Q0
I1
Q0
Program List
I1
SET
I
1
BPS
0
I0
ON
OFF
I1
ON
OFF
Q0
ON
OFF
Timing Chart
Q0
SET
Q0
RST
RST
F
Q
LOD
10
SET
I
0
Key Operation
7
END