FANUC Series 30i/300i/300is-MODEL A. Machining Center System. User's manual - page 164

 

  Index      Manuals     FANUC Series 30i/300i/300is-MODEL A. Machining Center System. User's manual (B-63944EN/03)

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     162      163      164      165     ..

 

 

 

FANUC Series 30i/300i/300is-MODEL A. Machining Center System. User's manual - page 164

 

 

8.DATA INPUT/OUTPUT

 OPERATION 

B-63944EN/03

 

 

- 1268 - 

8.2.5.3 

Input/output format of three-dimensional error compensation 

data 

 
Three-dimensional error compensation data is input and output in the 
following input and output formats. 
 

 - Keywords 

The following alphabets are used as keywords. 
The numeric value following each keyword has the meaning listed 
below: 
 

Keyword 

Meaning of the following numeric value 

Data number (compensation point number + 100000) as 
represented with six digits 

A1 

1st compensation axis 

A2 

2nd compensation axis 

A3 

3rd compensation axis 

Compensation data (-128 to 127) 

 

 - Format 

Three-dimensional error compensation data is output in the following 
format: 
 

N *****

A1

P

****

A2

P

****

A3 P  ****  ;

 
The 6-digit numeric value following N indicates a three-dimensional 
error compensation data number to which a value of 100000 is added. 
The numeric value following P indicates the value (integer value) of 
three-dimensional error compensation data between -128 to 127. 
The semicolon (;) indicates the end of block (LF in the ISO code or 
CR in the EIA code). 

 

Example 

 N100001A1P100A2P110A3P120; 
 

Three-dimensional error compensation data 
number: 1 

 

Error compensation data value for the 1st 
compensation axis: 100 

 

Error compensation data value for the 2nd 
compensation axis: 110 

 

Error compensation data value for the 3rd 
compensation axis: 120 

 

B-63944EN/03

 OPERATION 

8.DATA INPUT/OUTPUT

 

 

- 1269 - 

  - Beginning and end of a record 

A three-dimensional error compensation data record begins with % 
and ends with %. 
 

Example 

 % 

;   .....................................Beginning of record 

 

N100001 A1 P1 A2 P2 A3 P3 ; 

 

N100002 A1 P0 A2 P0 A3 P-3 ; 

  : 
 

N115625 A1 P1 A2 P1 A3 P0 ; 

 % 

   .............................................. End 

of record 

 

  - Input of compensation data using G10 

Compensation data can be changed from a machining program, using 
the programmable parameter input function. 
 
The command format is as follows: 
 


G10 L51 ; 
N_ P_ R_ ; 
N_ P_ R_ ; 

G11 ; 

G10 L51 : Three-dimensional error compensation data input 

mode 

G11 

: Cancellation of three-dimensional error 

compensation data input mode 

: Compensation point number (1-15625) 

: Compensation axis number (1-3) 

: Compensation data (-128-127) 

 

NOTE 

1  To input compensation data using G10, the option 

of the programmable parameter input function is 
required. 

2  In three-dimensional error compensation data input 

mode, no other NC statements can be issued. 

3  The decimal point cannot be used in address N, P, 

and R. 

 

8.DATA INPUT/OUTPUT

 OPERATION 

B-63944EN/03

 

 

- 1270 - 

8.2.6 

Inputting and Outputting Custom Macro Common Variables 

 

8.2.6.1 

Inputting custom macro common variables 

 

The value of a custom macro common variable is loaded into the 
memory of the CNC from an external device.    The same format used 
to output custom macro common variables is used for input. 

 

Inputting custom macro common variables (for 7.2/8.4/10.4-inch display unit) 

Procedure 

Make sure the input device is ready for reading. 

Press the function key 

3  Press the continuous menu key 

 until soft key [MACRO] 

appears. 
Press the soft key [MACRO]. 

Press the EDIT switch on the machine operator’s panel or enter 
state emergency stop. 

Press the soft key [(OPRT)]. 

6  Press the continuous menu key 

 until soft key [READ] 

appears. 
Press the soft key [READ]. 

Type the name of the file that you want to input. 
If the input file name is omitted, default input file name 
“MACRO.TXT” is assumed. 

Press the soft key [EXEC]. 
This starts reading the custom macro common variables, and 
“INPUT” blinks in the lower right part of the screen. When the 
read operation ends, the “INPUT” indication disappears. 
To cancel the input of the program, press the soft key [CAN]. 

 

Inputting custom macro common variables (for 15-inch display unit) 

Procedure 

Make sure the input device is ready for reading. 

Press the function key 

Press the vertical soft key [NEXT PAGE] until vertical soft key 
[MACRO] appears. 
Press the vertical soft key [MACRO]. 

Press the EDIT switch on the machine operator’s panel or enter 
state emergency stop. 

Press the horizontal soft key [READ]. 

Type the name of the file that you want to input. 
If the input file name is omitted, default input file name 
“MACRO.TXT” is assumed. 

Press the horizontal soft key [EXEC]. 
This starts reading the custom macro common variables, and 
“INPUT” blinks in the lower right part of the screen. When the 
read operation ends, the “INPUT” indication disappears. 
To cancel the input of the program, press the horizontal soft key 
[CAN]. 

B-63944EN/03

 OPERATION 

8.DATA INPUT/OUTPUT

 

 

- 1271 - 

 

Explanation 
 - Common variables 

