
High
−
speed Counter/Pulse Output/ PWM Output
FP0
9
−
12
9.3
High
−
speed Counter Function
9.3.4
Instructions Used with High
−
speed Counter Function
High
−
speed counter control instruction (F0)
This instruction is used for counter operations such as software reset and count disable.
Specify this instruction together with the
F0 (MV)
instruction and the special data
register DT9052/DT90052.
Once this instruction is executed, the settings will remain until this instruction is
executed again.
Operations that can be performed with this instruction
Counter software reset.
Count enable/disable.
Hardware reset enable/disable.
Clear controls from high
−
speed counter instructions
F166
to
F170
.
Clear target value match interrupt.
Example:
Performing a software reset
X7
DF
F0 MV, H 1 , DT9052
⋅⋅⋅⋅⋅⋅⋅
1
⋅⋅⋅⋅⋅⋅⋅
2
F0 MV, H 0 , DT9052
In the above program, the reset is performed in step
1
and 0
is entered just after that in step
2
. The count is now ready for
operation. If it is only reset, counting will not be performed.
Elapsed value change and read instruction (F1)
This instruction changes or reads the elapsed value of the 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 changing the elapsed value).
X7
DF
F1 DMV, K3000, DT9044
Summary of Contents for FP0 Series
Page 14: ...Table of Contents FP0 xii ...
Page 16: ...Overview FP0 1 2 ...
Page 82: ...S LINK Control Unit FP0 4 2 ...
Page 95: ...Chapter 5 I O Allocation 5 1 I O Number 5 3 5 2 Control Unit 5 4 5 3 Expansion I O Unit 5 5 ...
Page 96: ...I O Allocation FP0 5 2 ...
Page 100: ...I O Allocation FP0 5 6 5 3 Expansion I O Unit ...
Page 102: ...Installation FP0 6 2 ...
Page 112: ...Installation FP0 6 12 6 5 Installation Using FP0 Flat Type Mounting Plate ...
Page 114: ...Wiring FP0 7 2 ...
Page 198: ...High speed Counter Pulse Output PWM Output FP0 9 34 9 5 PWM Output Function ...
Page 200: ...General use Serial Communications FP0 10 2 ...
Page 210: ...Self Diagnostic and Troubleshooting FP0 11 2 ...
Page 220: ...Specifications FP0 12 2 ...
Page 234: ...Dimensions FP0 13 2 ...
Page 243: ...Chapter 14 Appendix ...
Page 380: ...14 138 14 7 ASCII Codes ...