Delta AH500 Programming Manual page 230

Hide thumbs Also See for AH500:
Table of Contents

Advertisement

AH 5 00 Pr ogr am m ing Ma n ua l
API
Instruction code
0055
D
ZCP
Device
X
Y
M
S
1
S
2
S
D
Symbol:
Explanation:
1.
The instruction is used to compare the value in S with that in S
with that in S
. The values compared are singed decimal numbers, and the comparison
2
results are stored in D.
2.
The value in S
must be less than that in S
1
be taken as the maximum/minimum value during the execution of the instruction ZCP.
3.
The operand D occupies three consecutive devices. The comparison results are stored in D,
D+1, and D+2. If the comparison value in S
ON. If the comparison value in S is within the range between the value in S
S
, D+1 will ON. If the comparison value in S is greater than the value in S
2
4.
Only the instructions DZCP and DZCPP can use the 32-bit counter.
Example:
1.
If the operand D is M0, the comparison results will be stored in M0, M1 and M2, as shown
below.
2.
When X0.0 is ON, the instruction ZCP is executed. M0, M1, or M2 is ON. When X0.0 is OFF,
the instruction ZCP is not executed. The state of M0, the state of M1, and the state of M2
remain the same as those before X0.0's being OFF.
3.
If users want to clear the comparison result, they can use the instruction RST or ZRST.
Operand
P
S
, S
, S, D
1
2
S
T
C
HC
D
Pulse instruction 16-bit instruction (9 steps) 32-bit instruction (9 steps)
AH500
Minimum value of the zone
S
1
comparison
Maximum value of the zone
S
2
comparison
S : Comparison value
D : Comparison result
. If the value in S
2
1
Zone comparison
L
SM SR
E
PR
AH500
, and compare the value in S
1
is larger than that in S
1
is less than the comparison value in S, D will be
Function
K
16# "$"
DF
AH500
Word/Double word
Word/Double word
Word/Double word
Bit
, S
will
2
1
and the value in
1
, D+2 will be ON.
2
6 - 2 5

Advertisement

Table of Contents
loading

Table of Contents