
638
9 HIGH-SPEED COUNTER INSTRUCTION
9.1 High-speed Processing Instruction
Comparison of 32-bit data band
DHSZ
This instruction compares the current value of a high-speed counter with two values (one zone), and outputs the comparison
result (refresh).
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*1
T, ST, C cannot be used.
Processing details
• The current value of a high-speed counter specified in (s3) is compared with two comparison points (comparison value 1
and comparison value 2). Based on the zone comparison result, "smaller than the lower comparison value", "inside the
comparison zone" or "larger than the upper comparison value", one among (d), (d)+1 and (d)+2 is set to ON regardless of
the scan time. For details, refer to
User's manual [Application].
• Make sure that the comparison value 1 and the comparison value 2 have the following relationship: [Comparison value 1]
[Comparison value 2]. When the setting differs from the above, an operation error occurs and the DHSZ instruction will not
perform any operation.
Ladder diagram
Structured text
ENO:=DHSZ(EN,s1,s2,s3,d);
Operand
Description
Range
Data type
Data type (label)
(s1)
Data to be compared with the current value of a high-speed
counter or word device number storing data to be compared
(comparison value 1)
-2147483648 to
+2147483647
32-bit signed binary
ANY32
(s2)
Data to be compared with the current value of a high-speed
counter or word device number storing data to be compared
(comparison value 2)
-2147483648 to
+2147483647
32-bit signed binary
ANY32
(s3)
Channel number of a high-speed counter or the device number of
the current value of a high-speed counter
K1 to 8
32-bit signed binary
ANY32
(d)
Head bit device number to which the comparison result is output
based on the comparison value 1 and the comparison value 2
Bit
ANY_BOOL
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s1)
(s2)
(s3)
(d)
(s1)
(s2)
(s3)
(d)
DHSZ
+1
+2
(s1)
(s2)
(d)
(s3)
(s1)
(s1)
(s3)
(s3)
(s3)
(s2)
(s2)
(d)
(d)
(d)
Comparison
value 1
Set
Comparison
value 2
Comparison
source
Output
destination
Command
input
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......