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

PROGRAMMING
16. CUSTOM MACRO
B–62754EN/01
314
Example )
DPRNT [ X#2 [53] Z#5 [53] T#30 [20] ]
Variable value
#2=128.47398
#5=–91.2
#30=123.456
(1) Parameter PRT(No.6001#1)=0
(2) Parameter PRT(No.6001#1)=1
sp
spspsp
sp
sp
L F
T
Z –
X
91.200
128.474
23
sp
sp
LF
T23
Z–91.200
X128.474
PCLOS ;
The PCLOS command releases a connection to an external input/output
device. Specify this command when all data output commands have
terminated. DC4 control code is output from the CNC.
Specify the channel use for parameter 020. According to the specification
of this parameter, set data items (such as the baud rate) for the
reader/punch interface.
I/O channel 0 : Parameters 101, 102 and 103
I/O channel 1 : Parameters 111, 112 and 113
I/O channel 2 : Parameters 121, 122 and 123
Never specify output to the Fanuc Cassette or floppy disks.)
When specifying a DPRNT command to output data, specify whether
leading zeros are output as spaces (by setting PRT (bit 1 of parameter
6001) to 1 or 0). To indicate the end of a line of data in ISO code, specify
whether to use only an LF (NCR, of bit 3 of parameter 0103 is 0) or an
LF and CR (NCR is 1).
D Close command PCLOS
D Required setting

Leave a Reply

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