
User Manual
Chapter 7
GFK-1742F
Jan 2020
Programmed Motion
222
(M490) Program contains no executable statements
A warning is issued if a program block contains no executable statements.
Using Error Messages to Troubleshoot Motion Programs
After creating motion programs or subroutines in the Motion Editor window, you can check
for basic errors by clicking the Block Check icon
on the toolbar.
The editor checks the motion program block and report any errors it detects in the
Information window. The next figure shows an example of an error detected during the
check.
Figure 94: Using Error Messages to Troubleshoot Motion Programs
The error shown in the above figure, “Error: (M231) Cannot specify a
xis in a single-axis
program: 1,” refers to the last line of the program, just before the ENDPROG statem
ent.
Notice that AXIS1 is found on this line. Since PROGRAM 2 is a single-axis program, the use
of axis numbers within the program is not allowed so an error was generated.
In the above example, the error message was double clicked, as indicated by the fact that it
is highlighted in reverse video. When this is done, the cursor jumps to the place in the
program that produced the error. You will note the presence of the cursor at the start of the
line containing the AXIS1 statement.
For further help in troubl
eshooting errors, the “Motion Editor Error and Warning
Messages”
section of this chapter lists common causes for the various error codes. For example, the
listing for error (M231), seen in the example above, states:
(M231) Cannot specify axis in a single-axis program
ACCEL, VELOC, CMOVE, PMOVE, DWELL, and WAIT commands in a single-axis program or
subroutine must not specify an axis.