
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 195 -
6.5.6 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.
2 Line error (DR signal off)
3 Line error (overrun error)
4 Line error (buffer over error)
5 Line error (framing error, parity error)
6 No line function option.
7 The line is busy.
8 Data (P, Q, R, and so forth) specified in a block of G330 to G339 is
incorrect, or necessary data is not specified.
G336 or G338 was issued in reception control mode.
G335 or G337 was issued in transmission control mode.
G339 was specified in a mode other than file control mode.
9 Invalid data format
10 Invalid file number
11 A file with the number specified with the file information reading
code does not exist.
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.)
99 With macro variable input function G337, the continuous reading of
macro variables is possible.
115 An undefined variable number is specified.
211 Line error (CD signal off)
255 There is no receive data.