FP
Σ
6.3 High-speed Counter Function
6 - 13
6.3.5
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 special data register 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
- Counting operation enable/disable
- Hardware reset enable/disable
- Clear controls from high-speed counter instructions
F166
to
F176
- Clear target value match interrupt
Example:
Performing a software reset
X7
F0 MV, H 1 , DT90052
⋅⋅⋅⋅⋅⋅⋅
1
⋅⋅⋅⋅⋅⋅⋅
2
F0 MV, H 0 , DT90052
DF
Figure 71: FP
Σ
Program of high-speed counter control instruction “F0”
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 special data register DT90044.
The elapsed value is stored as 32-bit data in the combined area of special data
registers DT90044 and DT90045.
Use this
F1 (DMV)
instruction to set the elapsed value.
Example 1:
Changing the elapsed value.
X7
DF
F1 DMV, K3000, DT90044
Set the initial value of K3000
in the high-speed counter
Figure 72: FP
Σ
Program (1) of elapsed value change and read instruction “F1”
Summary of Contents for FP Series
Page 15: ...FP Functions and Restrictions of the Unit 1 2...
Page 25: ...FP Specifications and Functions of Control Unit 2 2...
Page 37: ...FP Expansion 3 2...
Page 44: ...Chapter 4 I O Allocation 4 1 I O Allocation 4 3...
Page 45: ...FP I O Allocation 4 2...
Page 51: ...FP Installation and Wiring 5 2...
Page 77: ...FP High speed Counter and Pulse Output Functions 6 2...
Page 133: ...FP High speed Counter and Pulse Output Functions 6 58...
Page 135: ...FP Communication Cassette 7 2...
Page 147: ...FP Communication Function 1 Computer Link 8 2...
Page 169: ...FP Communication Function 2 General purpose Serial Communication 9 2...
Page 205: ...FP Communication Function 2 General purpose Serial Communication 9 38...
Page 207: ...FP Communication Function 3 PLC Link Function 10 2...
Page 232: ...Chapter 11 Other Functions 11 1 Analog Potentiometer 11 3 11 2 Clock Calendar Function 11 4...
Page 233: ...FP Other Functions 11 2...
Page 239: ...FP Self Diagnostic and Troubleshooting 12 2...
Page 249: ...FP Self Diagnostic and Troubleshooting 12 12...
Page 251: ...FP Specifications 13 2...
Page 323: ...Index FP I 4...
Page 325: ...FP Record of changes R 2...