10.3 High-speed Counter Instruction
10-15
Sample program
For FP0H mode
R101
DT90300K0
F1 DMV
K5000K0
F167 HC1R
Y0
R100
( )
DF
R101
X5
( )
DF
R100
R100
R9110
R102
R101
Y0
< >
SET
R9110
( )
DF/
R102
R102
R100
T0
K5TMX 0
1
2
3
4
5
6
7
①
Positioning operation is running.
②
Positioning operation starts.
③
Resets the elapsed value of the high-speed counter CH0.
④
Target value match OFF instruction: Y0 turns off when the elapsed value of the high-speed counter
reaches 5000 pulses.
⑤
Sets the inverter operation signal Y0.
⑥
Positioning done pulse (0.5 sec)
⑦
Sets 0.5 sec with 0.1-second timer.
(Note): The allocations of control active flags and elapsed value areas for the FPΣ mode are different.
For details of the allocation of flags, refer to "12.2.4 When Using High-speed Counter Function".