Mnemonic Code; The End Instruction; Logic Block Instructions - Omron SYSMAC CVM1 Series Operation Manual

Duplex system
Hide thumbs Also See for SYSMAC CVM1 Series:
Table of Contents

Advertisement

Mnemonic Code

4-3-5 The END Instruction

0000
00
4-4

Mnemonic Code

4-4-1 Logic Block Instructions

AND LOAD
0000
00
0000
01
72
The last instruction required to complete any program is the END instruction.
When the CPU scans a program, it executes all instructions up to the first END
instruction before returning to the beginning of the program and beginning
execution 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. The number following the END instruction
in the mnemonic code is its function code, which is used when inputting most
instructions into the PC. Function codes are described in more detail later. The
END instruction requires no operands and no conditions can be placed on the
instruction line with it.
0000
01
If there is no END instruction anywhere in a program, the program will not be
executed at all.
Logic block instructions do not correspond to specific conditions on the ladder
diagram; rather, they describe relationships between logic blocks. Each logic
block is started with a LOAD or LOAD NOT instruction. Whenever a LOAD or
LOAD NOT instruction is executed, a new execution condition is created and the
previous execution condition is stored in a buffer. The AND LOAD instruction
logically ANDs the execution conditions produced by two logic blocks, i.e., gen-
eral speaking, it ANDs the current execution condition with the last execution
condition stored in a buffer. The OR LOAD instruction logically ORs the execu-
tion conditions produced by two logic blocks.
Although simple in appearance, the diagram below requires an AND LOAD
instruction.
0000
02
0000
03
The two logic blocks are indicated by dotted lines. Studying this example shows
that an ON execution condition will be produced when: either of the conditions in
the left logic block is ON (i.e., when either CIO 000000 or CIO 000001 is ON) and
either of the conditions in the right logic block is ON (i.e., when either
CIO 000002 is ON or CIO 000003 is OFF).
Address Instruction
00500
Instruction
00501
(001)
00502
Program
END
execution
00503
ends here.
Address
Instruction
00000
00001
00002
00003
00004
Section 4-4
Operands
LD
000000
AND NOT
000001
Instruction
END(001)
---
Instruction
Operands
LD
000000
OR
000001
LD
000002
OR NOT
000003
AND LD
---

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cv seriesSysmac cvm1d series

Table of Contents