Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 205

Table of Contents

Advertisement

Hint
• 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. For OUT, the operand bit is turned ON
when the input condition turns ON and is turned OFF when the input condition turns OFF. For SET
and RSET, the operand bit turns ON or OFF, respectively, when the input condition turns ON and the
operand bit does not change when the input condition turns OFF.
000000
0.00
000001
0.01
000002
0.02
• 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.
• SET and RSET have immediate refreshing variations (!SET and !RSET). When an external output bit
has been specified for B in one of these instructions, 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.)
If external output is specified for R by !SET (or !RSET), R will be OUT-refreshed as soon as it turns
ON (or OFF) (when the instruction is executed). R, which turned ON (or OFF), will remain ON (or
OFF) as normal until a RSET instruction (or SET instruction) is executed.
Precautions
• With CJ2 CPU Units, SET can be used for bits in the DM or EM Area. For other models of CPU Unit,
SET cannot be used for bits in the DM or EM Area. Use SETB(532) instead. With CJ2 CPU Units,
RSET can be used for bits in the DM or EM Area. For other models of CPU Unit, RSET cannot be
used for bits in the DM or EM Area. Use RSTB(533) instead.
• 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.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
100.00
010000
CIO 100.00 is turned ON/OFF
when CIO 0.00 goes ON/OFF.
CIO 100.00 is turned ON when
CIO 0.01 goes ON; it remains
100.00
ON until CIO 0.02 goes ON.
100.00
3. Instructions
3
169

Advertisement

Table of Contents
loading

Table of Contents