8.10. How do I implement an emergency stop button?¶
If you using XiLab, you need to uncheck the “IO pin is output” in the EXTIO settiongs and then select “Alarm on input” from the drop-down list.
It is recommended to use an ALARM for the emergency stop button, because the alarm will not allow you to perform any actions
until it is reset (reset occurs using the stop button or when calling the stop command).
If another command is used instead of an ALARM, for example “stop” or “power off”, then when any move command (MOVE/MOVR/LEFT/RIGT) is called, the movement will continue, despite the fact that the button is pressed.
The emergency button function does not provide a smooth stop!