
User Manual
Chapter 7
GFK-1742F
Jan 2020
Programmed Motion
221
(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
This error is issued if motion program commands occur outside a PROGRAM or
SUBROUTINE.
(M283) This instruction is invalid for the specified module type
A motion program block contains an instruction that is invalid for the destination module.
(M293) Maximum error count exceeded.
The motion program parser reports up to 30 errors when parsing a motion program block.
When that limit is reached, this error is issued and no more errors are reported.
(M300) Parse directives must precede any executable statements
A #pragma directive must be issued at the beginning of the motion program block, i.e.
preceding any motion program statements.
(M301) Invalid directive option
An invalid #pragma directive has been specified.
(M302) Invalid directive parameter
An invalid option has been specified as #pragma directive parameter.
Warnings
Warnings are generated for code that seems questionable but does not specifically cause
an error. This section describes parse warnings reported by the motion parser and their
typical causes.
(M482) Unexpected end of program: unclosed comment
A comment was not terminated when an end of file was encountered.
(M483) Nested comments.
The motion parser does not support nesting comments. A warning is issued if a comment
is defined within a comment.