
636
9 HIGH-SPEED COUNTER INSTRUCTION
9.1 High-speed Processing Instruction
Reset 32-bit data comparison
DHSCR
This instruction compares the value counted by a high-speed counter with a specified value, and immediately resets a bit
device if the two values are equivalent to each other, or resets the high speed counter.
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
Processing details
• When the current value of a high-speed counter of the channel specified in (s2) becomes the comparison value (s1) (for
example, when the current value changes from "199" to "200" or from "201" to "200" if the comparison value is K200), the
bit device (d) is reset to OFF regardless of the scan time. For details, refer to
User's manual [Application].
Use DHSCR if the output should be given when the counting result becomes equivalent to the comparison
value regardless of the scan time of the CPU module.
When the number of instructions that can be simultaneously used is exceeded, use a general-purpose
comparison instruction.
Ladder diagram
Structured text
ENO:=DHSCR(EN,s1,s2,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 the data to be compared
-2147483648 to
+2147483647
32-bit signed binary
ANY32
(s2)
Channel number of a high-speed counter
K1 to 8
32-bit signed binary
ANY32
(d)
Bit device number to be reset (set to OFF) when both values
become equivalent to each other, or channel number of self-reset
high speed counter
Bit/32-bit signed
binary
ANY_ELEMENTARY
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)
(d)
(s1)
(s2)
(d)
DHSCR
=
(s1)
(s2)
(d)
(s1)
(s2)
(d)
Reset
Comparison
value
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: ......