FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) - page 263

 

  Index      Manuals     FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) B-64693EN-1/01

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     261      262      263      264     ..

 

 

 

FANUC Series 0i-MODEL F Plus. CONNECTION MANUAL (FUNCTION) - page 263

 

 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2058 - 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6019 

 

SFN 

 

EDP 

 

OFN 

DPD 

 

 

 

SFN 

 

EDP 

MSV 

OFN 

 

 

 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit 

 

 

#2  DPD

  When argument D is  specified for a macro call without a decimal point, the number of 

decimal places: 
0: 

Is assumed to be 0. 
[Example] 
 

When G65PppppD1 is specified, #7=1.0000 is passed as the argument. 

1:    Depends on the increment system of the reference axis. 

[Example] 
 

When the increment system of the reference axis is IS-B and G65PppppD1 is 
specified, #7=0.0010 is passed as the argument. 

 

 

#3  OFN

  The format of the name of a file output by the external output command (DPRNT or 

BPRNT) is: 
0: 

PRNTxxxx.DAT (xxxx: 0000 to 9999). 

1: 

MCR_PRNT.TXT (fixed). 

 

 

#4  MSV

  When Tool length compensation shift type is used, the value in which Tool offset value, 

Tool length offset and Tool holder offset are : 
#5041 - #5060, #100101 - #100150 (Current position) 
#5061 - #5080, #100151 - #100200 (Skip position): 
0: 

It is included in above-mentioned system value. 

1: 

It is not included in above-mentioned system value. 

Only in the machining center system, this parameter becomes effective. In the lathe 
system,  bit 4 (TSV) of parameter No.6021 is  valid. This parameter is valid both during 
coordinate system shift type compensation and axis movement type compensation if bit 4 
(AXM) of parameter No.6005 is set to 1. 
 

 

#5  EDP

  Precision setting for macro relational operators is:   

0: 

Disabled. 

1: 

Enabled. 

 

NOTE 

 

Parameter No. 6100 is used to set the number of significant digits 
after the decimal point. 

 

 

#7  SFN

  The format of the name of a file output by the external output command (DPRNT or 

BPRNT) is: 
0: 

PRNTxxxx.DAT (xxxx: 0000 to 9999). 
If the power is off and on, xxxx is reset to 0000. 

1: 

PRNTxxxx.DAT (xxxx: 0000 to 9999). 
If the power is off and on, xxxx is continued and the next number is applied. 

 

NOTE 

 

The setting value of bit 7 (SFN) of parameter No. 6019 is effective 
in case of that bit 3 (OFN) of parameter No. 6019 equals 0. 

 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2059 - 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6020 

 

 

 

 

 

NCM 

IFR 

NC2 

NC1 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

NOTE 

 

When at least one of these parameters is set, the power must be 
turned off before operation is continued. 

 

 

#0  NC1

  The setting of the number of custom macro variables common to paths for #100 to #199 

