Understanding and resetting of security protection mechanisms
5.1 Recovery process after triggering hardware protection
When EMG, ALM, PEL/MEL are triggered, the axis will immediately stop (immediate stop or deceleration stop is set by PRA_CL_MODE). Recovery steps:
Eliminate external faults (such as releasing the emergency stop button, clearing the servo alarm).
Call APS_clear_stop (axis_id) to clear the stopped state.
Re execute zeroing or absolute positioning (as coordinates may be lost at the moment of stopping).
If you need to turn off SVON before turning it back on, you can use APS_det_servo_on.
5.2 Mistriggering of Software Watchdog
Watchdogs are used to monitor whether the upper computer program is in a "dead loop". Once the timeout occurs, the card will automatically execute preset actions (Servo off, DO off, PWM off). If there are frequent breakpoints or single step execution during the debugging process, the watchdog is prone to timeout, resulting in unexpected shutdown. Temporary solution: Increase the watchdog timeout period (e.g. 1000ms) or temporarily disable it (APSw_dt_start (0)), and wait for the program to stabilize before enabling it.
Comprehensive troubleshooting flowchart
For the high-frequency problem of "motor not turning", it is recommended to check in the following order:
Is the 24V terminal board functioning properly and is the card power indicator light (if any) on.
PCI recognition ->Whether the device manager is visible and whether the driver version is correct.
Is the logic of I/O status → EMG/PEL/MEL/ALM correct (no trigger).
SVON output → Measure whether CMPx pin 1 enables the voltage level to ground.
Pulse output → Measure OUT+and DIR+with an oscilloscope to confirm frequency and direction changes.
Encoder feedback → manually rotate the motor shaft to check if the position counter changes.
Is the unit factor, acceleration and deceleration, and maximum speed reasonable for axis parameters.
Motion command ->Use APS_ptp or JOG to test and check if the return value is ERR_CoError.
Maintenance and replacement suggestions
Although AMP-204C/208C is not a discontinued model, if hardware damage occurs on site (such as I/O chip burnout), it is recommended to replace the entire card or terminal board first. After replacement, it is necessary to read the EEPROM parameters from the original card (using APS_get-eep series API) and write them to the new card to avoid reconfiguring hundreds of parameters. At the same time, pay attention to whether the firmware version of the new card is consistent - the manual Revision 2.00 was released in 2014. If using the new firmware, some parameter addresses may change, and official technical support should be consulted.
