B-63324EN/03 PROGRAMMING 17.CUSTOM MACRO
- 659 -
17.12 EXTERNAL OUTPUT COMMANDS
In addition to the standard custom macro commands, the following
macro commands are available. They are referred to as external output
These commands are provided to output variable values and characters
through the reader/punch interface.
Specify these commands in the following order:
Open command: POPEN
Before specifying a sequence of data output commands, specify
this command to establish a connection to an external input/output
Data output command: BPRNT or DPRNT
Specify necessary data output.
Close command: PCLOS
When all data output commands have completed, specify PCLOS
to release a connection to an external input/output device.
- Open command POPEN
POPEN establishes a connection to an external input/output device. It
must be specified before a sequence of data output commands. The
CNC outputs a DC2 control code.
- Data output command BPRNT
The BPRNT command outputs characters and variable values in
(i) Specified characters are converted to the codes according to the
parameter EIA(No.0000 #4) that is output at that time.
Specifiable characters are as follows:
- Letters (A to Z)
- Special characters (*, /, +, -, @ , ? , &)
An asterisk (*) is output by a space code.
Number of significant decimal places
BPRNT [ a #b [c] . . . ]