
Chapter 5. Application instructions
5-137
5.22.2 HSC
HSC
(High speed
counter)
FUN(215) HSC
Applicable
CPU
K10S1 / K10S
K30S / K60S
Available Device
Flag
Instructions
M
P
K
L
F
T
C
S
D
#D Integer
Steps
Error
(F110)
Zero
(F111)
Carry
(F112)
PV
O O O O O O O
O O
O
HSC
SV
O O O O O O O
O O
O
7/9/11
1) Functions
-
HSC instruction can not be used with HSCNT instruction in a program. Only one of them can be
used in a sequence program.
-
32-bits, up / down high speed counter. ( HSCNT : 16-bits, up-counter )
-
If the current value same or greater than SV, the HSC output bit (F070) turns on.
-
The current value can not be changed by user.
-
The current value is stored at F14 (lower word) and F15 (higher word).
-
When the HSC instruction is used, the high speed counter parameter setting is ignored.
-
Explanation of operands
a) EN : High speed counter enable contact
b) U/D : operates as up counter when U/D is 0, and down counter when U/D is 1.
c) PR : If the PR input turns on, the current value is c hanged as preset value (PV).
d) PV : Preset value. If the PV is specified as device [ A ], the PV is contents of [ A+1, A ].
e) SV : Setting value. If the SV is specified as device [ A ], the SV is contents of [ A+1, A ].
HSC
EN
U/D
PR
PV < >
SV < >
Operand setting
Preset value
PV
Setting value
SV