FP
Σ
User's Manual
7.3 High-Speed Counter Function
111
7.3.4.1 Writing the High-Speed Counter Control Code
The special data register where the high-speed counter and pulse output control code are
stored can be accessed with the system variable sys_wHscOrPulseControlCode. (The system
variable sys_wHscOrPulseControlCode corresponds to special data register DT90052.)
The control code settings for each channel can be monitored using the system variables
sys_wHscChannelxControlCode or sys_wPulseChannelxControlCode (where x=channel
number). The settings of this system variable remain unchanged until another setting
operation is executed.
Operations performed by the high-speed counter control code:
•
Clearing high-speed counter instructions (bit 3)
•
Enabling/disabling the reset input (hardware reset) of the high-speed counter (bit 2)
•
Enabling/disabling counting operations (bit 1)
•
Resetting the elapsed value (software reset) of the high-speed counter to 0 (bit 0)
Clearing high-speed counter instructions (bit 3)
To cancel execution of an instruction, set bit 3 of the data register storing the high-speed
counter control code (sys_wHscOrPulseControlCode) to TRUE. The high-speed counter
control flag then changes to FALSE. To reenable execution of the high-speed counter
instruction, reset bit 3 to FALSE.
Enabling/disabling the reset input (hardware reset) of the high-speed counter (bit 2)
0
0
1
2
X0
1
X2
t
3
4
X0
High-speed counter input
1
Elapsed value
2
Bit 2 of high-speed counter control code (enable/disable reset input)
3
Elapsed value is reset to 0
4
Reset not possible
When bit 2 of the control code is set to TRUE, a hardware reset using the reset input specified
in the system registers is not possible. Counting will continue even if the reset input has
turned to TRUE. The hardware reset is disabled until bit 2 is reset to 0.
Содержание FPS Series
Страница 7: ......
Страница 17: ......
Страница 18: ...Chapter 1 Safety Measures...
Страница 21: ......
Страница 22: ...Chapter 2 Overview...
Страница 32: ...Chapter 3 CPU Types...
Страница 47: ...CPU Types FP User s Manual 30 LD Body...
Страница 51: ...CPU Types FP User s Manual 34 POU Header and LD Body...
Страница 55: ...CPU Types FP User s Manual 38 LD Body...
Страница 57: ......
Страница 58: ...Chapter 4 Expansion...
Страница 73: ......
Страница 74: ...Chapter 5 I O Allocation...
Страница 81: ......
Страница 82: ...Chapter 6 Installation and Wiring...
Страница 104: ...FP User s Manual 6 4 Input and Output Wiring 87 A FP 1 Output terminal 2 Load 3 Inductor COM 2 1 3...
Страница 115: ......
Страница 116: ...Chapter 7 High Speed Counter and Pulse Output...
Страница 169: ......
Страница 170: ...Chapter 8 Communication...
Страница 227: ...Communication FP User s Manual 210 LD Body ST Body...
Страница 233: ...Communication FP User s Manual 216 POU Header LD Body...
Страница 236: ...FP User s Manual 8 6 Program Controlled Communication 219 POU Header LD Body 1 2...
Страница 237: ...Communication FP User s Manual 220 2 2 ST Body...
Страница 266: ...Chapter 9 Security Functions...
Страница 273: ......
Страница 274: ...Chapter 10 Other Functions...
Страница 277: ......
Страница 278: ...Chapter 11 Troubleshooting...
Страница 289: ......
Страница 290: ...Chapter 12 Appendix...