Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 237

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Sequence Output Instructions
Description
Flags
Precautions
Example
SET turns the operand bit ON when the execution condition is ON, and does
not affect the status of the operand bit when the execution condition is OFF.
Use RSET to turn OFF a bit that has been turned ON with SET.
RSET turns the operand bit OFF when the execution condition is ON, and
does not affect the status of the operand bit when the execution condition is
OFF. Use SET to turn ON a bit that has been turned OFF with RSET.
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.
No flags are affected by SET and RSET.
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 will not be changed if
the program section is interlocked or jumped.
Note SET cannot be used for addresses in the DM and EM Areas. Use SETB(531)
instead.
Note RSET cannot be used for addresses in the DM and EM Areas. Use
RSTB(533) instead.
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.
Execution condition
of SET
Status of B
Execution condition
of RSET
Status of B
Section 3-4
197

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents