FANUC Series 16/18/160/180-Model C Machining Center Operators Manual

PROGRAMMING
B–62764EN/01
16. CUSTOM MACRO
411
Example )
sp
spspsp
sp
sp
DPRNT [ X#2 [53] Y#5 [53] T#30 [20] ]
Variable value
#2=128.47398
#5=–91.2
#30=123.456
(1) Parameter PRT(No.6001#1)=0
L F
T
Y –
X
91200
128474
23
sp
LF
T23
Y–91.200
X128.474
(2) Parameter PRT(No.6001#1)=0
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 setting data (I/O channel). According to the
specification of this data, set data items (such as the baud rate) for the
reader/punch interface.
I/O channel 0 : Parameters (No.101, No.102 and No.103)
I/O channel 1 : Parameters (No.111, No.112 and No.113)
I/O channel 2 : Parameters (No.112, No.122 and No.123)
Never specify the output device FANUC Cassette or Floppy for punching.
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 (CRO, of bit 4 of parameter 6001 is 0) or an LF and CR (CRO
of bit 4 of parameter 6001 is 1).
D Close command PCLOS
D Required setting

Leave a Reply

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