High-Speed Counter and Pulse Output
FP
Σ
User's Manual
126
7.4.3.1 Writing the Pulse Output 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:
•
Setting/resetting near home input
•
Continuing/stopping
pulse output (forced stop)
•
Enabling/disabling counting operations
•
Resetting the elapsed value (software reset) of the high-speed counter
Setting/resetting near home input
The near home bit is retained. Set this bit to FALSE right after setting it to TRUE to be able to
set the near home input a second time during a home return.
Continuing/stopping pulse output (forced stop)
By setting bit 3 of the data register storing the pulse output control code
(sys_wHscOrPulseControlCode) to TRUE pulse output is stopped. The possibility of a forced
stop should be provided for in every program using pulse output instructions. Reset bit 3 to
FALSE to continue pulse output.
Enabling/disabling counting operations
0
1
0
0
2
Y*
1
t
Y* Pulse
output
1
Elapsed value
2
Bit 1 of pulse output control code (count)
When bit 1 of the control code is set to TRUE, counting is prohibited and the elapsed value
keeps its current value. Counting is continued when bit 1 is reset to FALSE.
Summary of Contents for FPS Series
Page 7: ......
Page 17: ......
Page 18: ...Chapter 1 Safety Measures...
Page 21: ......
Page 22: ...Chapter 2 Overview...
Page 32: ...Chapter 3 CPU Types...
Page 47: ...CPU Types FP User s Manual 30 LD Body...
Page 51: ...CPU Types FP User s Manual 34 POU Header and LD Body...
Page 55: ...CPU Types FP User s Manual 38 LD Body...
Page 57: ......
Page 58: ...Chapter 4 Expansion...
Page 73: ......
Page 74: ...Chapter 5 I O Allocation...
Page 81: ......
Page 82: ...Chapter 6 Installation and Wiring...
Page 115: ......
Page 116: ...Chapter 7 High Speed Counter and Pulse Output...
Page 169: ......
Page 170: ...Chapter 8 Communication...
Page 227: ...Communication FP User s Manual 210 LD Body ST Body...
Page 233: ...Communication FP User s Manual 216 POU Header LD Body...
Page 236: ...FP User s Manual 8 6 Program Controlled Communication 219 POU Header LD Body 1 2...
Page 237: ...Communication FP User s Manual 220 2 2 ST Body...
Page 266: ...Chapter 9 Security Functions...
Page 273: ......
Page 274: ...Chapter 10 Other Functions...
Page 277: ......
Page 278: ...Chapter 11 Troubleshooting...
Page 289: ......
Page 290: ...Chapter 12 Appendix...