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

 

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

 

Search            copyright infringement  

 

 

 

 

 

 

 

 

 

 

 

Content      ..     260      261      262      263     ..

 

 

 

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

 

 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2050 - 

 

#1  MGO

  When a GOTO statement for specifying custom macro control is executed, from the start 

of the program to 20 sequence numbers of executed block: 
0: 

A high-speed branch is not executed. 

1: 

A high-speed branch is executed. 

 

 

#2  HMC

  A custom macro is executed: 

0: 

At a normal speed. 

1: 

At a high-speed. 

 

NOTE 

 

This parameter is Automatic setting parameter. For details, refer to 
the appendix "Automatic setting / Initial setting parameter" in this 
manual. 

 

 

#3  V15

  As system variable numbers for tool offset: 

0 :  The standard system variable numbers for the Series 16 are used. 
1 :  The same system variable numbers as those used for the Series 15 are used. 
The tables indicate the system variables for tool offset numbers 1 to 999. The values for 
tool offset numbers 1 to 200 can be read from or assigned to the system variables in 
parentheses. 
 

 

System variable number 

V15 = 0 

V15 = 1 

Tool length 

offset 

Geometry offset value 

#11001 to #11999 

(#2201 to #2400) 

#10001 to #10999 

(#2001 to #2200) 

Wear offset value 

#10001 to #10999 

(#2001 to #2200) 

#11001 to #11999 

(#2201 to #2400) 

Tool radius 

offset 

Geometry offset value 

#13001 to #13999 

#12001 to #12999 

Wear offset value 

#12001 to #12999 

#13001 to #13999 

 

 

#4  HGO

  When a GOTO statement in a custom macro control command is executed, a high-speed 

branch to the 30 sequence numbers immediately before the executed statement is:   
0: 

Not made. 

1: 

Made. 

 

 

#5  SBM

  Custom macro statement 

0: 

Not stop the single block 

1: 

Stops the single block 

If you want to disable the single blocks in custom macro statements using system variable 
#3003, set this parameter to 0. If this parameter is set to 1, the single blocks in custom 
macro statements cannot be disabled using system variable #3003. To control single 
blocks in custom macro statements using system variable #3003, use bit 7 (SBV) of 
parameter No. 6000. 
 

 

#7  SBV

  Custom macro statement 

0: 

Not stop the single block 

1: 

By system variable # 3003, single block stop control is enabled / disabled 

 

Bit 5 (SBM) of parameter No. 6000 

Bit 7 (SBV) of 

parameter No. 

6000 

Disables single block stop. 

Enables single block stop. (With 
variable #3003, single block stop 
cannot be enabled/disabled. Single 
block stop is enabled at all times.) 

Enables single block stop. (With 
variable #3003, single block stop 
can be enabled/disabled.) 

 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2051 - 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6001 

 

 

CCV 

TCS 

CRO 

PV5 

 

PRT 

MIF 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

 

#0  MIF

  The custom macro interface signals are based on: 

0: 

Standard specification. 

 

(The signals UI000 to UI015, UO000 to UO015, and UO100 to UO131 are used.) 

1: 

Extended specification. 

 

(The signals UI000 to UI031, UI100 to UI131, UI200 to UI231, UI300 to UI331, 
UO000 to UO031, UO100 to UO131, UO200 to UO231, and UO300 to UO331 are 
used.) 

 

 

#1  PRT

  Reading zero when data is output using a DPRINT command 

0: 

Outputs a space 

1: 

Outputs no data 

 

 

#3  PV5

  Custom macro common variables: 

0: 

#500 to #549 are output. 

(Note)

 

1: 

#100 to #149 and #500 to 549 are output. 

(Note)

 

 

NOTE 

 

Output variables are as the table according to the combination of 
added options. 

 

 

When the parameter PV5=0 

 

Addition of custom macro common variables 

Disable 

(bit 6 (NCV) of 

parameter No.8135 is 1) 

Enable 

(bit 6 (NCV) of 

parameter No.8135 is 0) 

Option 

“Embedded macro” 

Non 

#500 to #549 

#500 to #999 

Yes 

#500 to #549 

#500 to #999 

 

 

When the parameter PV5=1 

 

Addition of custom macro common variables 

Disable 

(bit 6 (NCV) of 

parameter No.8135 is 1) 

Enable 

(bit 6 (NCV) of 

parameter No.8135 is 0) 

Option 

“Embedded macro” 

Non 

#100 to #149 and 

#500 to #549 

#100 to #199 and 

#500 to #999 

Yes 

#100 to #149, #200 to #499 

and #500 to #549 

#100 to #199, #200 to #499 

and #500 to #999 

 

 

#4  CRO

  ISO code in BPRWT or DPRNT command 

0: 

Outputs only “LF” after data is output 

1: 

Outputs “LF” and “CR” after data is output 

 

 

#5  TCS

  Custom macro (subprogram) 

0: 

Not called using a T code 

1: 

Called using a T code 

 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2052 - 

 

#6  CCV

  Common variables #100 to #149

(NOTE)

 cleared by power-off are: 

0: 

Cleared to <null> by reset 

1: 

Not cleared by reset 

 

NOTE 

 

Cleared variables are as the table according to the combination of 
added options. 

 

 

Addition of custom macro common variables 

Disable 

(bit 6 (NCV) of 

parameter No.8135 is 1) 

Enable 

(bit 6 (NCV) of 

parameter No.8135 is 0) 

Option 

“Embedded macro” 

Non 

#100 to #149 

#100 to #199 

Yes 

#100 to #149 and 

#200 to #499 

#100 to #199 and 

#200 to #499 

 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6004 

 

 

 

 

 

 

VHD 

 

NAT 

 

 

 

D15 

 

 

 

 

NAT 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

 

#0  NAT

  The results of the custom macro functions ATAN (with 2 arguments) and ASIN are 

specified as follows: 
0: 

The result of ATAN is 0 to 360.0. 

 

The result of ASIN is 270.0 to 0 to 90.0. 

1: 

The result of ATAN is -180.0 to 0 to 180.0. 

 

The result of ASIN is -90.0 to 0 to 90.0. 

 

 

#2  VHD

  With system variables #5121 to #5140: 

0: 

The tool offset value (geometry offset value) in the block currently being executed is 
read. (This parameter is valid only when tool geometry/tool wear compensation 
memories are available.) 

1: 

An interrupt travel distance based on manual handle interrupt is read. 

 

 

#5  D15

  When tool compensation memory C is used, for reading or writing tool offset values (for 

up to offset number 200) for D code (tool radius), the same system variables, #2401 
through #2800, as Series 15 are: 
0: 

Not used. 

1: 

Used. 

 
When bit 3 (V15) of parameter No. 6000 is set to 1 

D code 

Compensation 

number 

Geometry 

Wear 

Variable 

number 

Variable name 

Variable 

number 

Variable name 

#2401 

[#_OFSDG[1]] 

#2601 

[#_OFSDW[1]] 

#2402 

[#_OFSDG[2]] 

#2602 

[#_OFSDW[2]] 

#2403 

[#_OFSDG[3]] 

#2603 

[#_OFSDW[3]] 

199 

#2599 

[#_OFSDG[199]] 

#2799 

[#_OFSDW[199]] 

200 

#2600 

[#_OFSDG[200]] 

#2800 

[#_OFSDW[200]] 

 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2053 - 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6005 

 

 

 

 

AXM 

 

 

 

 

 

 

 

 

AXM 

 

 

 

 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

 

#4  AXM

  Bit 4 (MSV) of parameter No.6019 and bit 4 (TSV) of parameter No.6021 are : 

0: 

valid only during coordinate system shift type compensation. 

1: 

valid both during coordinate system shift type compensation  and axis movement 
type compensation. 

 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6007 

 

 

 

 

CVA 

MGE 

BCS 

SCS 

DPG 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

 

#0  DPG

  Specifies whether to allow G codes with a decimal point to be called. 

0: 

Do not allow. 

1: 

Allow. 

 

 

#1  SCS

  Specifies whether to call subprograms with S codes. 

0: 

Do not call with S codes. 

1: 

Call with S codes. 

 

 

#2  BCS

  Specifies whether to call subprograms with the second auxiliary function codes. 

0: 

Do not call with the second auxiliary function codes. 

1: 

Call with the second auxiliary function codes. 

 

 

#3  MGE

  Specifies whether a G code modal call is made. 

0: 

Make a call for each block (equivalent to G66.1). 

1: 

Make a call after movement (equivalent to G66). 

 

 

#4  CVA

  The format for macro call arguments is specified as follows: 

0: 

Arguments are passed in NC format without modifications. 

1: 

Arguments are converted to macro format then passed. 

[Example] 
 

When “G65 P_ X10 ;” is specified, the value in local variable #24 in the calling 
program is set as follows: 

Command 

CVA=0 

CVA=1 

#24 

0.01 

0.01 

ADP[#24] 

10.0 

0.01 

 

NOTE 

 

External operations are the same unless the ADP function is used. 

 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6008 

 

IJK 

GMP 

ADD 

ISO 

KOP 

 

MCA 

F16 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2054 - 

 

#0  F16

  The precision of operation is based on: 

0: 

New specification. 

1: 

FS16

i

 compatible specification. 

 

 

#1  MCA

  A macro alarm specification based on system variable #3000 is selected as follows: 

0: 

An alarm number obtained by adding 3000 to a value assigned to variable #3000 and 
the corresponding message are displayed. (A value from 0 to 200 can be assigned to 
variable #3000.) 

1: 

A value assigned to variable #3000 and the corresponding message are displayed. (A 
value from 0 to 4095 can be assigned to variable #3000.) 

[Example] 
 

Execution of #3000=1 (ALARM MESSAGE); 

 

When bit 1 (MCA) of parameter No. 6008 is set to 0: 
 

The alarm screen displays "MC 3001 ALARM MESSAGE". 

 

When bit 1 (MCA) of parameter No. 6008 is set to 1: 
 

The alarm screen displays "MC0001 ALARM MESSAGE". 

 

 

#3  KOP

  When the NC is reset in the state where the line is made open by POPEN: 

0: 

Communication continues, and the line is left open. 

1: 

Communication stops, and the line is closed. 

 

 

#4  ISO

  0: 

When the EIA code is used, the bit patterns of codes specified instead of [, ], #, *, 
=, ?, @, &, and _ are set in parameters Nos. 6010 to 6018. 

1: 

When the ISO/ASCII code is used, the bit patters of codes specified instead of [, ], #, 
*, =, ?, @, &, and _ are set in parameters Nos. 6010 to 6018. 

 

 

#5  ADD

  When the number of digits in the integer part, a, in the format specification [a,b] of the 

DPRNT statement is less than the number of digits in the integer part of an output 
variable value: 
0: 

The specified number of digits only are output, with the unspecified digits discarded. 

1: 

An alarm for excessive digits is issued. 

 

 

#6  GMP

  The calling of M, S, T, a second auxiliary function code, or a particular code during the 

calling of a G code, and the calling of a G code during the calling of M, S, T, a second 
auxiliary function code, or particular code are:   
0: 

Not allowed. (They are executed as an ordinary G, M, S, T, second auxiliary 
function code, and NC address.) 

1: 

Allowed. 

 

 

#7  IJK

  For addresses I, J, and K specified as arguments: 

0: 

Argument specification I or II is automatically determined. 

1: 

Argument specification I is always used. 

 

Example 

 

When K_J_I_ is specified: 
-  When this parameter is set to 0: 

Argument specification II is used and K=#6, J=#8, and I=#10 
are specified. 

-  When this parameter is set to1: 

Argument specification I is used and I=#4, J=#5, and K=#6 are 
specified regardless of the specification order. 
(Argument specification II cannot be used.) 

 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2055 - 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6009 

 

 

 

 

 

 

MAA 

 

MSM 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

 

#0  MSM

  When an M code or M codes specified for a macro call or macro calls (multiple macro 

call specification) are not at the beginning of the block: 
0: 

Alarm PS0127”DUPLICATE NC,MACRO STATEMENT” is issued. 

1: 

The macro or macros are called based on the M code or M codes. All addresses 
specified in the same block are used as arguments. (Special Macro Call using M 
code) 

 

NOTE 

1  When MSM is set to 1 and an M code specified for a macro call is 

not at the beginning of the block, argument specification II cannot 
be used. 

2  When MSM is set to 1 and an M code specified for a macro call is 

not at the beginning of the block, the number of repetitions (L) 
cannot be used. 

 

 

#2  MAA

  When a Macro Call using M code or Special Macro Call using M code are executed: 

0: 

Address G does not become an argument.   
The addresses that can be used as arguments are as shown in the tables below. 

 

- Usual Macro Call 

Address 

Variable   

number 

 

Address 

Variable   

number 

 

Address 

Variable   

number 

#1 

 

#5 

 

#19 

#2 

 

#6 

 

#20 

#3 

 

*2 

 

#21 

#7 

 

#13 

*3

 

 

#22 

#8 

  M(Call code) 

*4 

 

#23 

#9 

 

#14 

*5

 

 

#24 

*1 

 

#16 

 

#25 

#11 

 

#17 

 

#26 

#4 

 

#18 

 

 

 

 

*1: Address G can not command. If address G is commanded, alarm PS0129“USE 
'G' AS ARGUMENT ” occurs. 

 

*2: Address L is a number of times in which the macro call is repeated. 

 

*3: Address M other than call code is passed to variable #13. 

 

*4: Address M for call code does not become an argument. 

 

*5: Address N is passed to variable #14. 

 

12. PROGRAM COMMAND

 

 

B-64693EN-1/01

 

- 2056 - 

 

- Special Macro Call 

Address 

Variable   

number 

 

Address 

Variable   

number 

 

Address 

Variable   

number 

#1 

 

#5 

 

#19 

#2 

 

#6 

 

#20 

#3 

 

*2 

 

#21 

#7 

 

#13 

*3

 

 

#22 

#8 

  M(Call code) 

*4 

 

#23 

#9 

 

#14 

*5

 

 

#24 

*1 

 

#16 

 

#25 

#11 

 

#17 

 

#26 

#4 

 

#18 

 

 

 

 

*1: Even if address G is commanded, PS alarm does not occur. And address G does 
   not become an argument. 

 

*2: Address L does not become a number of times in which the macro call is 
   repeated, and does not become an argument. 

 

*3: Address M other than call code is passed to variable #13. 

 

*4: Address M for call code does not become an argument. 

 

*5: Address N is passed to variable #14, and becomes a sequence number. 

 
1: 

Address G becomes an argument.The addresses that can be used as arguments are as 
shown in the tables below. 

 

- Usual Macro Call 

Address 

Variable   

number 

 

Address 

Variable   

number 

 

Address 

Variable   

number 

#1 

 

#5 

 

#19 

#2 

 

#6 

 

#20 

#3 

 

*2 

 

#21 

#7 

 

#13 

*3

 

 

#22 

#8 

  M(Call code) 

*4 

 

#23 

#9 

 

#14 

*5

 

 

#24 

#28 to #32 

*1

 

 

#16 

 

#25 

#11 

 

#17 

 

#26 

#4 

 

#18 

 

 

 

 

*1: The first five addresses G in ascending order of G code groups are used as 
   arguments and passed to variables #28 to #32. 

 

*2: Address L is a number of times in which the macro call is repeated. 

 

*3: Address M other than call code is passed to variable #13. 

 

*4: Address M for call code does not become an argument. 

 

*5: Address N is passed to variable #14. 

 

B-64693EN-1/01

 

 

12. PROGRAM COMMAND

 

- 2057 - 

 

- Special Macro Call 

Address 

Variable   

number 

 

Address 

Variable   

number 

 

Address 

Variable   

number 

#1 

 

#5 

 

#19 

#2 

 

#6 

 

#20 

#3 

 

#12 

*2

 

 

#21 

#7 

 

#13 

*3

 

 

#22 

#8 

  M(Call code) 

#27 

*4

 

 

#23 

#9 

 

#14 

*5

 

 

#24 

#28 to #32 

*1

 

 

#16 

 

#25 

#11 

 

#17 

 

#26 

#4 

 

#18 

 

 

 

 

*1: The first five addresses G in ascending order of G code groups are used as 
   arguments and passed to variables #28 to #32. 

 

*2: Address L is passed to variable #12, and does not become a number of times in 
   which the macro call is repeated. 

 

*3: Address M other than call code is passed to variable #13. 

 

*4: Address M for call code is passed to variable #27. 

 

*5: Address N is passed to variable #14, and becomes a sequence number. 

 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6010 

 

*7 

*6 

*5 

*4 

*3 

*2 

*1 

*0 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6011 

 

=7 

=6 

=5 

=4 

=3 

=2 

=1 

=0 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6012 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6013 

 

[7 

[6 

[5 

[4 

[3 

[2 

[1 

[0 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6014 

 

]7 

]6 

]5 

]4 

]3 

]2 

]1 

]0 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6015 

 

?7 

?6 

?5 

?4 

?3 

?2 

?1 

?0 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6016 

 

@7 

@6 

@5 

@4 

@3 

@2 

@1 

@0 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6017 

 

&7 

&6 

&5 

&4 

&3 

&2 

&1 

&0 

 

 

#7 

#6 

#5 

#4 

#3 

#2 

#1 

#0 

6018 

 

_7 

_6 

_5 

_4 

_3 

_2 

_1 

_0 

 

 

[Input type]  Parameter input 

 

[Data type]  Bit path 

 

 

*0 to *7 :  The bit pattern of the EIA or ISO/ASCII code indicating * is set. 

 

=0 to =7 :  The bit pattern of the EIA or ISO/ASCII code indicating = is set. 

 

#0 to #7 :  The bit pattern of the EIA or ISO/ASCII code indicating # is set. 

 

[0 to [7 :  The bit pattern of the EIA or ISO/ASCII code indicating [ is set. 

 

]0 to ]7 :  The bit pattern of the EIA or ISO/ASCII code indicating ] is set. 

 

?0 to ?7 :  The bit pattern of the EIA or ISO/ASCII code indicating ? is set. 

 

@0 to @7 :  The bit pattern of the EIA or ISO/ASCII code indicating @ is set. 

 

&0 to &7 :  The bit pattern of the EIA or ISO/ASCII code indicating & is set. 

 

_0 to _7 :  The bit pattern of the EIA or ISO/ASCII code indicating _ is set. 

0: 

A corresponding bit is 0. 

1: 

A corresponding bit is 1. 

 

 

 

 

 

 

 

 

Content      ..     260      261      262      263     ..