The common variables (#500 to #549) can be input and output. 
(When the option for addition of common variable is specified, values 
from #500 to #999 can be input and output.) #100 to #149 can be 
input when bit 3 (PV5) of parameter No. 6001 is set to 1. (When the 
option for addition of common variable is specified, values from #100 
to #199 can be input and output.) 
 

8.DATA INPUT/OUTPUT

 OPERATION 

B-63944EN/03

 

 

- 1272 - 

8.2.6.2 

Outputting custom macro common variables 

 
Custom macro common variables stored in the memory of the CNC 
can be output in a defined output format to an external device. 
 

Outputting custom macro common variables (for 7.2/8.4/10.4-inch display unit) 

Procedure 

Make sure the output device is ready for output. 

Press the function key 

3  Press the continuous menu key 

 until soft key [MACRO] 

appears. 
Press the soft key [MACRO]. 

Press the EDIT switch on the machine operator’s panel or enter 
state emergency stop. 

Press the soft key [(OPRT)]. 

6  Press the continuous menu key 

 until soft key [PUNCH] 

appears. 
Press the soft key [PUNCH].   

Type the file name that you want to output. 
If the file name is omitted, default file name “MACRO.TXT” is 
assumed. 

Press the soft key [EXEC]. 
This starts outputting the custom macro common variables, and 
“OUTPUT” blinks in the lower right part of the screen. When the 
read operation ends, the “OUTPUT” indication disappears. 
To cancel the output, press the soft key [CAN]. 

 

Outputting custom macro common variables (for 15-inch display unit) 

Procedure 

Make sure the output device is ready for output. 

Press the function key 

Press the vertical soft key [NEXT PAGE] until vertical soft key 
[MACRO] appears. 
Press the vertical soft key [MACRO]. 

Press the EDIT switch on the machine operator’s panel or enter 
state emergency stop. 

Press the horizontal soft key [PUNCH].   

Type the file name that you want to output. 
If the file name is omitted, default file name “MACRO.TXT” is 
assumed. 

Press the horizontal soft key [EXEC]. 
This starts outputting the custom macro common variables, and 
“OUTPUT” blinks in the lower right part of the screen. When the 
read operation ends, the “OUTPUT” indication disappears. 
To cancel the output, press the horizontal soft key [CAN]. 

 

B-63944EN/03

 OPERATION 

8.DATA INPUT/OUTPUT

 

 

- 1273 - 

Explanation 

 - Output format 

The output format is as follows: 
The values of custom macro variables are output in a bit-image 
hexadecimal representation of double-precision floating-point type 
data. 


G10L85P200(0000000000000000)  
G10L85P200(0000000000000000) 
G10L85P200(FFFFFFFFFFFFFFFF) 
 : 
G10L85P500(4024000000000000) 
G10L85P501(4021000000000000) 
G10L85P502(0000000000000000) 
 : 
SETVN500[ABC,DEF] 
SETVN501[GHI,JKL] 
SETVN502[MNO,PQR] 
 : 
M02 

 

NOTE 

 

The conventional custom macro statement 
program format cannot be used for output. 

 
By setting bit 0 (MCO) of parameter No. 6019, it is possible to output 
macro variable numbers and variable data values as comments after 
normally output data.   
The output comments do not affect data input. 
 

 - Common variable 

The common variables (#500 to #549) can be input and output. 
(When the option for addition of common variable is specified, values 
from #500 to #999 can be input and output.) #100 to #149 can be 
output when bit 3 (PV5) of parameter No. 6001 is set to 1. (When the 
option for addition of common variable is specified, values from #100 
to #199 can be input and output.) 
 

8.DATA INPUT/OUTPUT

 OPERATION 

B-63944EN/03

 

 

- 1274 - 

8.2.7 

Inputting and Outputting Workpiece Coordinates System 

Data 

 

8.2.7.1 

Inputting workpiece coordinate system data 

 
Coordinate system variable data is loaded into the memory of the 
CNC from an external device.    The input format is the same as the 
output format.  When coordinate system variable data with a data 
number corresponding to existing coordinate system variable data 
registered in the memory is loaded, the loaded coordinate system 
variable data replaces the existing coordinate system variable data. 
 

Inputting workpiece coordinate system data (for 7.2/8.4/10.4-inch display unit) 

Procedure 

Make sure the input device is ready for reading. 

Press the function key 

3  Press the continuous menu key 

 until soft key [WORK] 

appears. 
Press the soft key [WORK]. 

Press the EDIT switch on the machine operator’s panel or enter 
state emergency stop. 

Press the soft key [(OPRT)]. 

6  Press the continuous menu key 

 until soft key [READ] 

appears. 
Press the soft key [READ]. 

Type the name of the file that you want to input. 
If the input file name is omitted, default input file name 
“EXT_WKZ.TXT” is assumed. 

Press the soft key [EXEC]. 
This starts reading the workpiece coordinate system data, and 
“INPUT” blinks in the lower right part of the screen. When the 
read operation ends, the “INPUT” indication disappears. 
To cancel the input of the program, press the soft key [CAN]. 

 

B-63944EN/03

 OPERATION 

8.DATA INPUT/OUTPUT

 

 

- 1275 - 

 

Inputting workpiece coordinate system data (for 15-inch display unit) 

Procedure 

Make sure the input device is ready for reading. 

Press the function key 

Press the vertical soft key [NEXT PAGE] until vertical soft key 
[WORK] appears. 
Press veertical soft key [WORK]. 

Press the EDIT switch on the machine operator’s panel or enter 
state emergency stop. 

Press the horizontal soft key [READ].   

Type the name of the file that you want to input. 
If the input file name is omitted, default input file name 
“EXT_WKZ.TXT” is assumed. 

Press the horizontal soft key [EXEC]. 
This starts reading the workpiece coordinate system data, and 
“INPUT” blinks in the lower right part of the screen. When the 
read operation ends, the “INPUT” indication disappears. 
To cancel the input of the program, press the horizontal soft key 
[CAN]. 

 

 

 

 

 

 

 

 

Content      ..     162      163      164      165     ..