188
In the counting process, if the setting value in D20 changes and the current counting value
is less than the new setting value, then the new setting value is compared.
5-7-2
.
AB phase HSC [CNT_AB]
Instruction Summary
AB phase HSC instruction.
AB phase HSC [CNT_AB]
16 bits Instruction
-
32 bits Instruction
CNT_AB
Execution
condition
Normally ON/OFF
coil
Suitable models
XD, XL(exclude
XD1, XL1)
Hardware
requirement
Software
requirement
-
Operands
Operands Function
Type
S
Specify HSC code (Eg. HSC0)
32 bits, BIN
D
Specify the compare value (Eg. K100, D0)
32 bits, BIN
Suitable Soft Components
*Notes: D includes D, HD; TD includes TD, HTD; CD includes CD, HCD, HSCD, HSD;
DM includes DM, DHM; DS includes DS, DHS.
CNT_AB
HSC0
D20
S1.
S2.
M0
When M0 is on, HSC0 counts X0, X1 signal in AB phase mode, compares the high-speed
counting value with the value set in register D20. When the high-speed counting value is
equal to the set value, HSC0 coil is set on immediately, and the counting value is
accumulated in HSCD0 (double words).
If the driving condition M0 is not disconnected, HSC0 will remain on state and continue
counting, and the counting value in HSCD0 will continue to accumulate.
If the driving condition M0 is disconnected, HSC0 will remain on state and the counting
value in HSCD0 will remain unchanged.
During the counting process, if M0 is disconnected and connected again, the values in
HSCD0 will continue to accumulate after the last counting value.
In the counting process, if the setting value in D20 changes and the current counting value
is less than the new setting value, then the new setting value is compared.
Operand
System
Constant Module
D
*
FD
TD
*
CD
*
DX
DY
DM
DS
*
K /H
ID
QD
S1
Only can be HSC
S2
●
●
word
FUNCTIONS AND ACTIONS