Delta AS Series Programming Manual page 310

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0057
FZCP
Device
X
Y
M
S
1
S
2
S
D
Data
type
S
1
S
2
S
D
Symbol
Explanation
1.
This instruction compares the floating-point numbers in S and S
that in S
, and then stores the results in D.
2
2.
The value in S
must be less than that in S
1
value during the execution of the FZCP instruction.
3.
The operand D occupies three consecutive devices. The comparison results are stored in D, D+1, and D+2. If the
value in S
is greater than the value in S, D is ON. If the value in S is between the value in S
1
D+1 is ON. If the compared value in S
Example
1.
If the operand D is M0, the comparison results are stored in M0, M1 and M2.
2.
When X0.0 is ON, the FZCP instruction is executed. M0, M1, or M2 is ON. When X0.0 is OFF, the FZCP instruction
is not executed, and the state of M0, the state of M1, and the state of M2 remain unchanged.
3.
If you want to clear the comparison result, use the RST or ZRST instruction.
Operand
,S
,S,D
P
S
1
2
S
T
C
HC
Pulse Instruction
AS
Minimum value of the zone
S
1
comparison
Maximum value of the zone
S
2
comparison
: Comparison value
S
: Comparison result
D
. If the value in S
2
is less than the value in S, D+2 is ON.
2
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
Floating-point zone comparison
D
FR
SM
SR
16-bit instruction
, and compare the floating-point numbers in S with
1
is larger than that in S
1
Function
E
K
16#
"$"
F
32-bit instruction
AS
, S
is the maximum/minimum
2
1
and the value in S
1
2
6 - 3 1
6_
,

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents