User`s manual
Programmed Motion
GFK-1742A Chapter 7 Programmed Motion 7-53
7
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 will check 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.
Highlighted
Error Message
Cursor
Figure 7-26. Using Error Messages to Troubleshoot Motion Programs
The error shown in the above figure, “Error: (M231) Cannot specify axis in a single-axis
program: 1,” refers to the last line of the program, just before the ENDPROG statement. 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 troubleshooting 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.