If you want to use the external input port to stop the processing state, you need to connect the hardware input port signal, and the marking software also needs to have corresponding settings, as shown in the figure:

The hardware connection needs to be connected to the IN4 and GND signals. When IN4 and GND are short-circuited, the marking state will stop.