
15. CUSTOM MACRO
15.5
External Output Commands
15.5 External Output Commands
The following macro commands can be executed in addition to the standard custom
macro commands. (These commands are called external output commands.)
(a) BPRNT
(b) DPRNT
(c)
POPEN
(d) PCLOS
These commands are provided to output variable values and characters through the
.
reader/puncher interface.
Specify these commands according to the following
procedure.
.
(2)
Open command:
POPEN
The connection processing to external
I/O
units is made before executing a
series of data output commands.
Data output command:
BPRNT or DPRNT
Necessary data output commands are executed.
Close command: PCLOS
This command is specified after all data output commands have been
completed in order to disconnect external
I/O
units.
Open command
POPEN
POPEN;
This command is provided
before sending a series of
output from CNC.
to connect to external
I/O
units, and it is specified
data output commands.
The DC2 control code is
Data output commands BPRNT, DPRNT
(a) BPRNT [a
#b
u
. . . . . . . . .
1
Number of effective
digits below decimal
point
-
Character
Characters are output and variable values are binary-output when BPRNT is
given.
0
i
(ii)
The specified characters are output by codes set
ISO.
The following characters are commandable.
9
Alphabetic characters (A to
2)
9
Numeric characters
.
Special characters (*,
/,
#
+ ,
-
)
Asterisk
(*)
is output by the space code.
Since all variables are being stored with a decimal point, the number of
effective digits below the decimal point must be specified by parenthesizing
them just after specifying variables. Variable values are treated as
2-word
(32.bit)
data by taking the number of digits below decimal point into
account, and they are output as binary data, starting with high-order bytes.