
Motion Control Theory
197
PCI-8254 / PCI-8258
4.11.2.3
Watch Dog
The watchdog protection mechanism is a timer inside the
controller. Timeout of the timer will enable predefined response
actions including Servo off, turning off digital output and turning off
PWM output. After the watchdog protection mechanism is
enabled, the user program must be in responsible status. Before
timeout of the timer, the watchdog mechanism should be reset
continuously to restart timing of the timer. As long as the user
program remain in responsible status relevant events shall not be
triggered. In another words, the watchdog protection mechanism
is used to detect stagnation (failure) status of the upper control
program. If stagnation situation is encountered, the controller
triggers a protection mechanism to close signal output.
You may use interrupt function in Windows environment as
described below:
1. Set up trigger event of timer timeout
2. Enable watchdog protection mechanism
3. Reset timer within cycle time
See below for relevant APS APIs:
APS_wdt_set_action_event ();
APS_wdt_set_action_event ();
APS_wdt_start ();
APS_wdt_get_timeout_period ();
APS_wdt_reset_counter ();
Detailed operation methods are described below:
1. Set up trigger event of timer timeout:
Use
APS_wdt_set_action_event ()
function to set up
trigger event.
Use
APS_wdt_get_action_event ()
function to get trigger
event.
2. Enable watchdog protection mechanism:
Use
APS_wdt_start ()
to set up a timeout period and
enable the watchdog function then the internal timer starts
clicking. Set timeout period to "0" to disable watchdog
function.
Use
APS_wdt_get_timeout_period ()
to read in the
timeout settings.
Содержание PCI-8254
Страница 2: ...ii Revision History Revision Date Description 2 00 2014 08 13 First release ...
Страница 8: ...viii Table of Contents Important Safety Instructions 209 Getting Service 211 ...
Страница 12: ...xii List of Figures ...
Страница 14: ...xiv List of Tables ...
Страница 24: ...10 Introduction ...
Страница 54: ...40 Getting Start with The Installation ...
Страница 78: ...64 Signal Connection ...
Страница 111: ...Motion Control Theory 97 PCI 8254 PCI 8258 MCP2 Bode plot page ...
Страница 165: ...Motion Control Theory 151 PCI 8254 PCI 8258 Example Figure 4 55 Continuous interpolation examples ...
Страница 222: ...208 Motion Control Theory ...