
177
Sequence Output Instructions
Section 3-4
SET and RSET have immediate refreshing variations (!SET and !RSET).
When an external output bit has been specified for B in one of these instruc-
tions, any changes to B will be refreshed when the instruction is executed and
reflected immediately in the output bit. (The changes will not be reflected
immediately if the bit is allocated to a Group-2 High-density I/O Unit, High-
density Special I/O Unit, or a Unit mounted in a SYSMAC BUS Remote I/O
Slave Rack.)
The set and reset inputs for a KEEP(011) instruction must be programmed
with the instruction, but the SET and RSET instructions can be programmed
completely independently. Furthermore, the same bit may be used as the
operand in any number of SET or RSET instructions.
Flags
No flags are affected by SET and RSET.
Precautions
SET and RSET cannot be used to set and reset timers and counters.
When SET or RSET is programmed between IL(002) and ILC(003) or
JMP(004) and JME(005), the status of the specified bit won’t be changed if
the program section is interlocked or jumped.
Example
Differences between OUT/OUT NOT and SET/RSET
The operation of SET differs from that of OUT because the OUT instruction
turns the operand bit OFF when its execution condition is OFF. Likewise,
RSET differs from OUT NOT because OUT NOT turns the operand bit ON
when its execution condition is OFF.
3-4-6
MULTIPLE BIT SET/RESET: SETA(530)/RSTA(531)
Purpose
SETA(530) turns ON the specified number of consecutive bits.
RSTA(531) turns OFF the specified number of consecutive bits.
Execution condition
of RSET
Status of B
CIO 010000 is turned ON/OFF
when CIO 000000 goes ON/OFF.
CIO 010000 is turned ON when
CIO 000001 goes ON; it remains
ON until CIO 000002 goes ON.
000000
000001
000002
010000
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...