Download Print this page

Comparison Of 32-Bit Data Band - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

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). The high-speed pulse input/output module is not supported.
Ladder diagram
(s1)
FBD/LD
EN
ENO
s1
d
s2
s3
Setting data
■Descriptions, ranges, and data types
Operand
Description
(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)
(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)
(s3)
Channel number of a high-speed counter
(d)
Head bit device number to which the comparison result is output
based on the comparison value 1 and the comparison value 2
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s1)
(s2)
(s3)
(d)
*1 Enable the FX3 compatible function, and specify a device between LC35 and 55 that is designated as an FX3 compatible high-speed
counter. For FX3 compatible function, refer to MELSEC iQ-F FX5 User's Manual (Application).
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 MELSEC iQ-F FX5 User's Manual (Application).
Command
input
DHSZ
14 HIGH-SPEED COUNTER INSTRUCTION
808
14.1 High-speed Processing Instruction
(s2)
(s3)
(d)
Word
T, ST, C, D, W,
SD, SW, R
(s1)
(s2)
Structured text
ENO:=DHSZ(EN,s1,s2,s3,d);
Range
-2147483648 to
+2147483647
-2147483648 to
+2147483647
K1 to 8
Double word Indirect
U\G
Z
LC
*1
(s3)
(d)
(s1)
(s1)
Data type
32-bit signed binary
32-bit signed binary
32-bit signed binary
Bit
Bit
Bit
Constant
specification
LZ
K, H
(s3)
(d)
(s3)
(s2)
(d)
+1
(s3)
(s2)
(d)
+2
Data type (label)
ANY32
ANY32
ANY32
ANYBIT_ARRAY
(Number of elements: 3)
BOOL
BOOL
Others
E
$

Hide quick links:

Advertisement

loading