7 Application Instructions API 50-99
D V P - P L C A P P L I C AT I O N M A N U A L
7-17
API Mnemonic
Operands
Function
55
D HSZ
High Speed Zone Compare
Controllers
ES/EX/SS SA/SX/SC EH/SV
Bit Devices
Word Devices
Program Steps
Type
OP
X Y M S K H
KnX KnY KnM KnS T
C D
E
F
S
1
*
*
*
*
*
*
*
*
*
*
S
2
*
*
*
*
*
*
*
*
*
*
S
*
D
*
*
*
DHSZ: 17 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S
1
: Lower bound of the comparison zone
S
2
: Upper bound of the comparison zone
S
: No. of high speed
counter
D
: Comparison result
Explanations:
1.
S
1
has to be euqal to or smaller than
S
2
. (
S
1
≤
S
2
)
2. When
S
1
>
S
2
, the instruction will perform a comparison by using
S
1
as the upper bound and
S
2
as the lower
bound.
3.
S
has to designate high speed counters C235 ~ C255, See remarks of API 53 DHSCS for more details.
4.
D
will occupy 3 consecutive devices.
5.
Flags: M1150 ~ M1333; see remarks of API 53 DHSCS for more details. M1150, M1151 DHSZ executing
multiple points comparison mode; see Program Example 3 for more details; SA/SX/SC series MPU does not
support. M1152, M1153 DHSZ as frequency control mode; see Program Example 4 for more details; SA/SX/SC
series MPU does not support.
6.
The output will not be affected by the scan time.
7.
The zone comparisons and outputs are all processed by inserting interruptions.
Program Example 1:
1.
Designate device Y0 and Y0 ~ Y2 will be automatically occupied.
2.
When DHSZ instruction is being executed and the counting of the high speed counter C246 reaches upper and
lower bounds, one of Y0 ~ Y2 will be On
M1000
DCNT
C246
K20000
DHSZ
K1500
K2000
C246
Y0
Y0
Y1
Y2
When the present value in C246 < K1,500, Y0 = On
When K1,500 < present value in C246 < K2,000, Y1 = On
When the present value in C246 > K2,000, Y2 = On
Summary of Contents for DVP-PLC
Page 1: ...PLC PLC...
Page 28: ...1 Basic Principles of PLC Ladder Diagram DVP PLC Application Manual 1 24 MEMO...
Page 192: ...4 Step Ladder Instructions DVP PLC Application Manual 4 22 MEMO...
Page 472: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 70 MEMO...
Page 574: ...9 Application Instructions API 150 199 DVP PLC Application Manual 9 102 MEMO...