Delta AS Series Programming Manual page 296

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
FOR※
0030-0035
Device
X
Y
M
S
1
S
2
Data
type
S
1
S
2
Symbol
Taking FOR= and DFOR= for
example
Explanation
1.
These instructions compare the 32-bit single precision floating point numbers.
2.
Compare values in S
1
in S
is equal to that in S
1
value in S
is not equal to that in S
1
API number
Operand
,S
S
1
S
T
C
HC
Pulse Instruction
: Data source1
S
1
: Data source2
S
2
and S
Take the FOR= instruction for example. When the comparison result is that the value
2.
, the continuity condition of the instruction is met. When the comparison result is that the
2
, the discontinuity condition of the instruction is met.
2
32-bit
instruction
FOR=
0030
0031
FOR<>
FOR>
0032
0033
FOR>=
FOR<
0034
0035
FOR<=
C h a p t e r 6 Ap p l i e d I n s t r u c t i o n s
Comparing floating-point numbers
2
D
FR
SM
SR
16-bit instruction
Continuity
Discontinuity
condition
condition
=S
≠S
S
S
1
2
1
2
≠S
=S
S
S
1
2
1
>S
≦S
S
S
1
1
2
<S
≧S
S
S
1
2
1
<S
≧S
S
S
1
1
2
>S
≦S
S
S
1
2
1
Function
OR※
E
K
16#
"$"
32-bit instruction
AS
2
2
2
2
2
6 - 1 7
F
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents