EasyManuals Logo
Home>Omron>Controller>CPM1

Omron CPM1 Programming Manual

Omron CPM1
541 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #198 background imageLoading...
Page #198 background image
177
Controlling Bit Status Section 4-4
tion following the next JUMP END instruction with a jump number of 00.
Although, as in all jumps, no status is changed and no instructions are exe-
cuted between the JUMP 00 and JUMP END 00 instructions, the program
must search for the next JUMP END 00 instruction, producing a slightly longer
execution time.
Execution of programs containing multiple JUMP 00 instructions for one
JUMP END 00 instruction is similar to that of interlocked sections. The follow-
ing diagram is the same as that used for the interlock example above, except
redrawn with jumps. The execution of this diagram would differ from that of the
diagram described above (e.g., in the previous diagram interlocks would reset
certain parts of the interlocked section, however, jumps do not affect the sta-
tus of any bit between the JUMP and JUMP END instructions).
4-4 Controlling Bit Status
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-8 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.
4-4-1 SET and RESET
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.
Instruction 1
00000
Instruction 2
00001
JME(05) 00
JMP(04) 00
00004
Instruction 3
Instruction 4
00006
00005
00003
00002
JMP(04) 00
Address Instruction Operands
00000 LD 00000
00001 JMP(04) 00
00002 LD 00001
00003 Instruction 1
00004 LD 00002
00005 JMP(04) 00
00006 LD 00003
00007 AND NOT 00004
00008 Instruction 2
00009 LD 00005
00010 Instruction 3
00011 LD 00006
00012 Instruction 4
00013 JME(05) 00

Table of Contents

Other manuals for Omron CPM1

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CPM1 and is the answer not in the manual?

Omron CPM1 Specifications

General IconGeneral
BrandOmron
ModelCPM1
CategoryController
LanguageEnglish

Related product manuals