
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 203 -
6.6.3 Completion Codes (#8539)
Completion codes are returned for G330 to G339 commands. If an
error occurs, its description is set in a completion code. Check the
completion code after issuing a command.
There are three types of completion codes:
#8537: Completion code for the result of executing an auxiliary
macro
#8538: Completion code for the result of executing a conversational
macro
#8539: Completion code common to auxiliary commands and
conversational macros
When the command specified in an auxiliary macro program is
completed, a completion code is set in both variables #8537 and
#8539. If the command specified in a conversational macro program
is completed, a completion code is set in both variables #8438 and
#8539.
#8539 Description
0 Normal termination
1 The line is not open.
6 A necessary option is not specified.
7 Write protected
8 Data (P, Q, R, and so forth) specified in a block of G330 to G339 is
incorrect, or necessary data is not specified.
9 Invalid data format
12 The specified time has elapsed since the system entered the data
transmission/reception waiting state.
Operation was stopped by an NC reset in the data
transmission/reception waiting state.
(When the bit 1 (RCN) of parameter (No.9035) is set to 1.)
30 Memory card not inserted yet
32 Low battery voltage
99 With macro variable input function G337, the continuous reading of
macro variables is possible.
102 Insufficient free space on memory card
114 Specify file not found
115 The specified file is protected.
An undefined variable number was specified.
117 The file is not opened in a correct mode.
121 End of file
122 Illegal file name specified
130 A file with the same name already exists on memory card.
141 Close the file.
150 Memory card cannot be recognized. Illegal memory card access.
An error occurred on memory card.