(#499) (parameter No. 6036) is:

 

0: 

Valid. 
As many custom macro variables #100 to #199 (or #100 to #499) set for this path as 
the number set in parameter No. 6036 are used as custom macro variables common 
to tool paths. 

1: 

Invalid. 
Custom macro variables #100 to #199 (or #100 to #499) set for this path are all used 
as variables for the path. 

 

NOTE 

 

For path 1, be sure to set this parameter to 0. 

 

Example 

 

In a 4-path system, when parameters are set as listed below, 
custom macro variables for paths 1 to 3 are used as variables 
common to these paths, but for path 4, custom macro variables for 
the path are used. 

 

Path number  No. 6036  NC1 

Used custom macro variables 

20 

Custom macro variables #100 to #119 are used as variables 
common to these paths, and other custom macro variables 
are used independently for the relevant path. 

Custom macro variables for path 4 are all used independently. 

 

 

#1  NC2

  The setting of the number of custom macro variables common to paths for #500 to #999 

(parameter No. 6037) is:

 

0: 

Valid. 
As many custom macro variables #500 to #999 set for this path as the number set in 
parameter No. 6037 are used as custom macro common variables between each path. 

1: 

Invalid. 
Custom macro variables #500 to #999 set for this path are all used as variables for 
the path. 

 

NOTE 

 

For path 1, be sure to set this parameter to 0. 

 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2060 - 

Example 

 

In a 4-path system, when parameters are set as listed below, 
custom macro variables for paths 1 to 3 are used as variables 
common to these paths, but for path 4, custom macro variables for 
the path are used. 

 

Path number  No. 6037  NC2 

Used custom macro variables 

50 

Custom macro variables #500 to #999 are used as variables 
common to these paths, and other custom macro variables 
are used independently for the relevant path. 

Custom macro variables for path 4 are all used independently. 

 

 

#2  IFR

  The custom macro interface signal R address is:

  

0: 

Disabled. 

1: 

Enabled. 

 

NOTE 

 

Set the start address of each R area in parameter No. 6093 or 
6094. 

 

  WARNING 

 

To set the parameter IFR=1, set an appropriate value to parameter 
No.6094 beforehand. 
When the parameter No.6094 is 0, R0~ of an internal relay is set. If 
the internal relay R0~ is used to another area, the operation not 
intended might be done. 

 

 

#3  NCM

  Position where comment section of machining program can be inserted and handling of 

comment section inserted in block of #3000 (macro alarm) / #3006 (stop with a message) 
are decided.

 

0: 

The position in which comment section can be inserted in macro statements is as 
follows. 
 

(ABC) #100 =1;      Head of the block 

 

#100 =1 (ABC);      End of the block 

 

N01 (ABC) #100 =1;    Just behind of the sequence number 

 

 

It cannot be inserted just after variable / constant value / variable name. 

 

When inserting the comment section into the block of # 3000 (macro alarm) / # 3006 
(macro message), the order of the character string as the message and the character 
string as comment section part is as follows. 
 

#3000 =1 (ALARM MESSAGE) (COMMENT 1) (COMMENT 2); 

 

The first bracket is assumed as the message, and the second and subsequent ones as 
the comment section. 

 
1: 

The position in which comment section can be inserted in macro statements is as 
follows. 
 

(ABC) #100 =1;   

 

Head of the block 

 

#100 =1 (ABC);   

 

End of the block 

 

N01 (ABC) #100 =1; 

 

Just behind of the sequence number 

 

#100(ABC) =1; 

 

 

Just behind of variable number 

 

#100 =#101 +1.(ABC) *#102; 

Just behind of numeric values 

 

#100 =[#_UIL[1]](ABC) *100.; 

Just behind of the name of variable 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2061 - 

 

When inserting the comment section into the block of # 3000 (macro alarm) / # 3006 
(macro message), the order of the character string as the message and the character 
string as comment section part is as follows. 
 

#3000 =1 (COMMENT 1) (COMMENT 2) (ALARM MESSAGE); 

 

The last bracket is regarded as a message, and brackets before it are regarded as an 
comment section. 

 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6021 

 

 

 

 

TSV 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit 

 

 

#4  TSV

  When Tool length compensation shift type is used, the value in which Tool offset value, 

Tool length offset and Tool holder offset are : 
#5041 - #5060, #100101 - #100150 (Current position) 
#5061 - #5080, #100151 - #100200 (Skip position): 
0: 

It is included in above-mentioned system value. 

1: 

It is not included in above-mentioned system value.   

Only in the lathe system, this parameter becomes effective. In the machining center 
system, bit 4 (MSV) of parameter No.6019 is valid. This parameter is valid both during 
coordinate system shift type compensation and axis movement type compensation if bit 4 
(AXM) of parameter No.6005 is set to 1. 
 

NOTE 

1  If bit 2 (LWT) of parameter No.5002 is set to 1 (coordinate system 

shift type wear compensation) and tool compensation is executed, 
the wear compensation value is not included in the system 
variables independently of bit 4 (TSV) of parameter No.6021. 

2  If bit 4 (LGT) of parameter No.5002 is set to 0 (coordinate system 

shift type geometry compensation) and tool compensation is 
executed, the geometry compensation value is not included in the 
system variables independently of bit 4 (TSV) of parameter 
No.6021. 

 

6031 

 

Start number of common variables to be protected among the common variables (#500 to #999) 

 

6032 

 

End number of common variables to be protected among the common variables (#500 to #999) 

 

 

[Input type]  Parameter input 

 

[Data type]  Word path 

[Valid data range]  500 to 999 

Among the common variables #500 to #999, the range of common variables specified by 
this parameter can be protected (by setting their attributes to read-only). If a write attempt 
(on the left side) is made, an alarm is issued. 
 

NOTE 

 

Set 0 in both parameters Nos. 6031 and 6032 not to protect 
common variables. 

 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2062 - 

6036 

 

Number of custom macro variables common between each path (for #100 to #199 (#499)) 

 

 

[Input type]  Parameter input 

 

[Data type]  Word 

[Valid data range]  0 to 400 

When the memory common to paths is used, this parameter sets the number of custom 
macro common variables to be shared (custom macro variables common to paths). 
Common variables #100 to #199 (up to #499 in a system with the embedded macro 
option) may be shared. Ensure that the maximum number of usable macro common 
variables is not exceeded. 
 

Example 

 

When 20 is set in parameter No. 6036 

 

#100 to #119: Shared by all paths 

 

#120 to #149: Used by each path independently 

 

NOTE 

1  When the adding custom macro common variables is enabled (bit 

6(NCV) of parameter No.8135 is 0), up to #199 is available. 

2  To use up to #499, the embedded macro option is required. 
3  When 0 or a negative value is set, the memory common to paths is 

not used. 

4  When the option for embedded macro is effective and the addition 

of custom macro common variables is disabled (bit 6 (NCV) of 
parameter No.8135 is 1), #150 to #199 can not be used but this 
parameter should be set the number which includes #150 to #199. 

 

6037 

 

Number of custom macro variables common between each path (for #500 to #999) 

 

 

[Input type]  Parameter input 

 

[Data type]  Word 

[Valid data range]  0 to 500 

When the memory common to paths is used, this parameter sets the number of custom 
macro common variables to be shared (custom macro variables common to paths). 
Common variables #500 to #999 may be shared. Ensure that the maximum number of 
usable macro common variables is not exceeded. 
 

Example 

 

When 50 is set in parameter No. 6037 

 

#500 to #549: Shared by all paths 

#550 to #599: Used by each path independently 

 

NOTE 

1  When the adding custom macro common variables is enabled (bit 

6(NCV) of parameter No.8135 is 0), up to #999 is available. 

2  When 0 or a negative value is set, the memory common to paths is 

not used. 

 

6038 

 

Start G code used to call a custom macro 

 

 

[Input type]  Parameter input 

 

[Data type]  Word path 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2063 - 

[Valid data range]  -9999 to 9999 

 

6039 

 

Start program number of a custom macro called by G code 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word path 

[Valid data range]  1 to 9999 

 

6040 

 

Number of G codes used to call custom macros 

 

 

[Input type]  Parameter input 

 

[Data type]  Word path 

[Valid data range]  0 to 255 

Set this parameter to define multiple custom macro calls using G codes at a time. With G 
codes as many as the value set in parameter No. 6040 starting with the G code set in 
parameter No. 6038, the custom macros of program numbers as many as the value set in 
parameter No. 6040 starting with the program number set in parameter No. 6039 can be 
called. Set 0 in parameter No. 6040 to disable this mode of calling. 
If a negative value is set in parameter No. 6038, the modal call mode is entered. Whether 
the modal call is equivalent to G66 or G66.1 depends on bit 3 (MGE) of parameter No. 
6007. 

 

[Example]  When parameter No. 6038 = 900, parameter No. 6039 = 1000, and parameter No. 6040 = 

100 are set, a set of 100 custom macro calls (simple calls) is defined as follows: 
G900 

 O1000 

G901 

 O1001 

G902 

 O1002 

  : 
G999 

 O1099 

When the setting of parameter No. 6038 is changed to -900, the same set of custom macro 
calls (modal calls) is defined. 
 

NOTE 

1  When the following conditions are satisfied, all calls using these 

parameters are disabled: 
1)  When a value not within the specifiable range is set in each 

parameter 

2)  (Value of parameter No. 6039 + value of parameter No. 6040 - 

1) > 9999 

2  The specification of a mixture of simple calls and modal calls is not 

allowed. 

3  If a range of G codes set by these parameters duplicate G codes 

specified in parameters Nos. 6050 to 6059, the calls specified by 
parameters Nos. 6050 to 6059 are made preferentially. 

 

6041 

 

Start G code with a decimal point used to call a custom macro 

 

 

[Input type]  Parameter input 

 

[Data type]  Word path 

[Valid data range]  -999 to 999 

 

6042 

 

Start program number of a custom macro called by G code with a decimal point 

 

 

[Input type]  Parameter input 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2064 - 

 

[Data type]  2-word path 

[Valid data range]  1 to 9999 

 

6043 

 

Number of G codes with a decimal point used to call custom macros 

 

 

[Input type]  Parameter input 

 

[Data type]  Word path 

[Valid data range]  0 to 255 

Set this parameter to define multiple custom macro calls using G codes with a decimal 
point at a time. With G codes with a decimal point as many as the value set in parameter 
No. 6043 starting with the G code with a decimal point set in parameter No. 6041, the 
custom macros of program numbers as many as the value set in parameter No. 6043 
starting with the program number set in parameter No. 6042 can be called. Set 0 in 
parameter No. 6043 to disable this mode of calling. 
If a negative value is set in parameter No. 6041, the modal call mode is entered. Whether 
the modal call is equivalent to G66 or G66.1 depends on bit 3 (MGE) of parameter No. 
6007. 

 

[Example]  When parameter No. 6041 = 900, parameter No. 6042 = 2000, and parameter No. 6043 = 

100 are set, a set of 100 custom macro calls (simple calls) is defined as follows: 
G90.0 

 O2000 

G90.1 

 O2001 

G90.2 

 O2002 

  : 
G99.9 

 O2099 

When the setting of parameter No. 6041 is changed to -900, the same set of custom macro 
calls (modal calls) is defined. 
 

NOTE 

1  When the following conditions are satisfied, all calls using these 

parameters are disabled: 
1)  When a value not within the specifiable range is set in each 

parameter 

2)  (Value of parameter No. 6042 + value of parameter No. 6043 - 

1) > 9999 

