Omron C40K 用户手册

下载
页码 222
!
69
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.
5-4
Data Areas, Definer Values, and Flags
Each instruction is introduced with the ladder diagram symbol(s), the data
areas that can be used with any operand(s), and the values that can be used
for definers. With the data areas is also specified the operand names and the
type of data required for each operand (i.e., word or bit and, for words, hexa-
decimal or BCD).
Not all addresses in a specified data area are necessarily allowed in an oper-
and, e.g., if an operand requires two words, the last word in a data area can-
not be designated because all words for a single operand must be in the
same data area. Unless a limit is specified, any bit/word in the area can be
used. Specific limitations for operands and definers are specified in a 
Limita-
tions subsection. Refer to Section 3 Memory Areas for addressing conven-
tions and the addresses of flags and control bits.
Caution
The IR and SR areas are considered as separate areas and both are not neces-
sarily allowed for an operand just because one of them is. The border between
the IR and SR area can, however, be crossed for a single operand, i.e., the last
bit in the IR area may be specified for an operand that requires more than one
word as long as the SR area is also allowed for that operand.
The 
Flags subsection lists flags that are affected by execution of the instruc-
tion. These flags include the following SR area flags.
Abbreviation
Name
Bit
ER
Instruction Execution Error flag
1903
CY
Carry flag
1904
EQ
Equals flag
1906
GR
Greater Than flag
1905
LE
Less Than flag
1907
ER is the flag most often used for monitoring an instruction’s execution.
When ER goes ON, it indicates that an error has occurred in attempting to
execute the current instruction. The 
Flags subsection of each instruction lists
possible reasons for ER being ON. ER will turn ON for any instruction if oper-
ands are not input within established parameters. Instructions are not exe-
cuted when ER is ON. A table of instructions and the flags they affect is pro-
vided in 
Appendix D Error and Arithmetic Flag Operation.
Although data area addresses are most often given as operands, many oper-
ands can be input and all definers are input as constants. The range in which
a number can be specified for a given definer or operand depends on the
particular instruction that uses it. Constants must also be input in the form
required by the instruction, i.e., in BCD or in hexadecimal.
5-4-1
Coding Other Instructions
When combining other right-hand instructions with ladder diagram instruc-
tions, they would appear in the same place as the OUTs used in the example
in the preceding section. Many of these instructions, however, require more
than one word to code.
Designating Constants
Data Areas, Definer Values, and Flags
Section 5-4