EasyManuals Logo

Omron SYSMAC C20P User Manual

Omron SYSMAC C20P
211 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 #50 background imageLoading...
Page #50 background image
42
In the following example, HR 000 will be turned ON when 0002 is ON and
0003 is OFF. HR 000 will then remain ON until either 0004 or 0005 turns ON.
0002
KEEP(11)
HR 000
0004
0003
0005
R: reset input
S: set input
4–4–4 Self-maintaining Bits
Although the Keep instruction can be used to create self-maintaining bits, it is
sometimes necessary to create self-maintaining bits in another way so that
they can be turned OFF when in an interlocked section of a program.
To create a self-maintaining bit, the operand bit of an Output instruction is
used as a condition for the same Output instruction in an OR setup so that
the operand bit of the Output instruction will remain ON or OFF until changes
in other bits occur. At least one other condition is used just before the Output
instruction to function as a reset. Without this reset, there would be no way to
control the operand bit of the Output instruction.
The above diagram for the Keep instruction can be rewritten as shown below.
The only difference in these diagrams would be their operation in an inter-
locked program section when the execution condition for the Interlock in-
struction was ON. Here, just as in the same diagram using the Keep instruc-
tion, two reset bits are used, i.e., HR 000 is turned OFF by turning ON both
0004 and 0005.
0002 0003
HR 000
HR 000
0004
0005
4–5 The End Instruction
The last instruction in any program must be the End instruction. When the
CPU scans the program, it executes all instructions up to the first End in-
struction before returning to the beginning of the program and beginning exe-
cution again. Although an End instruction can be placed at any point in a pro-
gram, which is sometimes done when debugging, no instructions past the
first End instruction will be executed until it is removed.
Instruction
0000 0001
END(01)
Program execution
ends here.
The End Instruction Section 4–5

Table of Contents

Other manuals for Omron SYSMAC C20P

Questions and Answers:

Question and Answer IconNeed help?

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

Omron SYSMAC C20P Specifications

General IconGeneral
BrandOmron
ModelSYSMAC C20P
CategoryController
LanguageEnglish

Related product manuals