EasyManua.ls Logo

Delta AH500 - Page 219

Delta AH500
749 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 6 Applied Instructions
6-14
API
Instruction code
Operand
Function
0030~
0035
D
FOR
S
1
, S
2
Comparing the floating-point
numbers
Device
X Y M S T C HC D L SM SR E PR K 16# “$” DF
S
1
S
2
Pulse instruction
32-bit instruction (5-7 steps) 64-bit instruction (5-7 steps)
-
AH500
AH500
Symbol:
Taking FOR= and DFOR= for example
S
1
Data source 1 Double word/Long word
S
2
Data source 2 Double word/Long word
Explanation:
1. The instructions are used to compare the value in S
1
with that in S
2
, and the values
compared are floating-point numbers. Take the instruction FOR= for example. When the
comparison result is that the value in S
1
is equal to that in S
2
, the condition of the instruction
is met. When the comparison result is that the value in S
1
is not equal to that in S
2
, the
condition of the instruction is not met.
API
number
32-bit
instruction
64-bit
instruction
Comparison operation result
ON
OFF
0030
FOR DFOR S
1
S
2
S
1
S
2
0031
FOR<> DFOR<>
S
1
S
2
S
1
S
2
0032
FOR DFOR S
1
S
2
S
1
S
2
0033
FOR>= DFOR>= S
1
S
2
S
1
S
2
0034
FOR DFOR S
1
S
2
S
1
S
2
0035
FOR<= DFOR<= S
1
S
2
S
1
S
2
Example:
When X1.0 is ON, or when the value in D1 is equal to that in D2, Y1.0 is ON.

Table of Contents

Other manuals for Delta AH500

Related product manuals