8-28
8.4.6 Elapsed Value Read and Write (F1) Instruction
Elapsed value read and write instruction (F1)
- This instruction is used to read and write the pulse number counted by the pulse output control.
- Specify this F1 (DMV) instruction in combination with the pulse output elapsed area after the special
data register DT90400.
- When executing the F1 (DMV) instruction with DT90400, the elapsed value is stored as 32-bit data in
the combined area of the special data registers DT90400 and DT90401.
- The elapsed values can be read or written with this F1 (DMV) instruction only.
Example 1: Writing the elapsed value
Set the initial value K3000 in the pulse output
CH0.
Example 2: Reading the elapsed value
Read the elapsed value of the pulse output
CH0 to DT100 and DT101.
Elapsed value area
Pulse output elapsed value area
CH1 DT90410 to DT90411
CH3 DT90430 to DT90431
Note:
The elapsed value area varies during scanning. Replace it with an arbitrary data register at the beginning
of the program as necessary in cases such as using it several times in the program.