Error description 160-00D2

Error message

Only allowed in subprogram

Cause of error

The syntax used is allowed only in subprograms that are called with CALL PGM and in cycles, not in the main program.

Error correction

Correct the NC program.