Notation; Instruction Format; Data Areas, Definer Values, And Flags - Omron CQM1H - PROGRAM Programming Manual

Programmable controllers; inner boards
Table of Contents

Advertisement

Notation

5-1

Notation

5-2

Instruction Format

5-3

Data Areas, Definer Values, and Flags

!Caution The IR and SR areas are considered as separate data areas. If an operand
In the remainder of this manual, all instructions will be referred to by their
mnemonics. For example, the OUTPUT instruction will be called OUT; the
AND LOAD instruction, AND LD. If you're not sure of the instruction a mne-
monic is used for, refer to Appendix A Programming Instructions.
If an instruction is assigned a function code, it will be given in parentheses
after the mnemonic. These function codes, which are 2-digit decimal num-
bers, are used to input most instructions into the CPU Unit. A table of instruc-
tions listed in order of function codes is also provided in Appendix A
Programming Instructions. Lists of instructions are also provided in 5-7
Instruction Tables.
An @ before a mnemonic indicates the differentiated version of that instruc-
tion. Differentiated instructions are explained in Section 5-4.
Most instructions have at least one or more operands associated with them.
Operands indicate or provide the data on which an instruction is to be per-
formed. These are sometimes input as the actual numeric values (i.e., as con-
stants), but are usually the addresses of data area words or bits that contain
the data to be used. A bit whose address is designated as an operand is
called an operand bit; a word whose address is designated as an operand is
called an operand word. In some instructions, the word address designated in
an instruction indicates the first of multiple words containing the desired data.
Each instruction requires one or more words in Program Memory. The first
word is the instruction word, which specifies the instruction and contains any
definers (described below) or operand bits required by the instruction. Other
operands required by the instruction are contained in following words, one
operand per word. Some instructions require up to four words.
A definer is an operand associated with an instruction and contained in the
same word as the instruction itself. These operands define the instruction
rather than telling what data it is to use. Examples of definers are TIM/CNT
numbers, which are used in timer and counter instructions to create timers
and counters, as well as jump numbers (which define which Jump instruction
is paired with which Jump End instruction). Bit operands are also contained in
the same word as the instruction itself, although these are not considered
definers.
In this section, each instruction description includes its ladder diagram sym-
bol, the data areas that can be used by its operands, and the values that can
be used as definers. Details for the data areas are also specified by the oper-
and names and the type of data required for each operand (i.e., word or bit
and, for words, hexadecimal or BCD).
Not all addresses in the specified data areas are necessarily allowed for an
operand, e.g., if an operand requires two words, the last word in a data area
cannot be designated as the first word of the operand because all words for a
single operand must be within the same data area. Other specific limitations
are given in a Limitations subsection. Refer to SECTION 3 Memory Areas for
addressing conventions and the addresses of flags and control bits.
has access to one area, it doesn't necessarily mean that the same operand
will have access to the other area. The border between the IR and SR areas
Section 5-1
211

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents