Ladder Instructions - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Basic Ladder Diagrams
4-3-3

Ladder Instructions

instructions require no operands, while others require up to three operands,
Program Memory addresses can be from one to four words long.
Program Memory addresses start at 00000 and run until the capacity of Pro-
gram Memory has been exhausted. The first word at each address defines
the instruction. Any definers used by the instruction are also contained in the
first word. Also, if an instruction requires only a single bit operand (with no
definer), the bit operand is also programmed on the same line as the instruc-
tion. The rest of the words required by an instruction contain the operands
that specify what data is to be used. When converting to mnemonic code, all
but ladder diagram instructions are written in the same form, one word to a
line, just as they appear in the ladder diagram symbols. An example of mne-
monic code is shown below. The instructions used in it are described later in
the manual.
Address Instruction
00000
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
The address and instruction columns of the mnemonic code table are filled in
for the instruction word only. For all other lines, the left two columns are left
blank. If the instruction requires no definer or bit operand, the operand column
is left blank for first line. It is a good idea to cross through any blank data col-
umn spaces (for all instruction words that do not require data) so that the data
column can be quickly scanned to see if any addresses have been left out.
When programming, addresses are automatically displayed and do not have
to be input unless for some reason a different location is desired for the
instruction. When converting to mnemonic code, it is best to start at Program
Memory address 00000 unless there is a specific reason for starting else-
where.
The ladder instructions are those instructions that correspond to the condi-
tions on the ladder diagram. Ladder instructions, either independently or in
combination with the logic block instructions described next, form the execu-
tion conditions upon which the execution of all other instructions are based.
Operands
HR
0001
LD
00001
AND
00002
OR
00100
LD NOT
00101
AND
AND LD
MOV(21)
000
DM
0000
CMP(20)
DM
0000
HR
AND
25505
10000
OUT
MOV(21)
DM
0000
DM
0500
00502
LD
00005
AND
10003
OUT
Section 4-3
00
183

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents