Instruction Set; Notation; Instruction Format; Data Areas, Definer Values, And Flags - Omron SYSMAC mini SP10 Operation Manual

Table of Contents

Advertisement

Instruction Set

3-7

Instruction Set

3-7-1

Notation

3-7-2

Instruction Format

3-7-3

Data Areas, Definer Values, and Flags

The remainder of this section explains SP-series PC instructions individually.
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 C Programming Instructions and Execu-
tion Times.
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. A table of instructions listed in order of function codes, is also
provided in Appendix C.
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 five 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. 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 3-2 Memory Areas for ad-
dressing conventions and the addresses of flags and control bits.
The Flags subsection lists flags that are affected by execution of an instruc-
tion. These flags include the following.
Section 3-7
71

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac mini sp16Sysmac mini sp20

Table of Contents