16. CUSTOM MACRO
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 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.
POPEN establishes a connection to an external input/output device. It
must be specified before a sequence of data output commands. The NC
outputs a DC2 control code.
BPRNT [ a #b [ c ] … ]
Number of significant decimal places
The BPRNT command outputs characters and variable values in binary.
(i) Specified characters are converted to corresponding ISO codes
according to the setting (ISO) that is output at that time.
Specifiable characters are as follows:
– Letters (A to Z)
– Special characters (*, /, +, –, etc.)
An asterisk (*) is output by a space code.
(ii)All variables are stored with a decimal point. Specify a variable
followed by the number of significant decimal places enclosed in
brackets. A variable value is treated as 2–word (32–bit) data,
including the decimal digits. It is output as binary data starting from
the highest byte.
(iii)When specified data has been output, an EOB code is output
according to the ISO code settings on the parameter screen.
(iv)Null variables are regarded as 0.
D Open command POPEN
D Data output command