User`s manual

Programmed Motion
GFK-1742A Chapter 7 Programmed Motion 7-51
7
(M238) Program must be in range 1 10
A PROGRAM statement is attempting to define a program number that is outside the valid range.
(M239) Attempt to redefine program. Program already defined
A PROGRAM statement is attempting to define a program using a program number that is
already defined.
(M240) End program definition with ENDPROG statement
A PROGRAM has been terminated with an ENDSUB statement, or an ENDSUB statement was
encountered within a program.
(M242) Missing ENDPROG statement
A PROGRAM had not been terminated with an ENDPROG statement when the end of file was
encountered.
(M243) Subroutine must be in range 1 40
A SUBROUTINE statement is attempting to define a subroutine number that is outside the valid
range.
(M244) Attempt to redefine subroutine. Subroutine already defined
A SUBROUTINE statement is attempting to define a program using a subroutine number that is
already defined.
(M245) End subroutine definition with ENDSUB statement
A SUBROUTINE has been terminated with an ENDPROG statement, or an ENDPROG
statement was encountered within a subroutine.
(M246) No subroutine is being defined
The program block contains an ENDSUB command, but there is no open SUBROUTINE.
(M247) Subroutine cannot call itself
The DSM does not support any kind of recursion. Once invoked a subroutine cannot call itself or
be called by a subroutine that it has invoked.
(M248) Axis definition of subroutine must match caller
An attempt has been made to call a single-axis subroutine from a multi-axis program or
subroutine, or call a multi-axis subroutine from a single-axis program or subroutine.
(M249) Already defining program or subroutine
A PROGRAM or SUBROUTINE statement has been encountered within an unterminated
PROGRAM or SUBROUTINE.
(M280) Instruction limit exceeded, max 1000
A motion program block can contain no more that 1000 program statements. This error is issued
if the number of statements exceeds that limit.
(M281) File must contain at least one program
A motion program block must contain at least one PROGRAM; otherwise, there is no way to
invoke it. This error is issued if a motion program block does not contain any PROGRAMs.
(M282) Statement must be within a program or subroutine