High−speed Counter/Pulse Output/ PWM Output FP0
9 − 24
9.4 Pulse Output Function
Example 1: Enable the near home input during home return operations and
begin deceleration.
F0 MV, H 0 , DT9052
F0 MV, H 4 , DT9052
X3
DF
.....
1
.....
2
In the above program, the near home input is enabled in step
1
and 0 is entered just after that in step
2
to perform the
preset operations.
Example 2: Performing a forced stop of the pulse output.
X7
DF F0 MV, H 8 , DT9052
F0 MV, H 0 , DT9052
Elapsed value write and read instruction (F1)
This instruction is used to read the pulse number counted by the built−in high−speed
counter.
Specify this instruction together with the F1 (DMV) instruction and the special data
register DT9044/DT90044.
The elapsed value is stored as 32−bit data in the combined area of special data
registers DT9044 and DT9045/DT90044 and DT90045.
Use this F1 (DMV) instruction to set the elapsed value.
Example 1: Set the initial value of K3000 in the high−speed counter (example
of writing the elapsed value).
X7
DF F1 DMV, K3000, DT9044
Example 2: Reads the elapsed value of the high−speed counter to DT100.
X7
DF F1 DMV, DT9044, DT100
Each time the ED instruction is executed, the elapsed value is automatically transferred
from the elapsed value area to the special data registers DT9044 and
DT9045/DT90044 and DT90045.