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
Содержание FP0 Series
Страница 14: ...Table of Contents FP0 xii ...
Страница 16: ...Overview FP0 1 2 ...
Страница 82: ...S LINK Control Unit FP0 4 2 ...
Страница 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 ...
Страница 96: ...I O Allocation FP0 5 2 ...
Страница 100: ...I O Allocation FP0 5 6 5 3 Expansion I O Unit ...
Страница 102: ...Installation FP0 6 2 ...
Страница 112: ...Installation FP0 6 12 6 5 Installation Using FP0 Flat Type Mounting Plate ...
Страница 114: ...Wiring FP0 7 2 ...
Страница 198: ...High speed Counter Pulse Output PWM Output FP0 9 34 9 5 PWM Output Function ...
Страница 200: ...General use Serial Communications FP0 10 2 ...
Страница 210: ...Self Diagnostic and Troubleshooting FP0 11 2 ...
Страница 220: ...Specifications FP0 12 2 ...
Страница 234: ...Dimensions FP0 13 2 ...
Страница 241: ...Dimensions FP0 13 9 13 6 Detailed Specifications of Cables 13 6 Detailed Specifications of Cables ...
Страница 243: ...Chapter 14 Appendix ...
Страница 380: ...14 138 14 7 ASCII Codes ...