3)  When bit 0 (DPG) of parameter No. 6007 = 0 (to disable calls 

using G codes with a decimal point) 

2  The specification of a mixture of simple calls and modal calls is not 

allowed. 

3  If a range of G codes set by these parameters duplicate G codes 

specified in parameters Nos. 6060 to 6069, the calls specified by 
parameters Nos. 6060 to 6069 are made preferentially. 

 

6044 

 

Start M code used to call a subprogram 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word path 

[Valid data range]  3 to 99999999 

 

6045 

 

Start program number of a subprogram called by M code 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word path 

[Valid data range]  1 to 9999 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2065 - 

 

6046 

 

Number of M codes used to call subprograms (number of subprograms called by M codes) 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word path 

[Valid data range]  0 to 32767 

Set this parameter to define multiple subprogram calls using M codes at a time. With M 
codes as many as the value set in parameter No. 6046 starting with the M code set in 
parameter No. 6044, the subprograms of program numbers as many as the value set in 
parameter No. 6046 starting with the program number set in 6045 can be called. Set 0 in 
parameter No. 6046 to disable this mode of calling. 

 

[Example]  When parameter No. 6044 = 80000000, parameter No. 6045 = 3000, and parameter No. 

6046 = 100 are set, a set of 100 subprogram calls is defined as follows: 
M80000000 

 O3000 

