Ladder Instructions - Omron SYSMAC C2000H Operation Manual

Hide thumbs Also See for SYSMAC C2000H:
Table of Contents

Advertisement

Basic Ladder Diagrams
4-3-3

Ladder Instructions

LOAD and LOAD NOT
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
LD
00001
AND
00002
OR
00003
LD NOT
00004
AND
00005
AND LD
00006
MOV(21)
00007
CMP(20)
00008
LD
00009
OUT
00010
MOV(21)
00011
DIFU(13)
00012
AND
00013
OUT
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 col-
umn is left blank for first line. It is a good idea to cross through any blank
data column 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 in-
struction. 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.
The first condition that starts any logic block within a ladder diagram corre-
sponds to a LOAD or LOAD NOT instruction. Each of these instruction re-
quires one line of mnemonic code. "Instruction" is used as a dummy instruc-
Operands
HR
0001
00001
00002
00100
00101
00102
000
DM
0000
DM
0000
HR
00
25505
00501
DM
0000
DM
0500
00502
00005
00503
Section 4-3
45

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac c1000h

Table of Contents