
17.CUSTOM MACRO PROGRAMMING B-63784EN/01
- 706 -
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
commands.
- BPRNT
- DPRNT
- POPEN
- PCLOS
These commands are provided to output variable values and characters
through the reader/punch interface.
Explanations
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
device.
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
Number of significant decimal places
BPRNT [ a #b [c] . . . ]
Variable
Character
The BPRNT command outputs characters and variable values in
binary.
(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)
- Numbers
- Special characters (*, /, +, -, @ , ? , &)
NOTE
1 An asterisk (*) is output by a space code.
2 Set the parameter EIA(No.0000 #4) to 0 (ISO
code system is used for punch codes), when the
special characters (@,?,&) are output,