Controlling Bit Status; Set And Reset - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Controlling Bit Status

00000
00001
00002
00003
00004
00005
00006
4-4

Controlling Bit Status

4-4-1

SET and RESET

00100
00101
200
JMP(04) 00
Instruction 1
JMP(04) 00
Instruction 2
Instruction 3
Instruction 4
JME(05) 00
There are seven basic instructions that can be used generally to control indi-
vidual bit status. These are the OUTPUT, OUTPUT NOT, SET, RESET, DIF-
FERENTIATE UP, DIFFERENTIATE DOWN, and KEEP instructions. All of
these instructions appear as the last instruction in an instruction line and take
a bit address for an operand. Although details are provided in 5-9 Bit Control
Instructions, these instructions (except for OUTPUT and OUTPUT NOT,
which have already been introduced) are described here because of their
importance in most programs. Although these instructions are used to turn
ON and OFF output bits in the IR area (i.e., to send or stop output signals to
external devices), they are also used to control the status of other bits in the
IR area or in other data areas.
The SET and RESET instructions are very similar to the OUTPUT and OUT-
PUT NOT instructions except that they only change the status of their operand
bits for ON execution conditions. Neither instructions will affect the status of its
operand bit when the execution condition is OFF.
SET will turn ON the operand bit when the execution condition goes ON, but
unlike the OUTPUT instruction, SET will not turn OFF the operand bit when
the execution condition goes OFF. RESET will turn OFF the operand bit when
the execution condition goes OFF, but unlike OUTPUT NOT, RESET will not
turn ON the operand bit when the execution condition goes OFF.
In the following example, IR 10000 will be turned ON when IR 00100 goes ON
and will remain ON until IR 00101 goes ON, regardless of the status of IR
00100. When IR 00101 goes ON, RESET will turn IR 10000 OFF.
SET
RSET 10000
Address Instruction
00000
LD
00001
JMP(04)
00002
LD
00003
Instruction 1
00004
LD
00005
JMP(04)
00006
LD
00007
AND NOT
00008
Instruction 2
00009
LD
00010
Instruction 3
00011
LD
00012
Instruction 4
00013
JME(05)
Address Instruction
10000
00000
LD
00001
SET
00002
LD
00003
RSET
Section 4-4
Operands
00000
00
00001
00002
00
00003
00004
00005
00006
00
Operands
00100
10000
00101
10000

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents