Logic Block Instructions; Out And Out Not; The End Instruction - Omron SYSMAC C20K Operation Manual

K-type programmable controllers
Hide thumbs Also See for SYSMAC C20K:
Table of Contents

Advertisement

The Ladder Diagram
4-3-4

OUT and OUT NOT

0000
0001
4-3-5

The END Instruction

4-3-6

Logic Block Instructions

32
The OUT and OUT NOT instructions are used to control the status of the
designated operand bit according to the execution condition. With the OUT
instruction, the operand bit will be turned ON as long as the execution condi-
tion is ON and will be turned OFF as long as the execution condition is OFF.
With the OUT NOT instruction, the operand bit will be turned ON as long as
the execution condition is OFF and turned OFF as long as the execution con-
dition is ON. These appear as follows:
0100
0101
In the above examples, bit 0100 will be ON as long as 0000 is ON and bit
0101 will be OFF as long as 0001 is ON. Here, 0000 and 0001 would be in-
put bits and 0100 and 0101 output bits assigned to the Units controlled by
the PC, i.e., the signals coming in through the input points assigned 0000
and 0001 are controlling the output points assigned 0100 and 0101, respec-
tively.
The length of time that a bit is ON or OFF can be controlled by combining the
OUT or OUT NOT instruction with timer instructions. Refer to Examples un-
der 5-11-1 TIMER - TIM for details.
The last instruction in any program must be the END instruction. When the
CPU cycles 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
program, which is sometimes done when debugging, no instructions past the
first END instruction will be executed until it is removed.
0000
0001
Address Instruction
0500
LD
0501
AND NOT
0502
Instruction
0503
END(01)
If there is no END instruction anywhere in the program, the program will not
be executed at all.
Logic block instructions do not correspond to specific conditions on the lad-
der diagram; rather, they describe relationships between logic blocks. The
AND LOAD instruction logically ANDs the execution conditions produced by
two logic blocks. The OR LOAD instruction logically ORs the execution condi-
tions produced by two logic blocks.
Address Instruction
0000
LD
0001
OUT
Address Instruction
0000
LD
0001
OUT NOT
Instruction
END(01)
Operands
0000
0001
---
Section 4-3
Operands
0000
0100
Operands
0001
0101
Program execution
ends here.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c40kSysmac c60kSysmac c28k

Table of Contents