■
Sample program
(1) Positioning operation is running
(2) Positioning operation starts
(3) Resets the elapsed value of the high-speed counter CH0.
(4)
Target value match OFF instruction: Y0 turns OFF when the elapsed value of the high-speed counter
reaches 5000 pulses.
(5) Sets Y0 (inverter operation signal).
(6) Sets Y1 (inverter high-speed signal).
(7)
32-bit data comparison instruction: R900C turns ON when the elapsed value of the high-speed counter
CH0 is larger than 4500 pulses.
(8) Arrival at deceleration point
(9) Resets Y1 (inverter high-speed signal).
(10) Positioning done pulse (0.5 sec)
(11) 0.1-second timer: Sets K5. It is used as 0.5-second timer.
10.3 High-speed Counter Instruction
WUME-FPXHPOSG-01 10-19