![background image](http://html1.mh-extra.com/html/omron/sysmac-c200hs/sysmac-c200hs_operation-manual_742436143.webp)
133
5-9-3 SET and RESET – SET and RSET
B: Bit
IR, SR, AR, HR, LR
Ladder Symbols
Operand Data Areas
SET B
B: Bit
IR, SR, AR, HR, LR
RSET B
Description
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. RSET
turns the operand bit OFF when the execution condition is ON, and does not af-
fect the status of the operand bit when the execution condition is OFF.
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.
Precautions
The status of operand bits for SET and RSET programmed between IL(02) and
ILC(03) or JMP(04) and JME(05) will not change when the interlock or jump con-
dition is met (i.e., when IL(02) or JMP(04) is executed with an OFF execution
condition).
Flags
There are no flags affected by these instructions.
Examples
The following examples demonstrate the difference between OUT and SET/
RSET. In the first example (Diagram A), IR 10000 will be turned ON or OFF
whenever IR 00000 goes ON or OFF.
In the second example (Diagram B), IR 10000 will be turned ON when IR 00001
goes ON and will remain ON (even if IR 00001 goes OFF) until IR 00002 goes
ON.
00000
Diagram A
00002
RSET 10000
Diagram B
SET 10000
00001
Address
Instruction
Operands
00000
LD
00000
00001
OUT
10000
Address
Instruction
Operands
00000
LD
00001
00001
SET
10000
00002
LD
00002
00003
RSET
10000
10000
5-9-4 KEEP – KEEP(11)
B: Bit
IR, AR, HR, LR
Ladder Symbol
Operand Data Areas
S
R
KEEP(11)
B
Limitations
Any output bit can generally be used in only one instruction that controls its sta-
tus. Refer to 3-3 IR Area for details.
Bit Control Instructions
Section 5-9
Содержание SYSMAC C200HS
Страница 1: ...Cat No W235 E1 05 C200HS SYSMAC Programmable Controllers...
Страница 2: ...C200HS Programmable Controllers Operation Manual Revised February 2002...
Страница 3: ...iv...
Страница 5: ...vi...
Страница 379: ...371 SR word Corresponding key s Bit 279 03 04 05 3 06 07 VER 08 09 Monitoring Operation and Modifying Data Section 7 1...
Страница 470: ...468 Programmer Program Date Page Word Contents Notes Word Contents Notes Data Storage...
Страница 471: ...469 Programmer Program Date Page TC address T or C Set value Notes TC address T or C Set value Notes Timers and Counters...