EasyManuals Logo

Mitsubishi MELSEC iQ-F FX5 series User Manual

Mitsubishi MELSEC iQ-F FX5 series
888 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #636 background imageLoading...
Page #636 background image
634
9 HIGH-SPEED COUNTER INSTRUCTION
9.1 High-speed Processing Instruction
9 HIGH-SPEED COUNTER INSTRUCTION
9.1 High-speed Processing Instruction
Setting 32-bit data comparison
DHSCS
This instruction compares the value counted by a high-speed counter with a specified value, and immediately sets a bit device
if the two values are equivalent to each other.
*1 When the interrupt pointer (I) is specified in operand (d) by structured text, use the DHSCS_I instruction.
Setting data
Descriptions, ranges, and data types
Applicable devices
*1 T, ST, C cannot be used.
*2 I16 to I23 can be used.
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 set to ON regardless of the scan time. In this instruction, the comparison processing is executed after the
count processing in the high-speed counter. For details, refer to User's manual [Application].
Use DHSCS 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
*1
ENO:=DHSCS(EN,s1,s2,d);
ENO:=DHSCS_I(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) DHSCS Bit device number to be set to ON when the compared two values
are equivalent to each other
Bit ANY_BOOL
DHSCS_I POINTER
Operand Bit Word Double word Indirect
specification
Constant Others
(I)
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) 
*1

*2
(s1) (s2) (d)
DHSCS
=
(s1) (s2) (d) (s1) (s2) (d)
Set
Comparison
value
Comparison
source
Output
destination
Command
input

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELSEC iQ-F FX5 series and is the answer not in the manual?

Mitsubishi MELSEC iQ-F FX5 series Specifications

General IconGeneral
BrandMitsubishi
ModelMELSEC iQ-F FX5 series
CategoryController
LanguageEnglish

Related product manuals