212
2)Operands
Specify HSC code (Eg. HSC0)
Specify the comparison value (Eg. K100, D0)
3)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. M includes M,HM,SM;S includes S,HS;
T includes T,HT;C includes C, HC.
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.
5-7-3 HSC reset [RST]
The reset mode of high-speed counter is software reset mode.
tudonghoatoancau.com