Output of user errors

The NC command #ERROR permits user-defined errors messages within a reald-time cycle. The syntax is described in [PROG//User-defined error output (#ERROR)].

Notice

notice

If an error is output with RC >= 1, the NC channel goes to error state and possible path movements are stopped. If warnings are output (RF = 0), path movements are continued.

Programing Example

prg_example

#ERROR Command within a real-time cycle

; Define RT cycle; output error as soon as X > 99

#RT CYCLE [SCOPE = PROG]

  $IF ONCE V.RTA.ACS.ACT_POS.X > 99

    #ERROR [ID=666 RC=2 PM1=1 PV1=99]

  $ENDIF

#RT CYCLE END