Notation; Instruction Format; Data Areas, Definer Values, And Flags - Omron C200H Operation Manual

Hide thumbs Also See for C200H:
Table of Contents

Advertisement

Data Areas, Definer Values, and Flags

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 mnemonic is
used for, refer to Appendix B 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 and are described
briefly below and in more detail in 4-6 Inputting, Modifying, and Checking the
Program. A table of instructions listed in order of function codes, is also pro-
vided in Appendix B.
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
constants), but are usually the addresses of data area words or bits that con-
tain 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 TC num-
bers, 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
Section 5-3
97

Advertisement

Table of Contents
loading

Table of Contents