Delta AH500 Programming Manual page 217

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0018~
D
FLD※
0023
Device
X
Y
M
S
1
S
2
Symbol:
Taking FLD= and DFLD= for example
Explanation:
1.
The instructions are used to compare the value in S
compared are floating-point numbers. Take the instruction FLD= for example. When the
comparison result is that the value in S
is met. When the comparison result is that the value in S
condition of the instruction is not met.
API
32-bit
number
instruction
0018
FLD=
0019
FLD<>
0020
FLD>
0021
FLD>=
0022
FLD<
0023
FLD<=
Example:
Take the instruction FLD= for example. When the value in D0 is equal to that in D2, Y0.0 is ON.
Additional remark:
1.
If the value in S
or S
1
floating-point numbers, the contact is OFF, SM is ON, and the error code in SR0 is 16#2013.
6 - 1 2
Operand
S
, S
1
S
T
C
HC
D
Pulse instruction 32-bit instruction (5-7 steps) 64-bit instruction (5-7 steps)
: Data source 1
S
1
: Data source 2
S
2
is equal to that in S
1
64-bit
instruction
DFLD=
DFLD<>
DFLD>
DFLD>=
DFLD<
DFLD<=
exceeds the range of values which can be represented by the
2
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Comparing the floating-point
2
numbers
L
SM SR
E
PR
AH500
Double word/Long word
Double word/Long word
with that in S
, and the values
1
2
, the condition of the instruction
2
is not equal to that in S
1
Comparison operation result
ON
=S
S
1
2
≠S
S
S
1
2
>S
S
1
2
≧S
S
S
1
2
<S
S
1
2
≦S
S
S
1
2
Function
K
16# "$"
DF
AH500
, the
2
OFF
≠S
S
1
2
=S
1
2
≦S
S
1
2
<S
1
2
≧S
S
1
2
>S
1
2

Advertisement

Table of Contents
loading

Table of Contents