Is it possible to stop a Controller when the error has occurred in I/O?
It is possible by using the system variables, #IO Fault and #Command.
1.
Place a Normally Open Contact and allocate the system variable #IO Fault. This variable turns ON when I/O error has occurred in I/O driver.
2.
Place MOV after the Normally Open Contact that #IO Fault is allocated to, and allocate the system variable #Command on the OUT side.
3.
Controller stops when the 0th bit of #Command has been turned ON. Write 1 in #Command to turn ON the 0th bit (that is a Controller stop bit), and stop the Controller.
By combining those, MOV instruction is processed when I/O error has occurred, and write 1 in #Command and turn ON the 0th bit to stop the Controller.