Delta AH500 Programming Manual page 219

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

API
Instruction code
0030~
D
FOR※
0035
Device
X
Y
M
S
1
S
2
Symbol:
Taking FOR= and DFOR= for example
Explanation:
1.
The instructions are used to compare the value in S
compared are floating-point numbers. Take the instruction FOR= 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
0030
FOR=
0031
FOR<>
0032
FOR>
0033
FOR>=
0034
FOR<
0035
FOR<=
Example:
When X1.0 is ON, or when the value in D1 is equal to that in D2, Y1.0 is ON.
6 - 1 4
Operand
S
, S
1
2
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
DFOR=
DFOR<>
DFOR>
DFOR>=
DFOR<
DFOR<=
Ch a pt er 6 Ap p l i ed I ns t r uc t i ons
Comparing the floating-point
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
OFF
=S
S
S
1
1
2
≠S
S
S
1
2
1
>S
S
S
1
2
1
≧S
S
S
1
2
1
<S
S
S
1
2
1
≦S
S
S
1
2
1
Function
K
16# "$"
DF
AH500
, the
2
≠S
2
=S
2
≦S
2
<S
2
≧S
2
>S
2

Advertisement

Table of Contents
loading

Table of Contents