M80000001 

 O3001 

M80000002 

 O3002 

  : 
M80000099 

 O3099 

 

NOTE 

1  When the following conditions are satisfied, all calls using these 

parameters are disabled: 
1)  When a value not within the specifiable range is set in each 

parameter 

2)  (Value of parameter No. 6045 + value of parameter No. 6046 - 

1) > 9999 

2  If a range of M codes set by these parameters duplicate M codes 

specified in parameters Nos. 6071 to 6079, the calls specified by 
parameters Nos. 6071 to 6079 are made preferentially. 

 

6047 

 

Start M code used to call a custom macro 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word path 

[Valid data range]  3 to 99999999 

 

6048 

 

Start program number of a custom macro called by M code 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word path 

[Valid data range]  1 to 9999 

 

6049 

 

Number of M codes used to call custom macros (number of custom macros called by M codes) 

 

 

[Input type]  Parameter input 

 

[Data type]  2-word path 

[Valid data range]  0 to 32767 

Set this parameter to define multiple custom macro calls using M codes at a time. With M 
codes as many as the value set in parameter No. 6049 starting with the M code set in 
parameter No. 6047, the custom macros of program numbers as many as the value set in 
parameter No. 6049 starting with the program number set in parameter No. 6048 can be 
called. Set 0 in parameter No. 6049 to disable this mode of calling. 

 

 

 

 

 

 

 

Content      ..     261      262      263      264     ..