Omron CS1G/H-CPUxxH Instructions Manual page 269

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Comparison Instructions
Description
248
The input comparison instruction compares S
values and creates an ON execution condition when the comparison condition
is true. Unlike instructions such as CMP(020) and CMPL(060), the result of an
input comparison instruction is reflected directly as an execution condition, so
it isn't necessary to access the result of the comparison through an Arithmetic
Flag and the program is simpler and faster.
Inputting the Instructions
The input comparison instructions are treated just like the LD, AND, and OR
instructions to control the execution of subsequent instructions.
Input type
LD
The instruction can be connected directly to the left bus bar.
AND
The instruction cannot be connected directly to the left bus bar.
OR
The instruction can be connected directly to the left bus bar.
LD connection
<
AND connection
OR connection
<
Options
The input comparison instructions can compare signed or unsigned data and
they can compare one-word or double values. If no options are specified, the
comparison will be for one-word unsigned data. With the three input types and
two options, there are 72 different input comparison instructions.
Symbol
=
(Equal)
< >
(Not equal)
<
(Less than)
<=
(Less than or equal)
>
(Greater than)
>=
(Greater than or equal)
Unsigned input comparison instructions (i.e., instructions without the S option)
can handle unsigned binary or BCD data. Signed input comparison instruc-
tions (i.e., instructions with the S option) handle signed binary data.
and S
1
Operation
ON execution condition when
comparison result is true.
ON execution condition when
comparison result is true.
<
ON execution condition when
comparison result is true.
Option (data format)
None: Unsigned data
S: Signed data
Section 3-7
as signed or unsigned
2
Option (data length)
None: One-word data
L: Double-length data

Advertisement

Table of Contents
loading

Table of Contents