13. Program Support Functions
13.5 User Macro Specifications
361
13.5.8 External Output Commands
Function and purpose
Besides the standard user macro commands, the following macro instructions are also available as
external output commands. They are designed to output the variable values or characters via the
RS-232C interface.
Command format
POPEN For preparing the processing of data outputs
PCLOS For terminating the processing of data outputs
BPRNT For character output and variable value binary output
DPRNT For character output and digit-by-digit variable numerical output
Command sequence
POPEN
DPRNT
PCLOS
Open command
Data output command
Closed command
Open command : POPEN
(1) The command is issued before the series of data output commands.
(2) The DC2 control code and % code are output from the NC system to the external output
device.
(3) Once POPEN; has been issued, it will remain valid until PCLOS; is issued.
Close command : PCLOS
(1) This command is issued when all the data outputs are completed.
(2) The DC4 control code and % code are output from the NC unit to the external output device.
(3) This command is used together with the open command and it should not be issued unless the
open mode has been established.
(4) Issue the close command at the end of the program even when operation has been
suspended by resetting or some other operation during data output.