FANUC Series 16/18/160/180-Model C for Lathe Operator Manual

PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
312
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.
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
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.
BPRNT [ a #b [ c ] ]
Number of significant decimal places
Variable
Character
The BPRNT command outputs characters and variable values in binary.
(i) Specified characters are converted to corresponding ISO codes
according to the setting data (ISO) that is output at that time.
Specifiable characters are as follows:
– Letters (A to Z)
– Numbers
– 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.
(iv) Null variables are regarded as 0.
16.10
EXTERNAL OUTPUT
COMMANDS

D Open command POPEN
D Data output command
BPRNT

Leave a Reply

Your email address will not be published. Required fields are marked *