beautypg.com

Function, 2 instructions, Options – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 278

background image

2 Instructions

2-242

CP1E CPU Unit Instructions Reference Manual(W483)

Function

Options

With the three input types and six symbols, there are 18 different possible combinations.

The input comparison instruction
compares the data specified in S1
and S2 as single-precision floating
point values (32-bit IEEE754 data)
and creates an ON execution condi-
tion when the comparison condition
is true.
When the data is stored in words, S1
and S2 specify the first of two words
containing the 32-bit data. It is also
possible to input the floating-point
data as an 8-digit hexadecimal con-
stant.

The input comparison instructions
are treated just like the LD, AND, and
OR instructions to control the execu-
tion of subsequent instructions.

LD: The instruction can be con-
nected directly to the left bus bar.

AND: The instruction cannot be con-
nected directly to the left bus bar.

OR: The instruction can be con-
nected directly to the left bus bar.

Symbol

(LD, AND, and OR cannot be

used in a ladder program)

Option (data format)

LD=, AND=, OR=, LD<>, AND<>,
OR<>, LD<, AND<, OR<, LD<=,
AND<=, OR<=, LD>, AND>, OR>,
LD>=, AND>=, OR>=

+

F: Single-precision floating-point
data

Code

Mnemonic

Name

Function

329

LD=F

LOAD FLOATING EQUAL

True if
S

1

+1, S

1

=

S

2

+1, S

2

AND=F

AND FLOATING EQUAL

OR=F

OR FLOATING EQUAL

330

LD<>F

LOAD FLOATING NOT EQUAL

True if
S

1

+1, S

1

S

2

+1, S

2

AND<>F

AND FLOATING NOT EQUAL

OR<>F

OR FLOATING NOT EQUAL

331

LD

LOAD FLOATING LESS THAN

True if
S

1

+1, S

1

<

S

2

+1, S

2

AND

AND FLOATING LESS THAN

OR

OR FLOATING LESS THAN

332

LD<=F

LOAD FLOATING LESS THAN OR EQUAL

True if
S

1

+1, S

1

S

2

+1, S

2

AND<=F

AND FLOATING LESS THAN OR EQUAL

OR<=F

OR FLOATING LESS THAN OR EQUAL

333

LD>F

LOAD FLOATING GREATER THAN

True if
S

1

+1, S

1

>

S

2

+1, S

2

AND>F

AND FLOATING GREATER THAN

OR>F

OR FLOATING GREATER THAN

S1

S2

S1

S2

S1

S2

LD connection

AND connection

OR connection

ON execution condition when
comparison result is true.

ON execution condition when
comparison result is true.

ON execution condition when
comparison result is true.

This manual is related to the following products: