Program end (M02/M30)
M02 and M30 are identical. In the main program and subroutine, they cause a reset to the start of the main program and reset the NC to initial state.
In addition, a signal can be sent to the PLC by configuration. For example, the PLC uses this signal to synchronize a workpiece change.