SERIES 0i/16/18/20/21 Macro Compiler/Macro Executor Programming manual Page 1

Programming manual
FANUC Series 16
FANUC Series 18
FANUC Series 20
FANUC Series 21
PROGRAMMING MANUAL
B–61803E–1/10
FANUC LTD, 1991
(Macro Compiler/Macro Executor)
FANUC Series 0i

Contents Summary of SERIES 0i/16/18/20/21 Macro Compiler/Macro Executor Programming manual

  • Page 1FANUC Series 0i FANUC Series 16 FANUC Series 18 FANUC Series 20 FANUC Series 21 (Macro Compiler/Macro Executor) PROGRAMMING MANUAL B–61803E–1/10  FANUC LTD, 1991
  • Page 2The export of this product is subject to the authorization of the government of the country from where the product is exported. – No part of this manual may be reproduced in any form. – All specifications and designs are subject to change without notice. In this manual we have tried as much as possi
  • Page 3B–61803E–1/10 Table of Contents PROGRAMMING 1. OUTLINE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2. MACRO COMPILER AND MACRO EXECUTOR . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2.1 MACRO COMPILER . . . . .
  • Page 4Table of Contents B–61803E–1/10 5.6 DISPLAYING VARIABLES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 6. FUNCTIONS OF THE MACRO EXECUTOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 6.1 SCREEN DISPLAY FUNCTION .
  • Page 5B–61803E–1/10 Table of Contents 6.10 READING AND PRESETTING RELATIVE COORDINATES BY CONVERSATIONAL MACRO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105 6.10.1 Reading Relative Coordinates . . . . . . . . . . . . . . . . . . . . . . . . .
  • Page 6Table of Contents B–61803E–1/10 7. SERIES 16/18 2–PATH DEDICATED CONTROL FUNCTION . . . . . . . . . . . . . . . . 160 7.1 COMMON CONVERSATIONAL MACRO SCREEN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 7.2 COMMON CONVERSATIONAL MACRO VARIABLE . . . . . . . . . . . . . .
  • Page 7B–61803E–1/10 Table of Contents C. DATA ON MACRO COMPILER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 243 C.1 ARGUMENT TRANSFER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 244 C.2 SUMMARY OF
  • Page 8Table of Contents B–61803E–1/10 E.6.6 Display of a Window by a User Program, Depending on the Cursor Position (Not Supported by Ver.1.) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 393 E.6.6.1 Overview . . . . . . . . . . . . .
  • Page 9B–61803E–1/10 Table of Contents G.2 DISPLAY COLOR SPECIFICATION (G240) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454 G.3 KEY INPUT VARIABLE (#8501) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 454 G.4
  • Page 10Table of Contents B–61803E–1/10 N.6.2 Conversational/Auxiliary Macro Alarms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 507 N.6.3 Graphics Display Screen Erasure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
  • Page 11PROGRAMMIN
  • Page 12
  • Page 13B–61803E–1/10 PROGRAMMING 1. OUTLINE 1 OUTLINE NC programs include those which are prepared by custom macro and very seldom altered and those which may differ from one another according to relevant machining such as part programs. A batch handling of these programs of different characters may cause
  • Page 141. OUTLINE PROGRAMMING B–61803E–1/10 The models covered by this manual, and their abbreviations are : Model name Abbreviation FANUC Series 0i–TA 0i–TA Series 0i–A Series 0 FANUC Series 0i–MA 0i–MA FANUC Series 16–TA 16–TA FANUC Series 16–MA 16–MA FANUC Series 16–TTA 16–TTA FANUC Series 16–GCA 16–GCA
  • Page 15B–61803E–1/10 PROGRAMMING 1. OUTLINE Model name Abbreviation FANUC Series 18–TC 18–TC FANUC Series 18–MC 18–MC FANUC Series 18–PC 18–PC Series 18–C FANUC Series 180–TC 180–TC FANUC Series 180–MC 180–MC FANUC Series 180–PC 180–PC FANUC Series 18i–TA 18i–TA FANUC Series 18i–MA 18i–MA Series 18 FANUC S
  • Page 161. OUTLINE PROGRAMMING B–61803E–1/10 In this manual, the models may be classified as indicated below. System Model name 0i–TA, 16–TA, 16–TTA, 16–GCA, 16–TB, 160–TB, 16–TC, 160–TC, 16i–TA, 16i–TB, 160i–TA, 18–TA, Lathe system T series 18–TTA, 18–GCA, 18–TB, 180–TB, 18–TC, 180–TC, 18i–TA, 18i–TB, 180i
  • Page 172. MACRO COMPILER AND MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 2 MACRO COMPILER AND MACRO EXECUTOR 7
  • Page 182. MACRO COMPILER AND MACRO EXECETOR PROGRAMMING B–61803E–1/10 2.1 MACRO COMPILER NOTE For the macro compiler for other than Series 16/18–A, refer to the ”FAPT MACRO COMPILER (For Personal Computer) PROGRAMMING MANUAL (B–66102E).” (When reading the manual, skip Section 2.1.) The NC program is conver
  • Page 192. MACRO COMPILER AND MACRO B–61803E–1/10 PROGRAMMING EXECUTOR P–G Mate P–G Mate F MACRO compiler A08B–0036–J760 (Series 16–A) A08B–0036–J740 (Series 18–A) F executor Special floppy A08B–0036–J761 disk (Series 16–A) (prepared at A08B–0036–J741 customer’s end) (Series 18–A) ROM module F 128Kbyte ! A0
  • Page 202. MACRO COMPILER AND MACRO EXECETOR PROGRAMMING B–61803E–1/10 2.1.3 Compiling Procedure (Main Flow) (START) Source program preparation * If a compiling error occurs, Compile correct a source program and parameter setting re-start compiling. Test compile Loading in RAM ROM write module Check perform
  • Page 212. MACRO COMPILER AND MACRO B–61803E–1/10 PROGRAMMING EXECUTOR D PROGRAM = ”IN” D FD = ”OK_ @File Name or ”OK _: File No. ”_” : Space (c) Progran correction within memory D ” = ON, = OFF, = OFF” D PROGRAM = ”Oxxxx” D Correct a program, using a screen editor. (5) Set
  • Page 222. MACRO COMPILER AND MACRO EXECETOR PROGRAMMING B–61803E–1/10 (9) ROM writing 1. For no initial screen, press a few times. 2. ”R0” (start) 3. ” = OFF, F9 = ON” : (FA writer selection) 4. ” = ON ” : Displays a source program during compiling. ” = OFF” : Displays only program No. dur
  • Page 232. MACRO COMPILER AND MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Job Keyboard input Major Command (enter NL at end of Notes Minor classification command) classification Delet the data from line number1 Deletion n whole lines DELETE Line number1 [,line number2] to line number2 d character d , { n Delet
  • Page 242. MACRO COMPILER AND MACRO EXECETOR PROGRAMMING B–61803E–1/10 The communication parameters for transferring the file in the ROM format (referred to below as loading) depend on the parameters of the Series 16/18–A. The parameters must be set before loading. If the CAN and PROG keys are pressed simul
  • Page 252. MACRO COMPILER AND MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (4) On the Series 16/18-TTA, however, the following data transfer selection screen is displayed instead of the above title. Pressing address key M on the screen selects tool post 1 and pressing address key S selects tool post 2. Pressing
  • Page 262. MACRO COMPILER AND MACRO EXECETOR PROGRAMMING B–61803E–1/10 (6) When the RAM module has been initialized, the following loading screen is displayed: MACRO COMPILER/EXECUTOR P–CODE LOADER (I/O PARAMETERS) (DATA TRANSFER) I/O CHANNEL = 0 (MAPPING – 1MB) I/O UNIT = 0 BAUDRATE =11 STOP BIT = 1 INPUT
  • Page 272. MACRO COMPILER AND MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (8) When the Series 16/18–A receives data, the following data reception state is displayed. The transmitted data and its address are displayed. Mapping is merely a term indicating how much RAM the created P-CODE program and executor occu
  • Page 282. MACRO COMPILER AND MACRO EXECETOR PROGRAMMING B–61803E–1/10 (9) When loading terminates normally, the following message is displayed. Pressing numeric key 1 starts the Series 16/18–A and enables the executor to execute the macros loaded in the RAM. MACRO COMPILER/EXECUTOR P–CODE LOADER (I/O PARAM
  • Page 292. MACRO COMPILER AND MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (10) If an error occurs during loading, the following message is displayed. To perform loading again, press the CAN key to retry from the beginning, that is, initializing the RAM in step (5). If an error such as a parameter setting error
  • Page 302. MACRO COMPILER AND MACRO EXECETOR PROGRAMMING B–61803E–1/10 (4) Whether P-code data is transmitted together with the executor depends on the operation of the macro compiler even when parameter PCODE for loading by overwriting (bit 1 of parameter 8701) is 1. (5) When data is transferred for the fi
  • Page 312. MACRO COMPILER AND MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Table 1 Setting I/O device 0 RS-232C 1 FANUC CASSETTE ADAPTOR 1 (FANUC CASSETTE B1/B2) 2 FANUC CASSETTE ADAPTOR 3 (FANUC CASSETTE F1) 3 FANUC PROGRAM FILE MATE FANUC FA CARD ADAPTOR FANUC FLOOPY CASSETTE ADAPTOR FANUC SYSTEM P MODEL H 4
  • Page 322. MACRO COMPILER AND MACRO EXECETOR PROGRAMMING B–61803E–1/10 No. #7 #6 #5 #4 #3 #2 #1 #0 0121 ASI SB2 Data type: Bits This parameter must be set when I/O CHANNEL = 2. The meanings of the bits correspond to those of the bits in parameter 101. No. 0122 Number of the I/O device (when I/O CHANNEL = 2)
  • Page 332. MACRO COMPILER AND MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 2.2 The macro executor controls the execution of the P-CODE program created by the macro compiler. MACRO EXECUTOR CONTROLS The P-CODE program (execution macro) stored in the ROM can be called and executed by specifying G, M, T or origina
  • Page 343. EXECUTION MACRO PROGRAMMING B–61803E–1/10 3 EXECUTION MACRO Only a registered P-CODE program cannot be executed. It is called from the user program by G, M, T code, or specified code by parameter setting, and executed. In case of macro call, argument designation is possible, and it is compared as
  • Page 35B–61803E–1/10 PROGRAMMING 3. EXECUTION MACRO 3.1 To call a P-CODE program from the user program, the codes shown in Table 3.1 are used. CALL CODE AND PROGRAM NO. Table 3.1 Codes for Calling P–CODE program Common variables in Program num- Codes for call Type of call which a specified Parameters to be
  • Page 363. EXECUTION MACRO PROGRAMMING B–61803E–1/10 (2) Differences between subprogram calls and macro calls (a) Subprogram calls – T code subprogram call – M code subprogram call – Special code subprogram call – Range–specified M code subprogram call A P–CODE program call is made after a command other tha
  • Page 37B–61803E–1/10 PROGRAMMING 3. EXECUTION MACRO 3.1.1 The P-CODE program 09000 registered to the ROM can be called by a Calling Subprogram T code. O9000 by T code The commanded T code is stored as an argument in the common variable #149. All the local variables will become . N_ G_ X_ Y _ T < tt
  • Page 383. EXECUTION MACRO PROGRAMMING B–61803E–1/10 3.1.4 By commanding G codes which is designated by compilation parameter Calling Macros (No. 9013 to 9022), the macro programs ”O9010-O9019” registered to the ROM can be called. O9010–9019 by G Code Local variables without argument designation are
  • Page 39B–61803E–1/10 PROGRAMMING 3. EXECUTION MACRO 3.1.7 By setting compile parameter TMACC(No.9005#7) to 1, program of Calling a Macro Using a No.9008 registered to ROM can be called macros by specifying a T code in a user program. T Code All addresses specified in this block are used as arguments except
  • Page 403. EXECUTION MACRO PROGRAMMING B–61803E–1/10 3.1.9 The code specified by compilation parameters 9045 to 9047 can be used Calling Macros with a G to call the programs registered in ROM. Code by Specifying the Specifying call arguments is the same as calling macros with G code (3.1.4). Range Specify t
  • Page 41B–61803E–1/10 PROGRAMMING 3. EXECUTION MACRO When G code system A is used in the lathe system (T/TT), whether the axis addresses are called with an absolute or incremental command are informed to variable 33. Variable No. Address #1 to #26 Usual argument address (Argument designation 1) #27 Specifie
  • Page 423. EXECUTION MACRO PROGRAMMING B–61803E–1/10 3.2 Argument designation is possible when calling a call. It can be referred to as a local variable at the P-CODE program side. Argument ARGUMENT specification I and argument specification II are possible. DESIGNATION For arguments designation, negative s
  • Page 43B–61803E–1/10 PROGRAMMING 3. EXECUTION MACRO 3.3 Source program of execution macro should be programmed in the same way as for custom macro. But, there are some limits for execution. LIMITATION FOR (1) Macro call EXECUTION MACRO Macro call from an execution macro is executed with ”G65” as the custom
  • Page 443. EXECUTION MACRO PROGRAMMING B–61803E–1/10 (c) One block can accept designation of only one sequence number. Except the program No. ”0” and the optional block skip ”/”, designate a sequence No. at the block head. (d) In T series multiple repetitive canned cycle cannot be executed in the P-CODE pro
  • Page 45B–61803E–1/10 PROGRAMMING 3. EXECUTION MACRO 3.4 If specifying different call instructions in the same block, note the priority of call instructions. PRIORITY OF If specifying different call instructions in the same block, note the priority EXECUTION MACRO of call instructions. INSTRUCTIONS AND (1)
  • Page 463. EXECUTION MACRO PROGRAMMING B–61803E–1/10 Example) If a T code macro call is specified as in G91 X10.0 T1234; a call instruction is executed with T1234, with all other codes being passed as arguments. – Argument specification II (I, J, K, I, J, K, ...) is not available. – Arguments may be only th
  • Page 474. CONVERSATIONAL MACRO FUNCTION B–61803E–1/10 PROGRAMMING AND AUXILIARY MACRO FUNCTION CONVERSATIONAL MACRO FUNCTION AND 4 AUXILIARY MACRO FUNCTION 37
  • Page 484. CONVERSATIONAL MACRO FUNCTION AND AUXILIARY MACRO FUNCTION PROGRAMMING B–61803E–1/10 4.1 The conversational macro function executes a program compiled by the macro compiler independently of the normal NC part program. This CONVERSATIONAL function basically is not affected by operation modes of NC
  • Page 494. CONVERSATIONAL MACRO FUNCTION B–61803E–1/10 PROGRAMMING AND AUXILIARY MACRO FUNCTION The conversational macro function is executed only when the conversational screen is selected with the function key CUSTOM . The conversational macro function executes its macro program whose program No. is the v
  • Page 504. CONVERSATIONAL MACRO FUNCTION AND AUXILIARY MACRO FUNCTION PROGRAMMING B–61803E–1/10 Bad example Good example O1234 ; O1234 ; NO NO Key input ? Key input ? YES YES Key input process Key input process M99 ; M99 ; Program the conversational program so that it will be a cyclic like the PMC ladder pr
  • Page 514. CONVERSATIONAL MACRO FUNCTION B–61803E–1/10 PROGRAMMING AND AUXILIARY MACRO FUNCTION 4.2 The auxiliary macro is always executed regardless of the selection screen while the conversational macro function is executed only when the AUXILIARY MACRO FUNCTION conversational macro screen is selected in
  • Page 524. CONVERSATIONAL MACRO FUNCTION AND AUXILIARY MACRO FUNCTION PROGRAMMING B–61803E–1/10 4.3 The following control codes are prepared for execution control. EXECUTION M98 : Subprogram call CONTROL CODE M99 : Subprogram end (1) Subprogram call (M98) M98 Pp ; A macro subprogram specified by address P i
  • Page 534. CONVERSATIONAL MACRO FUNCTION B–61803E–1/10 PROGRAMMING AND AUXILIARY MACRO FUNCTION 4.4 Three screens are available for execution of the conversational macro. These screens are selected by pressing the function key CUSTOM. The CONVERSATIONAL three screens correspond with those for the FANUC Seri
  • Page 544. CONVERSATIONAL MACRO FUNCTION AND AUXILIARY MACRO FUNCTION PROGRAMMING B–61803E–1/10 4.5 The conversational macro and auxiliary macro must be programmed so that M99 of the main program is executed. NOTES The conversational macro, auxiliary macro and standard CNC display (POS screen, etc.) are exe
  • Page 55B–61803E–1/10 PROGRAMMING 5. MACRO VARIABLES 5 MACRO VARIABLES 45
  • Page 565. MACRO VARIABLES PROGRAMMING B–61803E–1/10 5.1 MACRO VARIABLES Conversational Executable mac- Variable No. User program Auxiliary macro macro ro Local variable #1 to #33 (#99) Ę ∆ Ę (NOTE 1) Common variable #100 and up Ę Ę #500 and up (Common variable) P-CODE variable #10000 and up  Ę Extended P-
  • Page 57B–61803E–1/10 PROGRAMMING 5. MACRO VARIABLES 5.4 It is possible to use optional quantity of the P-CODE variables starting with #10000 on 100-pc. basis. P–CODE VARIABLES #10000– A 100 times as many as the numerical value preset on the compiling parameter No. 9037 will be the usable quantity of P-CODE
  • Page 585. MACRO VARIABLES PROGRAMMING B–61803E–1/10 5.5 The variables of the expanded P-CODE which start from #20000 can be used for the optional number, if the capacity of tape memory is 160m to VARIABLES OF 5120m. This variable can be selected for numbers with floating decimal EXPANDED P–CODE points, the
  • Page 59B–61803E–1/10 PROGRAMMING 5. MACRO VARIABLES NOTE 1 For Series 21-TB (control unit A), expanded P-CODE (#20000 or later) cannot be used. 2 For Series 16i/18i/21i/0i, expanded P–CODE variables can be used even if the capacity of tape memory is up to 160m. The maximum number of expanded P–CODE variabl
  • Page 605. MACRO VARIABLES PROGRAMMING B–61803E–1/10 5.6 The variables used for P-CODE programs, such as local variables, common variables, P-CODE variables, and extended P-CODE variables, DISPLAYING VARIABLES can be displayed by pressing the function key OFFSET SETTING several times. The values of these va
  • Page 616. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6 FUNCTIONS OF THE MACRO EXECUTOR Table 6 (a) Functions (1/2) Conversa- Execut- No. Function Outline Auxiliary tional able 6.1 Screen display function Controls the display of the conversational 1 Screen display control macro screen. Ę 2 Fu
  • Page 626. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 Table 6 (a) Functions (2/2) Conversa- Execut- No. Function Outline Auxiliary tional able 6.21 Use of offset memory and extended system Reference data in offset memory and the Ę Ę Ę variables in the workpiece coordinate sys- values of exten
  • Page 636. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Table 6 (b) Functions of the Macro Executor and the Associated G Codes and Macro Variables (1/2) Associated G Associated macro vari- Conversa- Executa- No. Function Auxiliary code able tional ble 6.1 Screen display function G01, G02, G03,
  • Page 646. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 Table 6 (b) Functions of the Macro Executor and the Associated G Codes and Macro Variables (2/2) Associated G Associated macro vari- Conversa- Executa- No. Function Auxiliary code able tional ble 6.23 Interlock along each axis  #8600, #
  • Page 656. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.1 In this section, the terms twelve–soft–key type and seven–soft–key type represent the following display units: SCREEN DISPLAY Twelve–soft–key type: Those display units with twelve (10 + 2) soft FUNCTION keys (such as the 14” CRT, 10” L
  • Page 666. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 As for the graphic coordinates system, too, the horizontal direction is the X coordinate and the vertical direction is the Y coordinate. Specify the X coordinates from -160 to 159(-320 to 319) from left to right and the Y coordinates from
  • Page 676. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 1 6 7 0123456789012 to 678901234567890123456789 0 1 2 3 4 5 6 7 8 19 20 21 22 23 24 0123456789012 to 678901234567890123456789 1 6 7 Fig.6.1.1(c) Character Coordinate System (twelve soft keys) Instruct the following graphic coordinates of t
  • Page 686. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 X coordinate of the graphic coordinates system Y : Y coordinate of the character coordinates system, Y coordinate of the graphic coordinates system I : X coordinate at the center of the circular graph of the graphic coordinates system J :
  • Page 696. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR The triple size is 3 times as wide as and 2 times as long as the normal size. The characters which can be displayed with the triple size characters are the alphabet, numbers, minus marks, decimal points and blanks. No other characters can
  • Page 706. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 NOTE When a blink is specified, the display is energized or deenergized according to the timer condition when the display is commanded. Therefore, when the display is not repeated, it will be kept energized or deenergized. Command the numb
  • Page 716. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR In this case, one block of the sequence No. 20 in the program No. 8000 will be executed. In the above example, ”ABCXYZ” will be executed. And address P executes the specified block after the process of the corresponding block is finished.
  • Page 726. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 (3) Displayed color specification (G240) G240 Pp Ll ; Colors of segments and character strings specified by conversational program can be designated. P = 0 .. Black = 1 .. Red=–1 Red (highlights) = 2 .. Green=–2 Green (highlights) = 3 .. Y
  • Page 736. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Y Q=0 Q=1 X Q=4 Q=2 Q=3 [No. of quadrants] Command the center coordinate of the arc with the absolute coordinate at the address I and J. Command the number of quadrant (0 - 4) of the arc at the address Q. The arc will be graphed with the l
  • Page 746. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 Corrent Incorrent NOTE To use the painting command on the high-resolution 9” monochrome CRT, set HRGC of compilation parameter 9004 to 1 to make the CRT enter the intensity modulation mode. (2) Examples (a) When p = 8 is specified The inne
  • Page 756. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR G240P1; G244P0; Blue G242X0Y0; G01X100; Y100; Red Blue X0; Y0; G240P4; G242X50Y50; G01X150; Y150; X50; Y50; G206P0X110Y110; 6.1.4 Graphic cursor can be displayed in the conversational macro. Graphic Cursor Function (Command Format) G249 Pp
  • Page 766. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 (Ii,Jj) (Xx,Yy) (Xx,Yy) (Ii,Jj) (Command format) G204 X_ Y_ I_ J_ [P ]; X: X coordinate of the start of a rectangle Y: Y coordinate of the start of a rectangle I : X coordinate of the end of a rectangle J : Y coordinate of the end of a rec
  • Page 776. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR G244 P0; G240 P2; G204 X50 Y50 I-200 J150 P1; –320 0 319 199 Painting is Boundary line is green. ~ ~ –200 (High resolution mode) NOTE Be sure to specify full line when you specify painting. Painting is started from the point determined to
  • Page 786. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.1.7 Data for a twelve soft keys can be displayed on the user-1 screen for a Displaying Seven Soft conversational macro screen on the twelve soft keys by setting US19W of compilation parameter (bit 5 of parameter 9006). (This screen is Ke
  • Page 796. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.1.8 Writing a desired value in parameter 8510 enables displaying any Function Screen Control function screen. Reading the value of parameter 8510 enables checking which function screen is currently displayed. Function The following table
  • Page 806. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.2 The address functions are the functions to return the address of PMC or the contents of the parameter as the function values. However, as the ADDRESS address functions cannot be written, it is impossible to describe them on FUNCTIONS t
  • Page 816. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.3 READING AND (1) PMC address write control WRITING A PMC Data of one, two, or four bytes can be written when address L is specified with control code G310. ADDRESS G310 Dd Qq Lx; G310 Rr Qq Lx; G310 Cr Qq Lx; G310 Kr Qq Lx; These comman
  • Page 826. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 The address function can read data the specified number of bytes at a time. However, the following must be noted: As the address function handles and converts the read data as a signed value (in two’s complement), the read data may be chan
  • Page 836. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.4 READER PUNCHER INTERFACE CONTROL BY CONVERSATIONAL MACRO 6.4.1 The conversation macro function allows the reader/puncher interface to Outline be controlled. The control is performed by combining the following four control codes. When t
  • Page 846. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 No control of 1 byte reading (G335) can be carried out when the reader/puncher interface circuit is opened in the transmission control mode (End code = 8). There is an end code to check to see if the commanded control code has been properl
  • Page 856. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Example) Device and transmission control of channel 2 (DC2/DC4 automatic control) Baud rate = 4800 b/s, Stop bit = 2, Even parity, ISO code output G330 P22 B10 S22 C2 ; IF [#8539 NE 0] GOTO 900 ; Open processing end N900 error processing :
  • Page 866. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 (4) Data transmission (G336) G336 transmission data; The following commands of transmission data are available: (c...) → String command 1 (*hh..*) → String command 2 Ff → Data format command Zz → Zero suppress command Dd → Data command Pp
  • Page 876. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (1) Macro Variable Data Input (G337) G337 Pp ; p : the head variable number which mounts the macro variable (omissible) A macro variable data, which is input from reader puncher interface that opened with the read control mode, is read and
  • Page 886. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 (2) Outputting Macro Variable Values(G338) G338 Pp Qq Ff Zz ; A specified macro variable is changed into a prescribed tape format and output from reader puncher interface which opened with the transmit control mode. Output code is selected
  • Page 896. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR F–9.9: Automatic decimal point output If F8.3 or the like is specified, data having six or more digits to the left of the decimal point and data having four or more decimal places cannot be output altogether. If F–9.9 is specified as the o
  • Page 906. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 G338 P10000 Q10 F8.3 Z1 At the beginning, % (EOR) R11;⇒ is output. Then the data of IF[#8539NE0]GOTO999; #10000 to #10009 is output without variable numbers. At the end, % (EOR) is not output. G338 P11000 Q20 F8.3 Z1 At the beginning and e
  • Page 916. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR G330 Pp Bb ... ; G337 P100 Q10 ;⇒ The data of the first ten vari- IF[#8539 NE 99]GOTO888; ables is read into #100 to #109. (After the data is normally read, #8539 is set to 99.) G337 P15000 Q20 R99 ;⇒ The data of twenty variables IF[#8539
  • Page 926. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 NOTE 1 A file name is fixed to 17 characters. Be sure to use 17 characters. 2 Specify the file name with alphanumerics and space. Alarm 8 will be generated if code 32(space) is specified at the head of file name. (b) Head call by the file
  • Page 936. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR NOTE 1 A file name is fixed to 17 characters. Be sure to fill spaces(code 32), if the file name is less than 17 characters. 2 Specify a file name with alphanumeric and spaces. Alarm 8 will be generated if the 32(space) code is specifyed at
  • Page 946. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 5. Delete a file 6. Close the line The same function can be instructed several times in one openning. (a) Reading directory information G339 P1 Ff Ll Ss ; File directory information can be read to a specified variable by specifying ”G339 P
  • Page 956. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR #8539 Contents 5 Line trouble, Framing error, parity error 6 No option for line function 7 Line use 8 Error in parameter G335 instructed with transmit control mode G336 instructed with read control mode 9 Data format error 10 Error on file
  • Page 966. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.5 MEMORY CARD CONTROL BY MACRO EXECUTOR 6.5.1 A memory card can be controlled by the conversational/auxiliary macro function of the macro executor for Series 16i/18i/21i. Outline 6.5.2 With this function, file input/output, macro variabl
  • Page 976. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (Example) G330 P24 L100 ; IF [#8539 NE 0 ] GOTO900 ; End of opening N900 Error ; (1) Memory card read control If P14 is specified when opening a memory card, the read control mode is selected. If a desired file is specified with address L
  • Page 986. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 NOTE 1 The length of string for a file name is fixed to 12 characters. If a file name is shorter than 12 characters, be sure to fill the remaining spaces with code 32 (space). 2 Specify a file name and extension with alphanumerics. If code
  • Page 996. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR If Z is set to 0, no sign is displayed. (By default, a modal value is used.) (3) Address D specifies the numeric data to be output. (4) Address P specifies the number of a block in the program specified by #8509. (5) Address K specifies a
  • Page 1006. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 G337 P16000 R99 ; =>Data of the remaining IF [#8539 NE 0] GOTO888 ; variables is read into #16000 to #16009. (If the data is normally read, #8539 is set to 0.) G331 ; The tape format of macro variable data is as shown below: LF N_ P_ LF P_
  • Page 1016. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.5.2.6 Outputting Macro G338 Pp Qq Ff Zz Rr ; Variable Data (G338) (1) (2) (3) (4) (5) In the write control mode, this command outputs specified macro variable data in a specified tape format. (1) Address P specifies the head variable num
  • Page 1026. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 During data output, EDIT blinks in the bottom right part of the screen. During data output, the screen cannot be switched. NOTE 1 G338 is a one–shot G code. 2 If an illegal variable number is specified, end code 115 is returned, stopping t
  • Page 1036. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.5.2.7 If control code G339 is specified, the directory information on a memory Controlling Directory card can be read or deleted. Information (G339) To use this function, open the memory card in the directory information control mode. Th
  • Page 1046. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.5.2.8 If any of G330 to G339 is specified, check the end code. The close End Codes (#8539) processing has no end code because the processing always terminates normally. #8539 Contents 0 Normal termination 1 The circuit is not open. 6 A n
  • Page 1056. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.6 REFERENCING AND READING NC PROGRAM WITH CONVERSATIONAL MACRO 6.6.1 Recording, deleting and changing of NC part program is possible by the Outline conversational macro function. Control the NC program with program number and block numbe
  • Page 1066. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.6.2 Recording of a New G320 ; Program Specify the program number to #8520 and instruct G320 to record a new program. (Example) To record O0002, #8520=2 ; G320 ; IF[#8529 NE 0] GOTO 900 ; Recording end N900 ; Error Conduct similar process
  • Page 1076. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR #8521=3 ; #8522=100 ; G325 ; IF[#8529 NE 0] GOTO900 ; End of reading N900 ; Error The following program data is loaded from #100 which is specified by variable number #8522, when the above instruction is executed.; #100=7 Address ”G” #101=
  • Page 1086. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 #8522 = number-of-the-variable-into-which-the-block-is-read ; G325 ; IF[#8529 EQ 253]GOTO100 ; Conventional processing N100 G328 ; Character-type analysis (2) Reading a specified block coded in characters (G328) When entering this command,
  • Page 1096. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR G92 X0. M08 ; G90 G00 X10.5 M05 ; #8520=4 ; #8521=2 ; #8522=100 ; #100=7 ; #101=1 ; #102=24 ; #103=20.5 ; #104=6 ; #105=1000 ; #106=20.7 ; G326 P7 ; IF[#8529 NE 0] GOTO900 ; End of writing N900 ; Error If the above instruction is executed,
  • Page 1106. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 = 2 A1.23 = 3 A1.235 * = 4 A1.2346 * = 5 A1.23457 * = 6 A1.234568 * = 7 A1.2345678 * The data less than the specified digits is rounded off. When #8523 is 0, auto setting is conducted by the system conditions (mm input/inch input, 0.1µm in
  • Page 1116. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Error The block of block No.3 of program O0004 is deleted by the above instruction. 6.6.7 When writing an NC program prepared by a conversational macro onto Condensation of the NC’s tape memory, the program can be condensed to extend memor
  • Page 1126. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.6.10 Address Code Table Address Code Address Code Address Code A 1 B 2 C 3 D 4 E 5 F 6 G 7 H 8 I 9 J 10 K 11 L 12 M 13 N 14 O 15 P 16 Q 17 R 18 S 19 T 20 U 21 V 22 W 23 X 24 Y 25 Z 26 EOB 27 EOR 28 / 29 Statement Decimal Hexadecimal Stat
  • Page 1136. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.7 Continuous input by cursor and page key is possible with the conversational macro key input control (#8501). CONTINUOUS INPUT BY CURSOR AND (Address code table) PAGE KEY #8501 can be read with the following timing if the cursor and pag
  • Page 1146. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.8 O, N number appearance can be erased on the CUSTOM screen. MASKING OF O, N O, N numbers does not appear when compile parameter ”ONMSK=1” NUMBER (No.9003#0). APPEARANCE 6.9 Cutting distance and cutting time can be read and preset with t
  • Page 1156. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.10 Relative coordinates can be read and preset with the conversational macro. READING AND PRESETTING RELATIVE COORDINATES BY CONVERSATIONAL MACRO 6.10.1 Reading of relative coordinates can be informed by the window function. Reading Rela
  • Page 1166. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.11 KEY–INPUT AND (1) Key-input control variable #8501 You can read out the key input with #8501. The following is the DATA–INPUT correspondence of the key input and #8501. CONTROL Display unit with seven soft keys Key input Value Key inp
  • Page 1176. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR When the key-input control variable #8501 is key-input to the value other than 0, the data input line will return to the initial state. It is possible to read out the input numeric value and address with the numeric data variable #8503 and
  • Page 1186. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.12 It will be possible to display the cursor by setting the value at the cursor control variable #8505. CURSOR CONTROL #8505= 0 .. Cursor erase = 1 .. Cursor display #8505 value is 0 at power ON. It will be possible to display the cursor
  • Page 1196. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.13 PROCESSING (1) Reference of array type P-CODE variables for conversational macro ARRAY TYPE In conversational macro, two or three-dimensional array type P–CODE VARIABLES P-CODE variables (#10000...) can be referred. Set a proper value
  • Page 1206. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 (2) Processing array type P-CODE variables This is a function which controls processing of array type variable or of variable string when P-CODE variables are used in the conversational macro. 1) clearing array type number, variable string
  • Page 1216. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR #10012=#10002 ; G315 P3 K3 ; has the following disposition #10012=#10002 ; #10011=#10001 ; #10010=#10000 ; 111
  • Page 1226. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.14 The torque limit override can be modified to the specified value by setting values to the #8621 to #8628. TORQUE LIMIT CONTROL #8621 1st axis #8625 5th axis #8622 2nd axis #8626 6th axis #8623 3rd axis #8627 7th axis #8624 4th axis #8
  • Page 1236. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.15 Data from the A/D converter can be read by the conversational macro. DATA READING OF The A/D converted data from channels 1 to 4 corresponds to macro A/D CONVERTER variables #8631 to #8634. (Series 16/18) When reading operation is per
  • Page 1246. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.16 On the conversational macro screen, a key-in line is displayed at a point whose X and Y coordinates are 0 and 20 respectively. Up to 32 characters KEY–IN LINE (20 lines when CNC parameter no. 3105#2 = 1) can be input. The prompt CONTR
  • Page 1256. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.17 The conversational and auxiliary macros can read the CNC background editing status with a variable. READING THE #8526: Background editing status BACKGROUND 0 : The background editing is halted. EDITING STATUS 1 : The background editin
  • Page 1266. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.22 PMC AXIS CONTROL 6.22.1 The conversational macro can control the PMC control axis through the PMC Axis Control by the PMC axis control interface. The seven control codes listed below are used for this purpose. The PMC control axis to
  • Page 1276. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (c) Dwell command (G344) G344 Pxxx: The dwell command is issued to the PMC control axis. Specify the dwell time after address P. (d) Reference position return command (G345) G345; The reference position return command is issued to the PMC
  • Page 1286. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 (b) Miscellaneous function command A miscellaneous function command can be issued by G346. The conversational macro, however, cannot control the miscellaneous function completion signal, EFIN. Use the PMC to control it. (c) Contention for
  • Page 1296. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (b) Control command variable (#8711, #8721, #8731 and #8741) When a control command is specified in #8711 or #8721, the axis control command is written into the corresponding axis control command signal (G143, G155, G167, G179). (G143, G15
  • Page 1306. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.22.3 In ”PMC axis control” with the macro executor, if only simple move PMC Axis Control commands are to be issued according to some event, move commands just need to be supplied regardless of whether they are commands with G Example cod
  • Page 1316. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (3) Check after the completion of movement To determine whether the tool has moved to the specified position on the PMC axis properly, check whether the target coordinates have been reached after the completion of movement. If the tool is
  • Page 1326. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.23 The interlock control variable for a single axis direction, #8600, determines the direction for which interlocks are provided. Variable INTERLOCK #8601 indicates the axis and direction of a movement when the SKIP FUNCTION FOR AXIS sig
  • Page 1336. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.24 This function allows the signals of the system variables of the P-CODE program (UI: #1000 to #1015, #1032, UO: #1100 to #1115, #1132) to FUNCTION FOR be different from those of the user program. SEPARATING UI When the program is compi
  • Page 1346. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.25 (1) Referencing common valiables REFERENCING An execution, conversational, or auxiliary P-CODE program can reference and write common variables (#100 to #199, #500 to #999) COMMON used by a user program for custom macro B. With variab
  • Page 1356. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.27 If compilation parameter CNCHG (No. 9006, #4) is set to 1, the execution LEAVING THE of a conversational macro can be continued when the CUSTOM key is pressed SCREEN while the conversational macro screen is displayed. If the parameter
  • Page 1366. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.28 When compilation parameter PWSR (No. 9002, #6) is set to 1, the function for finding a P-CODE work number can be used. FUNCTION FOR FINDING A P–CODE When an operation program created in the program editing memory makes a G-, M-, or T-
  • Page 1376. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.29 FUNCTION FOR CALLING A USER PROGRAM BY AN EXECUTION MACRO 6.29.1 Using the M code specified by compilation parameter, a P-CODE Function program (execution macro program) called by a G, M, or T code from a user program can call another
  • Page 1386. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 (User program) (Execution macro program) O0001; O9010; G100 X10. Z20. ; : M02 : Mmm P1000; : O1000; M99; : G200 ; : M99; O9011; : Mmm P1001; : O1001; M99; User program cannnot be : called doubly. M99; (3) Multiple calls D The number of mul
  • Page 1396. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (User program) (Execution macro program) O0001; O9010; * Not added to the number of G100 X10. Z20. ; : multiple calls. M02 : Mmm P1000; : O1000; M99; : G200 ; : M99; O9011; * Added to the number of multipel : calls. Mmm P1001; : M99; Addit
  • Page 1406. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.30 OPERATION FUNCTIONS 6.30.1 The following operation functions can be used: Overview Sine (SIN) Arcsine (ASIN) Cosine (COS) Arccosine (ACOS) Tangent (TAN) Arctangent (ATAN) Square root (SQRT) Absolute value (ABS) Rounding up or down to
  • Page 1416. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.31 FUNCTION FOR IDENTIFYING THE PRESSED MDI KEY USING A CONVERSATIONAL MACRO 6.31.1 A control variable has been added so that the MDI number corresponding to the MDI key being pressed can be read using a conversational macro. Overview Th
  • Page 1426. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 (00H – 7FH) 0 1 2 3 4 5 6 7 0 Space 0 @ P 1 1 A Q 2 2 B R 3 # 3 C S 4 4 D T 5 5 E U 6 & 6 F V 7 7 G W 8 ( 8 H X 9 ) 9 I Y A ; * J Z (EOB) B + K [ C ’ L D – = M ] E . N F / ? O 132
  • Page 1436. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (80H – FFH) 8 9 A B C D E F 0 Reset F0 1 F1 2 F2 3 F3 4 Shift Insert F4 5 Delete F5 6 CAN Alter F6 7 F7 8 Cur→ Input F8 9 Cur← F9 A Cur↓ Help B Cur↑ C D E Page↓ FR F Page↑ FL 133
  • Page 1446. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.32 WINDOW FUNCTION 6.32.1 The window function can now reference system information. Overview Conversational macro variable No.8998: System information ID number No.8999: System information Method of using the function By setting a desire
  • Page 1456. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.32.2 Referenced System Information Referenced System Information and ID No. List (1/4) ID No. Information Contents of Information 1 Alarm check flag 5 Overheat alarm 6 Spindle alarm No.750 to 763(767) 11 P/S Alarm number 12 P/S Alarm num
  • Page 1466. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 Referenced Systen Information and ID No. List (2/4) ID No. Information Contents of Information 81 1st axis of APC alarm No.301 to 308 82 2nd axis of APC alarm No.301 to 308 83 3rd axis of APC alarm No.301 to 308 84 4th axis of APC alarm No
  • Page 1476. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Referenced Systen Information and ID No. List (3/4) ID No. Information Contents of Information 411 Ist axis servo motor load current value 412 2nd axis servo motor load current value 413 3rd axis servo motor load current value 414 Servo mo
  • Page 1486. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 Referenced Systen Information and ID No. List (4/4) ID No. Information Contents of Information 8035 System configuration PMC edition 2nd digit 8036 PMC edition 3rd digit 8040 Ladder version 4th digit 8041 Ladder version 3rd digit 8042 Ladd
  • Page 1496. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.32.3 Alarm information Detailed Description of Axis/coordinate position information Reference System Miscellaneous information including the total number of machined parts Information Diagnosis information System configuration informatio
  • Page 1506. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 #f #e #d #c #b #a #9 #8 #7 #6 #5 #4 #3 #2 #1 #0 Output information Bit (0001h) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 Bit (0002h) 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 2 Bit (0004h) 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 4 Bit (0008h) 0 0 0 0 0 0 0 0 0 0 0
  • Page 1516. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (b) Overheat alarms A one-byte data, ID No. 5, representing a number from 0 to 255 indicates which overheat alarm was issued. Example : When bit 3 is 1 (on), 8 is output. When bit 5 is 1 (on), 32 is output. When bit 3 and bit 5 are 1 (on),
  • Page 1526. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 Spindle Alarm Table ID No. Bit information Alarm No. Meaning Bit (0001h) 749 S-SPINDLE LSI ERROR This alarm is issued if the spindle control unit of a system with serial spindles is not started normally when the power is turned on. Four ca
  • Page 1536. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (e) Overtravel alarms Each of ID Nos. 20 to 27 corresponds to an alarm number. The Information of each ID number indicates the axis in which the alarm occurred. For one-byte data, see Section 6.31.3.(1)(b). For the meaning of each bit, see
  • Page 1546. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 Servo Alarm Table ID No. Bit information Alarm No. Meaning Bit (01h) 400 Overload signal is turned on. Ready signal (DRDY) of servo Bit (02h) 401 amplifier turned off. Bit (04h)   Bit (08h)   The ready signal (MCON) i
  • Page 1556. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Servo Alarm Table ID No. Bit information Alarm No. Meaning Bit (01h) 411 Position error during movement is larger than set value. Bit (02h) 413 Error register contents exceeds "2**31. Bit (04h) 415 A speed larger than 511875 detection unit
  • Page 1566. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 (h) Absolute pulse coder (APC) alarms First check ID No. 70. If bit 0 is on, check the following: ID No. 71 to 78 ID No. 81 to 88 ID No. 90 to 98 Each of ID No. 71 to 78 corresponds to an axis; bit 5, if on, indicates that alarm No. 300 ha
  • Page 1576. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR ID No. Bit information Alarm No. Meaning APC communication error Bit (01h) 301 (Data transmission fault) APC over time error (Data Bit (02h) 302 transmission fault) APC framing error (Data Bit (04h) 303 transmission fault) APC Parity error
  • Page 1586. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 (2) Detailed information of Axis and Coordinate Axis and Coordinate Detailed Information ID No. Meaning 100 No. of CNC controlled axes 101 No. of PMC controlled axes 102 No. of axes 110 1st axis relative coordinate value 111 2nd axis relat
  • Page 1596. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Details of the automatic screen ON/OFF state ID No. State information Description 320 0 The automatic screen clear state is OFF 1 The automatic screen clear state is ON (*) i seires MODEL A (Edition 11 or later) i seires MODEL B (Edition 0
  • Page 1606. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 #7 #6 #5 #4 #3 #2 #1 #0 Output information Bit (01h) 0 0 0 0 0 0 0 1 1 Bit (02h) 0 0 0 0 0 0 1 0 2 Bit (04h) 0 0 0 0 0 1 0 0 4 Bit (08h) 0 0 0 0 1 0 0 0 8 Bit (10h) 0 0 0 1 0 0 0 0 16 Bit (20h) 0 0 1 0 0 0 0 0 32 Bit (40h) 0 1 0 0 0 0 0 0
  • Page 1616. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Diagnose Detailed Information ID No. Bit Information Meaning Bit (01h) Emergency stop or servo alarm. Bit (02h)  Bit (04h)  Bit (08h) Reset key is pressed. Bit (10h) Reset & rewind turned on. Bit (20h) Emergency stop Bit (40h
  • Page 1626. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 For the meanings of ID Nos. 8200 to 8211, see the system configuration information table. (Series 16/18) Con- Hexa- Deci- Con- Hexa- Deci- Con- Hexa- Deci- tents decimal mal tents decimal mal tents decimal mal A 41 65 N 4e 78 0 30 48 B 42
  • Page 1636. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR Series 16/18–B ID No. Bit information Status of module mounted Display unit 8200 0 14” CRT screen module mounted 14” color CRT 9.5” color LCD 1 9” CRT screen module mounted 9” CRT 8.4” color LCD 2 10” CRT screen module mounted 5 None 7.2”
  • Page 1646. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 Series 16i/18i/21i–A/C ID No. Bit information Status of module mounted Display unit 8200 2 10” CRT screen module mounted 7.2” monochrome 3 None 7.2” monochrome 6 None 9.5” monochrome 7 None 9.5” monochrome 10 None 8.4” color 14 None 10.4”
  • Page 1656. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.33 External characters are character patterns generated and registered by the user. With the Series 20, the user can register up to 40 external characters EXTERNAL for display using conversational macros. This function allows the user to
  • Page 1666. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 G319 Ppppp Qqq ; pppp : Number of the first variable of a row of 25 variables defining a character pattern qq : External character number (00 to 39) (External memory is as large as 40 characters, and qq specifies a charact
  • Page 1676. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR (2) Displaying external characters By executing a G code in the format below, an external character stored in external character memory can be displayed. G243 Xx Yy (“80qq”) ; Xx, Yy : Specifies a display start position. X
  • Page 1686. FUNCTIONS OF THE MACRO EXECUTOR PROGRAMMING B–61803E–1/10 6.34 EXECUTION MACRO CALL MASK FUNCTION 6.34.1 An execution macro call can be masked by using the executor parameter Function or macro variable. The following execution macro calls can be masked: Axis address call T code macro call T code
  • Page 1696. FUNCTIONS OF THE MACRO B–61803E–1/10 PROGRAMMING EXECUTOR 6.34.2 Macro Variables Variable Function Conversa- Auxiliary Execution number tional #8690 Execution macro call R/W R/W R/W mask function variable 1 #8691 Execution macro call R/W R/W R/W mask function variable 2 R: Read enabled/W: Write e
  • Page 1707. Series 16/18 2–PATH DEDICATED CONTROL FUNCTION PROGRAMMING B–61803E–1/10 7 Series 16/18 2-PATH DEDICATED CONTROL FUNCTION The macro libraries for path 1 are shared as libraries for single–path control. The macro libraries for path 2 are dedicated. The macro libraries listed below are for the T se
  • Page 1717. Series 16/18 2–PATH DEDICATED B–61803E–1/10 PROGRAMMING CONTROL FUNCTION 7.1 COMMON When macro executor ROM are mounted on tool posts 1 and 2, the CONVERSATIONAL conversational macro of the macro executor of tool post 1 can be executed, regardless of which tool post selects the conversational mac
  • Page 1727. Series 16/18 2–PATH DEDICATED CONTROL FUNCTION PROGRAMMING B–61803E–1/10 7.2 When the macro executor ROM are mounted on tool posts 1 and 2, the heads of tool posts 1 and 2 can share conversational macro variables COMMON (#10000 and on and #20000 and on). When this function is validated, the CONVE
  • Page 1738. FUNCTIONS FOR STOPPING A B–61803E–1/10 PROGRAMMING CONVERSATIONAL MACRO FUNCTIONS FOR STOPPING A CONVERSATIONAL 8 MACRO The macro executor can stop the execution of a conversational macro program at a particular program and sequence specified by parameters. Parameters of the macro executor 1) No.
  • Page 174
  • Page 175APPENDI
  • Page 176
  • Page 177B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE A MACRO PROGRAM EXAMPLE 167
  • Page 178A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.1 EXAMPLE–1: CIRCULAR CUTTING INPUT AND EXECUTION X–axis CIRCURAR CUTTING O0010 N0790 Circular Cutting Display Layout: I (RADIUS) = The cursor is moved, using the cursor key , F (FEED) = or soft keys “RADIUS”, “FEED” or “OFSNUM”. D (OFS NUM) = Key in
  • Page 179B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00200 N102 (V141 --- TIMER ) ; 00210 N103 (V142 --- KEY CONTROL DATA -V8501- ) ; 00220 N104 (V143 --- STRINGS DATA OFFSET ) ; 00230 N105 (V144 --- KEY INPUT DATA -V8503- ) ; 00240 N105 (V145 --- ADDRESS INPUT DATA -V8504- ) ; 00250 N107 (V146 --- CURSO
  • Page 180A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.1.2 Source Program for Input Control 00010 O0010 ; 00020 G202 P3 ; 00030 G243 X0 Y2 A1 B0 (KEY TEST -- HIT ANY KEY --) ; 00040 #143=100 ; 00050 M98 P0011 ; 00060 N001 #8502=2 ; 00070 #142=#8501 ; 00080 IF [#142 EQ 0] GOTO 99 ; 00090 #101=#142 ; 00100
  • Page 181B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE A.1.3 Source Program for Cursor Control 00010 O0020 ; 00020 G202 P3 ; 00030 #8505=0 ; 00040 #8502=0 ; 00050 N008 G243 X0 Y1 (CURSOR TEST –– MOVE CURSOR ––) ; 00060 G243 X0 Y3 (A) ; 00070 G243 X0 Y4 (B) ; 00080 G243 X0 Y5 (C) ; 00090 G243 X0 Y6 (D) ; 00
  • Page 182A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.1.4 Source Program for Character Display 00010 O0030 ; 00020 G202 P3 ; 00030 #8502=0 ; 00040 #8505=0 ; 00050 #143=100 ; 00060 M98 P0011 ; 00070 N001 G243 X0 Y2 A1 B0 K200 ; 00080 X0 Y2 (DISPLAY TEST) ; 00090 G243 X0 Y4 A1 B0 K200 ; 00100 #141=100 ; 0
  • Page 183B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00400 M98 P0031 ; 00410 G243 X0 Y4 A1 B0 K200 ; 00420 X0 Y4 (DATA DISPLAY TEST 1234.567) ; 00430 #100=1234.567 ; 00440 G243 X0 Y6 F8.3 Z0 K200 ; 00450 X0 Y6 (F8.3 ) D#100 ; 00460 #141=300 ; 00470 M98 P0031 ; 00480 G243 X0 Y6 F8.3 Z1 K200 ; 00490 #141=1
  • Page 184A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00840 ; 00010 O0031 ; 00020 N001 IF [#141 LT 0] GOTO 99 ; 00030 #141=#141–1 ; 00040 GOTO 1 ; 00050 N099 #142=#8501 ; 00060 IF [#142 EQ 16] GOTO 97 ; 00070 M99 ; 00080 N097 M99 P98 ; 00090 ; 00100 ; 00110 ; 00120 ; 00130 ; 00010 O0032 ; 00020 G243 X0 Y4
  • Page 185B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00010 O0033 ; 00020 N010 (ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789) ; 00030 N020 (FANUC TECHNICAL TRAINING CENTER) ; 00040 N100 ( ) ; 00050 N101 ( ) ; 00060 N102 ( ) ; 00070 N103 ( ) ; 00080 N104 ( END ) ; 00090 N200 (RADIUS) ; 00100 N201 ( FEED ) ; 00110
  • Page 186A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.1.5 Source Program for Address Variables 00010 O0040 ; 00020 G202 P3 ; 00030 #143=100 ; 00040 M98 P0011 ; 00050 N008 G243 X0 Y2 A1 B0 K520 ; 00060 G243 X0 Y2 A1 B0 (ADDRESS VARIABLE TEST) ; 00070 #141 =100 ; 00080 M98 P0031 ; 00090 X0 Y4 (ADDRESS G R
  • Page 187B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00400 N099 IF [#142 NE 16] GOTO 97 ; 00410 N098 #8500=1 ; 00420 M99 ; 00430 N097 M99 P8 ; 00440 ; 00450 ; 00460 ; 00470 ; 00480 ; 00010 O0041 ; 00020 #100=0 ; 00030 WHITE [#100 LT 5] DO 1 ; 00040 G310 D699 Q#100 ; 00050 #141=10 ; 00060 M98 P0031 ; 0007
  • Page 188A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.1.6 Source Program for Graphic Display and Circle Cutting 00010 O0050 ; 00020 G202 P3 ; 00030 #8506=13 ; 00040 #8507=2 ; 00050 #8505=1 ; 00060 #147=0 ; 00070 G202 P3 ; 00080 M98 P0052 ; 00090 M98 P0053 ; 00100 M98 P0051 ; 00110 N001 #8502=1 ; 00120 #
  • Page 189B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00400 N010 M98 P0051 ; 00410 N099 IF [#142 NE 16] GOTO 97 ; 00420 N098 #8500=1 ; 00430 M99 ; 00440 N097 M99 P1 ; 00450 ; 00460 ; 00470 ; 00480 ; 00490 ; 00010 O0051 ; 00020 #8507=#147+2 ; 00030 #100=0 ; 00040 WHILE [#100 LT 3] DO 1 ; 00050 G243 X14 Y[#
  • Page 190A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00010 O0053 ; 00020 G244 P0 ; 00030 G242 X80 Y20 ; 00040 G01 X110 Y50 ; 00050 G02 X140 Y20 I110 J20 Q0 ; 00060 G02 X140 Y20 I80 J20 Q4 ; 00070 G02 X110 Y-10 I110 J20 Q0 ; 00080 G01 X80 Y20 ; 00090 G244 P2 ; 00100 G242 X80 Y20 ; 00110 G01 Y–70 ; 00120 G
  • Page 191B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE A.1.7 Execution Macro 00020 G40 G49 G80 ; 00030 #1=#500/2 ; 00040 G91 G42 G01 X#1 Y#1 D#502 F#501 ; 00050 G02 X#1 Y–#1 J–#1 ; 00060 I–#500 ; 00070 X–#1 Y–#1 I–#1 ; 00080 G40 G01 X–#1 Y#1 ; 00090 M99 ; 00100 ; 00110 ; 00120 ; 00130 ; 00140 ; 181
  • Page 192A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.1.8 Flow Chart O0001 (Main program) O0010 (Key input test) (START) (START) Screen clearing Screen clearing Cursor OFF Title display Menu display Soft key display Soft key display Was any data No keyed in? Key input variable Yes reading Key input vari
  • Page 193B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE O0020 (Cursor test) O0030 (Display test) (START) (START) 1 Screen clearing Screen clear Cursor position calculation Cursor OFF Cursor display OFF Cursor display Title display Soft key display M99 Soft key display Title display Counter = 0 Character dis
  • Page 194A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 O0032 (Blink test) O0040 (Address variable test) (START) (START) Title display Screen clear Counter = 200 Title display Soft key display No Counter > 0 ? PMC data read (G121.4 emergency Yes Counter = 200 stop signal) Character display by B1 (Blink) No
  • Page 195B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE O0041 (Data table write test) O0050 (Circular cutting) (START) (START) Counter = 0 Screen clear Cursor pointer initial Write counter value in setting data table No. 699 X=17, Y=2 Cursor display ON Counter +1 Character string display for data Counter >5
  • Page 196A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 2 3 Soft key –2 ? No Soft key –4 ? No Yes Yes Program No. setting Cursor pointer =1 Execution macro start Up Soft key –3 ? No Data display Yes Cursor pointer =2 1 M99 Is cursor " No pressed? Yes 4 Cursor pointer –1 Is cursor # No pressed? Yes Cursor po
  • Page 197B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE O0054 (Execution macro start up) (START) Use external program No. search function. When AUTO mode is selected from the macro, prepare PMC so that the Program No. and external program No. from machine AUTO mode select- side becomes invalid. ing signal o
  • Page 198A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.1.9 (1) O0001 Explanation of 0020 N000 G202 P3 Program Screen erase P1: Character screen, P2: Graphic screen, P3: Character and graphics 0030 #8505=0 Cursor control #8505=0 : Cursor OFF, #8505=1 : Cursor ON 0040 G243 X0 Y0 A1 B0 (SAMPLE PROGRAM) X2 Y
  • Page 199B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 0040 G243 X [ ] Y [ ] P [#143+#100] #143 is a common variable, which is used for Sequence No. offset. #100 is used as a counter, which counts 0 to 4. Here set the head Sequence No. of the character string written in Program No. O0033, using #143, and l
  • Page 200A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 0310 #103 =P [#102*4+1821].1 The contents of parameter specified by P [ ] is read to common variable #103. Here, value of #102 changes from 0 to 2 and parameters 1821, 1825, 1829 are read. 1821.1 Reference counter 1825.1 Loop gain multiply 1829.1 Exces
  • Page 201B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE A.1.10 Program Example for PMC Sequence PN1 MC. A : AUTO mode selecting signal from MACRO MC. S : Cycle start signal from MACRO PN1N MC. A PN1M : External program No. from MACRO PN1N : External program No. from the machine PN1 : External program No. se
  • Page 202A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00010 O0001 ; Main 00020 N000 G202 P3 ; Screen clear 00030 #8505=0 ; Cursor OFF 00040 G243 X0 Y0 A1 B0 (SAMPLE PROGRAM) 00050 X2 Y3 (1 -- KEY TEST) ; 00060 X2 Y5 (2 -- COUSOR TEST) ; Menu display 00070 X2 Y7 (3 -- DISPLAY TEST) ; 00080 X2 Y9 (4 -- ADDR
  • Page 203B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00010 O0010 ; Key test 00020 G202 P3 ; Screen clear 00030 G243 X0 Y2 A1 B0 (KEYTEST -- HIT ANY KEY --) ; Title display 00040 #143=100 ; Soft key display: #143 is displayed at the 00050 M98 P0011 ; head of character sequence No. 00060 N001 #8502=2 Input
  • Page 204A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00010 O0020 ; Cursor test 00020 G202 P3 ; 00030 #8505=0 ; Cursor display none 00040 #8502=0 ; key input none 00050 N008 G243 X0 Y1 (CURSOR TEST -- MOVE CURSOR --) ; Title display 00060 G243 X0 Y3 (A) ; 00070 G243 X0 Y4 (B) ; 00080 G243 X0 Y5 (C) ; 0009
  • Page 205B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00010 O0030 ; Character display test 00020 G202 P3 ; Screen clear 00030 #8502=0 ; Data input invalid 00040 #8505=0 ; Cursor display OFF 00050 #143=100 ; Soft key display 00060 M98 P0011 ; 00070 N001 G243 X0 Y2 A1 B0 K200 ; Partial screen erase 00080 X0
  • Page 206A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00450 X0 Y6 (F8.3 ) D#100 ; 00460 #141=300 ; 00470 M98 P0031 ; 00480 G243 X0 Y6 F8.3 Z1 K200 ; 00490 #141=100 ; 00500 M98 P0031 ; 00510 X0 Y6 (F8.3 ) D#100 ( LEADING ZERO NEG.) ; 00520 #141=300 ; 00530 M98 P0031 ; 00540 G243 X0 Y6 F5.2 K200 ; 00550 #14
  • Page 207B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00010 O0031 ; Timer 00020 N001 IF [#141 LT 0] GOTO 99 ; End when timer value is smaller than –10; 00030 #141=#141-1 ; 00040 GOTO 1 ; 00050 N099 #142=#8501 ; 00060 IF [#142 EQ 16] GOTO 97 ; Return to the menu when the END key 00070 M99 ; is depressed du
  • Page 208A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00010 O0033 ; Display character string data. 00020 N010 (ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789) ; 00030 N020 (FANUC TECHNICAL TRAINING CENTER) ; 00040 N100 ( ) ; ¾Enclose the display character string with parentheses. 00050 N101 ( ) ; 00060 N102 ( ) ; 0
  • Page 209B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00010 O0040 ; Addreess variable test 00020 G202 P3 ; Screen erease 00030 #143=100 ; Soft key display 00040 M98 P0011 ; 00050 N008 G243 X0 Y2 A1 B0 K520 ; Screen partially erased 00060 G243 X0 Y2 A1 B0 (ADDRESS VARIABLE TEST) ; Title display 00070 #141=
  • Page 210A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00450 ; 00460 ; 00470 ; 00480 ; 00010 O0041 ; 00020 #100=0 ; Counter 00030 WHILE [#100 LT 5] DO 1 ; 00040 G310 D699 Q#100 ; Write Q data on the data table specified by D. 00050 #141=10 ; Timer 00060 M98 P0031 ; 00070 #100=#100+1 ; Counter +1 00080 END
  • Page 211B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00010 O0050 ; Circular cutting 00020 G202 P3 ; Screen erased 00030 #8506=13 ; Cursor display X position 00040 #8507=2 ; Cursor display Y position 00050 #8505=1 ; Cursor display ON 00060 #147=0 ; Cursor pointer 00070 G202 P3 ; 00080 M98 P0052 ; Characte
  • Page 212A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 0045 ; 0046 ; 0047 ; 0048 ; 0049 ; 00010 O0051 ; Cursor and data display 00020 #8507=#147+2 ; Cusror and position 00030 #100=0 ; Counter 00040 WHILE {#100 LT 3] DO ! ; 00050 G243 X14 Y[#100+2] Z1 F4.0 D#[500+#100] ; Data is displayed, changing display
  • Page 213B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00010 O0053 ; Graphic display 00020 G244 P0 ; Type of line (solid line) 00030 G242 X80 Y20 ; Drawing start posotion 00040 G01 X110 Y50 ; 00050 G02 X140 Y20 I110 J20 Q0 ; 00060 G02 X140 Y20 I80 J20 Q4 ; 00070 G02 X110 Y-10 I110 J20 Q0 ; 00080 G01 X80 Y2
  • Page 214A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00010 O9010 ; Execution macro for circular cutting 00020 G40 G49 G80 ; 00030 #1=#500/2 ; 00040 G91 G42 G01 X#1 Y#1 D#502 F#501 ; 00050 G02 X#1 Y-#1 J-#1 ; 00060 I-#500 ; 00070 X-#1 Y-#1 I-#1 ; 00080 G40 G01 X-#1 Y#1 ; 00090 M99 ; 00100 ; 00110 ; 00120
  • Page 215B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE A.2 EXAMPLE-2 EXAMPLE FOR KEY INPUT AND CURSOR CONTROL A.2.1 Source program List 00010 O8000 ; 00020 N1 M98 P8011 ; 00030 N9 M98 P9503 ; 00040 IF [#102 EQ 12] GOTO 100 ; 00050 IF [#102 EQ 13] GOTO 200 ; 00060 M99 P9 ; 00070 N100 M98 P8012 ; 00080 N19 M
  • Page 216A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00350 #141 = 0 ; 00360 M98 P9501 ; 00370 N290 M99 P29 ; 00380 N299 M99 P1 ; 00390 ; 00400 ; 00410 ; 00420 ; 00430 ; 00010 O8001 00020 #10000 = 10010 ; 00030 #10001 = 2 ; 00040 #10002 = 10026 ; 00050 #10003 = 2 ; 00060 #10010 = 13 ; 00070 #10011 = 2 ; 0
  • Page 217B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00350 #10039 = 5 ; 00360 #10040 = 1 ; 00370 #10041 = 0 ; 00380 #8500 = 8000 ; 00390 M99 ; 00400 ; 00410 ; 00420 ; 00430 ; 00440 ; 00010 O8011 ; 00020 M98 P9506 ; 00030 G243 X0 Y1 A1 (MACRO EXAMPLE) ; 00040 X2 Y4 A1 (SOFTKEY SELECT) ; 00050 X3 Y6 (1 - E
  • Page 218A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00120 X34 Y16 (END) ; 00130 G243 X14 Y2 F4.0 Z0 D#10050 ; 00140 #140 = 5.2 ; 00150 #141 = 1 ; 00160 #142 = 11 ; 00170 #143 = 4 ; 00180 #144 = 10051 ; 00190 #145 = 7 ; 00200 #146 = -9999 ; 00210 #147 = 1 ; 00220 M98 P9505 ; 00230 #100 = 1 ; 00240 #104 =
  • Page 219B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00220 M98 P9504 ; 00230 #110 = #110 + 1 ; 00240 END 1 ; 00250 #100 = 2 ; 00260 #104 = 0 ; 00270 #105 = 0 ; 00280 #140 = 0 ; 00290 M98 P9502 ; 00300 M99 ; 00310 ; 00320 ; 00330 ; 00340 ; 00350 ; 00360 ; 209
  • Page 220A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.2.2 Specification A.2.2.1 (1) Initial screen Type of Screen X-axis 0 1 MACRO EXAMPLE 2 3 4 SOFTKEY SELECT Y–axis 1 – EXAMPLE A 2 – EXAMPLE B 3 – EXAMPLE C 9 4 – EXAMPLE D 5 – EXAMPLE E 14 [ EX.A ] [ EX.B ] [ EX.C ] [ EX.D ] [ EX.E ] Press CUSTOM key:
  • Page 221B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE (3) Menu-2 (EX.B) X-axis 0 EXAMPLE A 1 2 PROG NO – _9999 3 4 DATA SET1 _9999 _9999 _9999 _9999 DATA SET2 _9999 _9999 _9999 _9999 Y–axis DATA SET3 _9999 _9999 _9999 _9999 DATA SET4 _9999 _9999 _9999 _9999 DATA SET5 _9999 _9999 _9999 _9999 9 14 [ ] [ ] [
  • Page 222A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 (2) Cursor data #10000 10010 #10010 13 2 1 2 10026 2 0 2 3 0 4 1 5 1 6 1 7 0 8 10 9 4 20 0 1 1 2 1 3 7 4 1 5 1 #10026 13 7 2 8 0 9 0 30 1 1 1 2 1 3 0 4 11 5 4 6 6 7 1 8 4 9 5 40 1 1 0 212
  • Page 223B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE (3) Variables used in menu #10050 PROG. NO #10060 PROG. NO (EX. 1) (EX. 2) #10051 DATA 1 #10061 2 ” 2 2 DATA SET 1 3 ” 3 3 4 ” 4 4 5 ” 5 5 6 ” 6 6 ” 2 7 ” 7 7 8 9 70 ” 3 1 2 3 4 ” 4 5 6 7 8 ” 5 9 80 A.2.3 Program Structure INITIAL SCREEN DISPLAY CSNO=1
  • Page 224A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.2.4 Flow Chart 2 START O8000 29 DR3 EX. B Screen display 9 DRI Intial screen display (O8013) (O8011) KEYIN KEYIN Yes Yes KCONT = 16 ? KCONT = 12 ? No No 1 KCONT = 8 ? No Yes M99 KCONT = 13 ? Yes No 2 Data Setting 9 (M99) (N100) 29 1 (M99) O8001 19 EX
  • Page 225B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE A.2.5 Coding (1) Main program 00010 O8000 ; 00020 N1 M98 P8011 ; Initial screen display 00030 N9 M98 P9503 ; KEY IN 00040 IF [#102 EQ 12] GOTO 100 ; Soft key #1, #2 ? 00050 IF [#102 EQ 13] GOTO 200 ; 00060 M99 P9 ; 00070 N100 M98 P8012 ; Screen (EX. A)
  • Page 226A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 (2) Initial screen display (Subprogram) 00010 O8011 ; 00020 M98 P9506 ; 00030 G243 X0 Y1 A3 (MACRO EXAMPLE) ; 00040 X2 Y4 A1 (SOFTKEY SELECT) ; 00050 X3 Y6 (1 - EXAMPLE A) ; 00060 X3 Y7 (2 - EXAMPLE B) ; 00070 X3 Y8 (3 - EXAMPLE C) ; 00080 X3 Y9 (4 - E
  • Page 227B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00190 #145 = 7 ; 00200 #146 = -9999 ; 00210 #147 = 1 ; 00220 M98 P9505 ; 00230 #100 = 1 ; 00240 #104 = 0 ; 00250 #105 = 0 ; 00260 #140 = 0 ; 00270 M98 P9502 ; 00280 M99 ; 00290 ; 00300 ; 00310 ; 00320 ; 00330 ; (4) FX.B Screen program (Subprogram) 0001
  • Page 228A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00260 #104 = 0 ; 00270 #105 = 0 ; 00280 #140 = 0 ; 00290 M98 P9502 ; 00300 M99 ; 00310 ; 00320 ; 00330 ; 00340 ; 00350 ; 00360 ; (5) Cursor control data prepation 00010 O8001 ; 00020 #10000 = 10010 ; 00030 #10001 = 2 ; 00040 #10002 = 10026 00050 #10003
  • Page 229B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00310 #10035 = 4 ; 00320 #10036 = 6 ; 00330 #10037 = 1 ; 00340 #10038 = 4 ; 00350 #10039 = 5 ; 00360 #10040 = 1 ; 00370 #10041 = 0 ; 00380 #8500 = 8000 ; 00390 M99 ; 00400 ; 00410 ; 00420 ; 00430 ; 00440 ; Make this program so that it is executed only
  • Page 230A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.3 STANDARD MACRO PROGRAM A.3.1 Standard Routine List Routine Program No Explanation Name number 1 DDPL O9501 Data display to cursor position 2 CDPL O9502 Cursor display 3 KEYIN O9503 Key input control 4 VDPLX O9504 One- row display of variable data 5
  • Page 231B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE (2) Cursor control data #10000 CADR1 CSNO 1 KOSU1 Cursor data (1) CADR2 2 KOSU2 CADR3 3 KOSU3 Cursor data Cursor data for CSNo.1 · (2) · · Cursor data for CSNo.2 1. CSNO (Cursor control No.) 1, 2, 3...are assigned to screen No. requiring cursor control
  • Page 232A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 (3) Explanation of cursor data CADRI CPX Cursor position X CPY Cursor position Y X increment for group: 0 for no CnX group Y increment for group: 0 for no CnY group X number for group: 1 for no group CNX CNY Y number for group:1 for no group CINP Data
  • Page 233B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 6. CXYF Specify the direction of cursor movement within the group. When CXYF = 0 When CXYF = 1 (4) Sample preparation of cursor data X–axis 01234 9 14 18 24 29 34 39 0 AAAAAAAAA 1 BB _99 CC _99 DD _99999 2 3 DD 4 1 _9999 _9999 _9999 _9999 2 _9999 _9999
  • Page 234A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 (5) Cursor data #10000 10010 #10010 4 1 3 1 1 2 9 3 0 BB/CC CURSOR 4 2 5 1 6 1 7 0 8 28 9 1 20 0 1 0 D cursor 2 1 3 1 4 1 5 0 6 7 7 4 8 7 9 1 Matrix cursor 30 4 1 6 2 1 3 0 A.3.4 To use the routines (O9501, O9502, O9503) with which the cursor Standard
  • Page 235B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE On the screen with no cursor, set #100 to ”0” (1) DDPL O9501 1. Function This function displays the input data variable (KDATA value) in the position deviated in the X-direction by ”CINT” from the cursor position. 2. Calling format #140= f (F) : Total
  • Page 236A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 (4) VDPLX O9504 1. Function To display a continuous variable value, this function deviates it in the X-direction from the specified place on the CRT screen. (Within one line) 2. Calling format #140=F (F) #141=Z (Z) #142=X Display position on CRT #143=Y
  • Page 237B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 3. Remark The soft key is not cleared with G202. (7) VSET O9507 1. Function This function sets the specified data to a continuous variable area. 2. Calling format #140 = V Variable No. (head number) #141 = D Data to be set #142 = N No. of variables M98
  • Page 238A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.3.5 List for Source Program 00010 O9501 ; 00020 IF [#100 EQ 0] GOTO 900 ; 00030 #145 = #[10000 + [#100 - 1] * 2] ; 00040 IF [#145 EQ 0] GOTO 900 ; 00050 #145 = #104 * 8 + #145 ; 00060 IF [#[#145+7] EQ 1] GOTO 10 ; 00070 #139 = FIX [#105 / #[#145 + 4]
  • Page 239B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00110 IF [#105 LT #146] GOTO 200 ; 00120 #105 = 0 ; 00130 #104 = #104 +1 ; 00140 #145 = #145 + 8 ; 00150 IF [#104 LT #147] GOTO 200 ; 00160 #104 = 0 ; 00170 #145 = #[10000 + [#100 -1] * 2] + #104 * 8 ; 00180 GOTO 200 ; 00190 N100 #105 = #105 - 1 ; 0020
  • Page 240A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00120 ; 00130 ; 00140 ; 00150 ; 00010 O9504 ; 00020 G243 F#140 Z#141 ; 00030 #139 = 0 ; 00040 WHILE [#139 LT #145] DO 1 ; 00050 IF [#[#144 + #139] EQ #146] GOTO 90 ; 00060 X[#142 + #147 * #139] Y#143 D#[#144 + #139] 00070 #139 = #139 + 1 ; 00080 END 1
  • Page 241B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00090 M99 ; 00100 ; 00110 ; 00120 ; 00130 ; 00140 ; 00010 O9507 ; 00020 #139 = 0 ; 00030 WHILE [#139 LT #142] DO 1 ; 00040 #[#140 + #139] = #141 ; 00050 #139 = #139 + 1 ; 00060 END 1 ; 00070 M99 ; 00080 ; 00090 ; 00100 ; 00110 ; 00120 ; 00010 O9508 ; 0
  • Page 242A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.3.6 Explanation of Program 00010 O9501 ; Display of data in cursor position 00020 IF [#100 EQ 0] GOTO 900 ; #100: Cursor control No. 00030 #145 = #[10000 + [#100 – 1] * 2] ; #145: Cursor data head address 00040 IF [#145 EQ 0] GOTO 900 ; 00050 #145 =
  • Page 243B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00010 O9502 ; Cursor display 00020 IF [#100 EQ 0] GOTO 900 ; 00030 #145 = #[10000 + [#100-1] * 2] ; 00040 IF [#145 EQ 0] GOTO 900 ; #145: Cursor data head address 00050 #145 = #104 * 8 + #145 ; 00060 #146 = #[#145 + 4] * #[#145+5] ; No. of displays in
  • Page 244A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 00010 O9503 ; Key input control 00020 #8502 = 1 ; Numerical data input 00030 #102 = #8501 ; Key input variable read 00040 #103 = #8503 ; Numerical data read 00050 #140 = 1 ; Advance the cursor. 00060 IF [#102 EQ 3] GOTO 10 ; 3:For cursor#, advance the
  • Page 245B–61803E–1/10 APPENDIX A. MACRO PROGRAM EXAMPLE 00120 ; 00130 ; 00140 ; 00010 O9506 ; Screen clear 00020 G243 X0 Y0 K560 ; Blank of 560 value 00030 #8505 = 0 ; Cursor off 00040 X1 Y16 K6 ; Leaving the “frame” of the soft 00050 X9 K6 ; key, erase the other part. 00060 X17 K6 ; Erase the soft key 0007
  • Page 246A. MACRO PROGRAM EXAMPLE APPENDIX B–61803E–1/10 A.4 SCREEN LAYOUT X -axis 0 1 2 3 4 5 6 7 8 9 10 SSSS SSSS 30 31 32 33 34 35 36 37 38 39 0 O0010 N0790 1 2 3 4 5 6 7 Y–axis 8 9 10 11 12 NUM 12345 13 14 NOT READY BUF AUTO 15 16 236
  • Page 247B. MACRO COMPLIER OPERATION B–61803E–1/10 APPENDIX (Series 16–A/18–A) B MACRO COMPLIER OPERATION (Series 16–A/18–A) NOTE For operation of macro compiler of CNC except Series 16/18, refer to FAPT MACRO COMPILER (For personal computer) Programming Manual (B-66102E). 237
  • Page 248B. MACRO COMPLIER OPERATION (Series 16–A/18–A) APPENDIX B–61803E–1/10 B.1 OPERATION ON P–G B.1.1 First, special notes on operation are described below. Special Notes (1) When coming to a deadlock, press key. Press key several times. The display returns to the initial screen. Next, checking
  • Page 249B. MACRO COMPLIER OPERATION B–61803E–1/10 APPENDIX (Series 16–A/18–A) B.1.3 (Return to) Initial Screen, - OFF and press ”R2” Inputting Macro NO = 1 Program from PROGRAM = IN Keyboard INPUT =O Program No. (First register Program No. only) INPUT = only PROGRAM = O Program
  • Page 250B. MACRO COMPLIER OPERATION (Series 16–A/18–A) APPENDIX B–61803E–1/10 B.1.4 (Return to) Initial Screen - OFF and press ”R2” Correcting Macro NO=1 Program (Screen edit) PROGRAM = O program No. (Number to be corrected) EDIT= (1) Screen Edit D Press the ”CHG” key. (Check that F15 ke
  • Page 251B. MACRO COMPLIER OPERATION B–61803E–1/10 APPENDIX (Series 16–A/18–A) D Character search : After only L and F/ Character string / B.1.6 (Return to) Initial Screen ON : ON as needed and press Outputting Files to ”R2” Floppy Disk NO = 1 PROGRAM = OUT ALL or OUT O (Pro
  • Page 252B. MACRO COMPLIER OPERATION (Series 16–A/18–A) APPENDIX B–61803E–1/10 B.1.8 (1) File name directory Handling Floppy Disk (Return to) Initial Screen and turn ON as needed and press R3. 0 REQUEST = FD LIST L, 1 1 sector = 256 characters Converted to No. of characters if the size is multiplie
  • Page 253B–61803E–1/10 APPENDIX C. DATA ON MACRO COMPILER C DATA ON MACRO COMPILER 243
  • Page 254C. DATA ON MACRO COMPILER APPENDIX B–61803E–1/10 C.1 It is possible to specify parameters for macro calls that can be referred to as local variables by the P-CODE program. In the parameter specification ARGUMENT method for the custom macro of the custom macro B type, the parameter TRANSFER specifica
  • Page 255B–61803E–1/10 APPENDIX C. DATA ON MACRO COMPILER Table C.1 (b) Argument specification II for P-CODE program call Address of argument specification II Local variable No. A # 1 B # 2 C # 3 I1 # 4 J1 # 5 K1 # 6 : : : : I10 # 31 J10 # 32 K10 # 33 245
  • Page 256C. DATA ON MACRO COMPILER APPENDIX B–61803E–1/10 C.2 Refer to Operator’s Manual for details. SUMMARY OF SYSTEM VARIABLES 246
  • Page 257B–61803E–1/10 APPENDIX C. DATA ON MACRO COMPILER (1) M Series Tool compensation Position data Parameter instructions #2001 Tool compensation #5001 X. Block end position value 1 #5002 Y. I #0 #2002 I I 2 #5003 Z. I A A #1 to to #5004 4. I B B #2 #2200 I I 200 #5021 X. Machine coordinates C C #3 #5022
  • Page 258C. DATA ON MACRO COMPILER APPENDIX B–61803E–1/10 (2) T Series Tool compensation quantity Position data Parameter instructions #2001/2701 X. Offset 1 #5001 X. Block end position #0 to to to #5002 Z. I A A #1 #2032/2732 I 32 #5003 3. I B B #2 #2101/2801 Z. Offset 1 #5004 4. I C C #3 to to to #5021 X.
  • Page 259B–61803E–1/10 APPENDIX C. DATA ON MACRO COMPILER NOTE Referencing custom macro system variables System variables used for custom macro B can be referenced and written from an execution, conversational, or auxiliary macro. The variables of M–series tool compensation memory C (#10001 to #19099) and 30
  • Page 260D. MACRO COMPILER/MACRO EXECUTOR WITH CAP I (Series 16/18) APPENDIX B–61803E–1/10 MACRO COMPILER/MACRO EXECUTOR WITH CAP I D (Series 16/18) 250
  • Page 261D. MACRO COMPILER/MACRO B–61803E–1/10 APPENDIX EXECUTOR WITH CAP I (Series 16/18) D.1 When an option conversational automatic programming function I (CAP I) is selected, the macro program must be loaded in the same ROM OUTLINE module as that in which a custom macro prepared by MTB is loaded. The dis
  • Page 262D. MACRO COMPILER/MACRO EXECUTOR WITH CAP I (Series 16/18) APPENDIX B–61803E–1/10 D.2 In order to produce the ROM for the ROM module in which both the user’s program (custom macro) and the CAP I are to be stored, either the EQUIPMENT NEEDED P-G Mark II or the P-G Mate are required. FOR COMPILING In
  • Page 263D. MACRO COMPILER/MACRO B–61803E–1/10 APPENDIX EXECUTOR WITH CAP I (Series 16/18) Table 2 (b) Specifications of FAPT MACRO COMPILER (MACRO EXECUTOR) with CAP I (For machining center) NC P-G Number of Name of function model model floppy disK File name FS16-MA P-G FAPT MACRO COMPILER A08B-0036-J765#BA
  • Page 264D. MACRO COMPILER/MACRO EXECUTOR WITH CAP I (Series 16/18) APPENDIX B–61803E–1/10 D.3 (1) Outline COMPILING CAP I consists of a system section and a dedicated custom macro section.The user’s program is compiled with this dedicated custom PROCEDURE USING macro section, then stored in the ROM module.
  • Page 265D. MACRO COMPILER/MACRO B–61803E–1/10 APPENDIX EXECUTOR WITH CAP I (Series 16/18) However, as ‘OK @***.***.EXC1/**’ is different depending on the macro executor used, refer to the Specifications of FAPT MACRO COMPILER (MACRO EXECU-TER) with CAP in Section 2, then input the file name of the macro
  • Page 266D. MACRO COMPILER/MACRO EXECUTOR WITH CAP I (Series 16/18) APPENDIX B–61803E–1/10 bit 1 = 1: The program of the block containing M02 ends = 0: The program of the block containing M99 does not end (Be sure to set 0) bit 2 = 1: The program of the block containing M30 ends = 0: The program of the block
  • Page 267D. MACRO COMPILER/MACRO B–61803E–1/10 APPENDIX EXECUTOR WITH CAP I (Series 16/18) = 0: Expanded conversational macro exclusive variables at the #20000 level have floating decimal point format (Be sure to set 0) 9003 10000000 bit 7 = 1: Special function for CAP valid = 0: Special function for CAP not
  • Page 268D. MACRO COMPILER/MACRO EXECUTOR WITH CAP I (Series 16/18) APPENDIX B–61803E–1/10 bit 7 = 1: Compiles a macro program with custom macro B format = 0: Compiles a macro program with custom macro A format (Be sure to set 1) 9001 10000001 bit 0 = 1: Outputs sequence number in the P-CODE program at ROM w
  • Page 269D. MACRO COMPILER/MACRO B–61803E–1/10 APPENDIX EXECUTOR WITH CAP I (Series 16/18) 9046 900 Dedicated data for CAP 9047 8100 Dedicated data for CAP NOTE Concerning expanded P-CODE exclusive variables (#2000 -) If the length of the part program memory is Min. 160m, an arbitrary number of exclusive var
  • Page 270D. MACRO COMPILER/MACRO EXECUTOR WITH CAP I (Series 16/18) APPENDIX B–61803E–1/10 The maximum number of variables that can be set to parameter No. 9044 varies, as shown below, in accordance with the part program memory capacity. Example) Part program memory 160 m: Parameter No. 9044 = 819 Part progr
  • Page 271D. MACRO COMPILER/MACRO B–61803E–1/10 APPENDIX EXECUTOR WITH CAP I (Series 16/18) a message will be displayed. After inserting the macro executor 2 floppy disk into disk drive 0, key ln ‘ OK @ ****. **** EXC2/** ’. However, as the above-described ****. ****. EXC2/** is different depending on the
  • Page 272D. MACRO COMPILER/MACRO EXECUTOR WITH CAP I (Series 16/18) APPENDIX B–61803E–1/10 D.4 The capacity of the memory area provided for the user’s program in combination with the system section of macro executor in the ROM ROM MODULE module is 192 Kbyte. D.5 When the CAP and macro executor function exist
  • Page 273E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) E AND Super CAPi T MACRO COMPILER/EXECUTOR (Series 16i/18i/21iT) 263
  • Page 274E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.1 FANUC Super CAP T versions 1, 2, and 3, Super CAP II T and Super CAPi T enable machine tool builders to create their own systems. This GENER
  • Page 275E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) NOTE 1 Whether a function can be used varies from version to version. For details, see the relevant section of this manual. 2 The Series 20/21 d
  • Page 276E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.2 To develop a user program for use with the macro executor, the equipment listed below needs to be prepared beforehand. EQUIPMENT REQUIRED FO
  • Page 277E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (4) FANUC Super CAP macro executor (Table 1) Table 1 NC model Name of floppy disk, File name Ver. 1 FS16-TA A08B-9001-J621 BH0C_**.EX1, BH0C_**.
  • Page 278E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 NOTE A pair of asterisks (**) appearing at the end of a file name in the table above indicates the version number of that system’s software. (5)
  • Page 279E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.3 With the macro compiler/executor, machine tool builders can generate the types of user programs listed below. TYPE OF USER PROGRAMS (1) Prog
  • Page 280E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.4 (1) Programs for auxiliary process/transfer process display on the conversational programming menu DETAILS OF NEW Auxiliary process screen:
  • Page 281E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) Example of transfer process screen: PREP A NEW PROCESS PROGRAM NO. =1234 NAME=DEMONSTRATION INITIAL SET MATERIAL SHAPE OUT–DIA IN–DIA WORK–LNG M
  • Page 282E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 The following user programs for auxiliary process/transfer process display are available: (a) Program for displaying a detailed data screen when
  • Page 283E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.5 An area of 512K bytes is available for the user program used with the macro executor (including the execution macro program of the system).
  • Page 284E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.6 SOFTWARE PACKAGE FOR USER PROGRAM DEVELOPMENT E.6.1 Software Package Associated with Tool Data and Cutting Condition Data E.6.1.1 FANUC Supe
  • Page 285E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) = 750: End milling = 800: Side cutting = 850: Chamfering = 900: Reaming = 950: Boring (Control symbol number) : When a tool ID number is determi
  • Page 286E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 = 8 End face grooving: Up-reference = 9 Drilling, tapping, center drilling, end milling, chamfering: End face = 10 Drilling, tapping, center dri
  • Page 287E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) A user program can use P-CODE variables #10000 to #10699 as desired. With the standard macro compiler/executor (having no conversational functio
  • Page 288E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 3. Reads the variables corresponding to data to be referenced if the tool is registered. ! If the tool cannot be found, 99 is set in #9998. (d)
  • Page 289E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) Reads the macro variable, #9907, corresponding to the cutting edge angleof the external threading tool. (ii) When the data of all tools of a typ
  • Page 290E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.6.1.3 If ID numbers are set in system variables #9990 and #9991, the cutting Details of the Software condition data can be read into #9992 to
  • Page 291E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (b) High-speed tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 R
  • Page 292E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (c) Special tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN 0
  • Page 293E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (2) Cutting condition data screen for threading tools (a) Carbide tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN
  • Page 294E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (b) High-speed tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 R
  • Page 295E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (c) Special tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN 0
  • Page 296E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (3) Cutting condition data screen for grooving tools (a) Carbide tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN
  • Page 297E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (b) High-speed tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 R
  • Page 298E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (c) Special tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN 0
  • Page 299E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (4) Cutting condition data screen for drilling tools (a) High-speed tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202
  • Page 300E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (b) Carbide tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN 0
  • Page 301E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (c) Special tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN 0
  • Page 302E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (5) Cutting condition data screen for taps (a) High-speed tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400
  • Page 303E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (b) Carbide tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN 0
  • Page 304E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (c) Special tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN 0
  • Page 305E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (6) Cutting condition data screen for rotary tools (a) End mill (i) High-speed tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R O
  • Page 306E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (ii) Carbide tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN
  • Page 307E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (iii) Special tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN
  • Page 308E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (b) Side cutter (i) High-speed tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103
  • Page 309E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (ii) Carbide tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN
  • Page 310E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (iii) Special tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN
  • Page 311E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (c) Chamfering tool (i) High speed tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000
  • Page 312E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (ii) Carbide tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN
  • Page 313E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (iii) Special tool 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN
  • Page 314E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (7) Coefficient setting data screen (a) Coefficient setting data for general-purpose tools 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 1
  • Page 315E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (b) Coefficient setting data for threading tools 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW
  • Page 316E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (c) Coefficient setting data for grooving tools 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW
  • Page 317E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (d) Coefficient setting data for drills 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000
  • Page 318E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (e) Coefficient setting data for center drilling tools 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN
  • Page 319E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (f) Coefficient setting data for reamers 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000
  • Page 320E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (g) Coefficient setting data for boring tools 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20
  • Page 321E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (h) Coefficient setting data for taps 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 10
  • Page 322E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (i) Coefficient setting data for end mills 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 0
  • Page 323E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (j) Coefficient setting data for side cutters 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20
  • Page 324E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (8) Surface roughness data screen 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L
  • Page 325E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (9) Pre-tool list 101 #L OUTER T0101 RN 0. 400 AC 95 AN 80 TW 20. 000 102 #R OUTER T0202 RN 0. 400 AC 95 AN 55 TW 20. 000 103 #L OUTER T0303 RN
  • Page 326E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (10)Chuck/tailstock figure data (a) Chuck figure data To read the data for a chuck, using system variables #9951 to #9955, set the corresponding
  • Page 327E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (b) Tailstock figure data To read the data for a tailstock, using system variables #9981 to #9986, set the desired tailstock number in #9980. 10
  • Page 328E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.6.2 Software Package Associated with Process Data E.6.2.1 With the FANUC Super CAP T/II T and Super CAPi T the first macro Overview variable n
  • Page 329E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) #9892 – When a process is to be searched for, reference process data used for search operation is set. (This macro variable allows write operati
  • Page 330E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 + 0 Work material +30 Finishing allowance X (∗2) + 1 Work figure (1=Bar, 2=Molding) +31 Finishing allowance Z (∗2) + 2 Out
  • Page 331E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) + 0 Outside diameter X1 (Molding) +30 Inside diameter X4 (Molding) + 1 Outside diameter Z1 (Molding) +31 Inside diameter Z
  • Page 332E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Bar (rough machining) + 0 Process number +30 Speed + 1 Unused +31 Surface reoughness
  • Page 333E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Bar (finishing) + 0 Process number +30 Speed + 1 Unused +31 Surface reoughness + 2 System utilizatio
  • Page 334E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Pattern Repeating (rough machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machin
  • Page 335E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Pattern Repeating (finish machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machi
  • Page 336E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Residual Machining (rough machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machi
  • Page 337E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Residual Machining (finish machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Mach
  • Page 338E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D End Facing (rough machining) + 0 Tool number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machining type (
  • Page 339E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D End Facing (finish machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machining ty
  • Page 340E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Threading + 0 Process number +30 Cut type (2) (∗20) + 1 Unused +31 Number of threads + 2 System utilization area (∗3) +32 Spark out +
  • Page 341E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Grooving (rough machining) + 0 Process number +30 Groove angle + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Start poin
  • Page 342E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Grooving (finishing-trapezoid only) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machin
  • Page 343E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Grooving (input data-trapezoid and thread groove) + 0 Start point X +30 Unused + 1 Start point Z +31 Unused + 2 Point 1 X +32 Unused + 3 Point
  • Page 344E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Necking + 0 Process number +30 Necking dimension D (radius) + 1 Unused +31 Tool angle of the tool used (∗27) + 2 System utilization area (∗3)
  • Page 345E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Center Drilling + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machining type (∗4) +33 Un
  • Page 346E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Drilling + 0 Process number +30 Machining pattern (∗14) + 1 Machining type (2) (∗13) +31 Decrement in depth of cut + 2 System utilization area
  • Page 347E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Tapping + 0 Process number +30 Pitch + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machining type (∗4) +33 Unused + 4
  • Page 348E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Single Action (when bit 0 of parameter No.9766 is 0) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32
  • Page 349E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Single Action II (when bit 0 of parameter No.9766 is 0) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System ut
  • Page 350E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Calling Subprograms (when bit 3 of parameter No.9771 is 0) + 0 Process number +30 Data 3 + 1 Unused +31 Data 4 + 2 System utilization area (∗3
  • Page 351E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Calling Subprograms II (when bit 3 of parameter No.9771 is 1) + 0 Process number +30 Unused + 1 Unused +31 Unuse
  • Page 352E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D C-axis Center Drilling + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machining type (∗4)
  • Page 353E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D C-axis Drilling + 0 Process number +30 Machining pattern (∗14) + 1 Machining type (2) (∗13) +31 Decrement in depth of cut + 2 System utilizati
  • Page 354E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D C-axis Tapping + 0 Process number +30 Pitch + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machining type (∗4) +33 Unus
  • Page 355E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D C-axis Grooving (rough machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machinin
  • Page 356E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D C-axis Grooving (chamfering) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machining typ
  • Page 357E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D C-axis Notching (rough machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machinin
  • Page 358E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D C-axis Notching (finish machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machini
  • Page 359E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D C-axis Notching (chamfering) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machining typ
  • Page 360E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D C-axis Cylindrical Machining (rough machining) + 0 Process number +30 Development drawing : Z-axis end coordinate (∗16) + 1 Unused +31 Develop
  • Page 361E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D C-axis Cylindrical Machining (chamfering) + 0 Process number +30 Development drawing : Z-axis end coordinate (∗16) + 1 Unused +31 Development
  • Page 362E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Transfer, Auxiliary Process + 0 Process number +30 Display data 10 (Data format) + 1 Unused +31 Display data 11 + 2 System utilization area (∗
  • Page 363E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D M-code Process + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machining type (∗4) +33 Unu
  • Page 364E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Program End Process + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused + 3 Machining type (∗4) +3
  • Page 365E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Y-axis Center Drilling + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (∗3) +32
  • Page 366E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Y-axis Drilling + 0 Process number +30 Machining pattern (∗14) + 1 Machining type (2) (∗13) +31 Decrement in dep
  • Page 367E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Y-axis Tapping + 0 Process number +30 Pitch + 1 Unused +31 Unused + 2 System utilization area (∗3) +32 Unused +
  • Page 368E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Y-axis Milling (rough machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area
  • Page 369E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) NOTE *1 : Coolant (initial setting data) In new process generation, the data set here is automatically set as an initial value in the item of co
  • Page 370E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 NOTE *7 : Process cycle, execution cycle 1 : Rough machining 2 : Finish machining 3 : Chamfering Unsually, this process cycle is automatically s
  • Page 371E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) NOTE *17 : Groove diameter/groove depth selection (Groove depth selected always when an end face is machined) 0 (or null) : Groove depth 1 : Gro
  • Page 372E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (c) Data structure of an auxiliary process and transfer process The input formats and display formats of data items such as type, head, and disp
  • Page 373E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (Data format) = 300001 : The data represents a tool ID number. Soft keys and numeric keys can be used for data input. (Data format) = 300002 : T
  • Page 374E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (iii) When the initial setting data of the program currently displayed is to be read #????? = # [#9891 + (offset number)] –1. 1. Reads the offse
  • Page 375E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.6.3 Software Package Associated with the Interface Between User Programs and the System E.6.3.1 With the FANUC Super CAP T Ver. 1, 2, 3, a use
  • Page 376E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (2) Program numbers of user programs for screen display O1000 = User program for detail data screen display ! When the [DETAIL DATA] soft key is
  • Page 377E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) #9124 : In key-in buffer display on a detail data screen, this variable indicates whether the input is numeric key input or soft key input. In t
  • Page 378E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 NOTE 1 Only the cursor position for a transfer process or auxiliary process is readable/writable. 2 The cursor position is not related to the po
  • Page 379E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) Example: #9110= 101 102 103 104 105 106 107 PROC (05) 199 Display Display Display TYPE HEAD Display Display data 1 data 2 data 3 data 4 data 5 D
  • Page 380E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.6.3.3 (1) Transfer or auxiliary process display Display Character In a transfer or or auxiliary process, an arbitrary character string can Spe
  • Page 381E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (b) Registration of display character strings in a transfer or auxiliary process Display character strings are registered as a user program for
  • Page 382E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (ii) Registration of soft key display character strings O11** ; N0001 (S12345678) ; N0002 (S23456789) ; N0003 (S34567890) ; N5000 (S98765432) ;
  • Page 383E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) NOTE A value ranging from 1 to 20 can be set to specify a type. Each value corresponds to a display character string group on a one-to-one basis
  • Page 384E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (2) Specification of display characters used with the system (a) Use by a user program of characters used with the system When characters are to
  • Page 385E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.6.3.4 To execute a transfer or auxiliary process, the following dedicated Executable Macro program numbers are added: Program Numbers O9018 =
  • Page 386E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.6.3.8 #9127 = 0 : Normal state System Variable for #9127 = 1 : Simulation being executed #9127 = 2 : NC statement being output Execution Mode
  • Page 387E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.6.4 Data Which Can Be Referred to by Macro Programs E.6.4.1 In the FANUC Super CAP T/CAP II T and Super CAPi T system, macro Outline programs
  • Page 388E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 Processes in which Macro Corresponding Description the variable can be variable data referred to #20799 [Width of a cutter used for grooving]*2
  • Page 389E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) Processes in which Macro Corresponding Description the variable can be variable data referred to #20787 Rate of changing the depth of cut Bar ma
  • Page 390E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 Processes in which Macro Corresponding Description the variable can be variable data referred to #20775 Cutting angle in necking Necking PRM No.
  • Page 391E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) Processes in which Macro Corresponding Description the variable can be variable data referred to #20757 Common safety point along the X-axis for
  • Page 392E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 Processes in which Macro Corresponding Description the variable can be variable data referred to #20739 Diameter or radius programming for offse
  • Page 393E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) Processes in which Macro Corresponding Description the variable can be variable data referred to #20718 M code for specifying the direction of r
  • Page 394E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 Processes in which Macro Corresponding Description the variable can be variable data referred to #20705 Number registered in the graphic screen
  • Page 395E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) Processes in which Macro Corresponding Description the variable can be variable data referred to #20682 Number of the turret corresponding to th
  • Page 396E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 Processes in which Macro Corresponding Description the variable can be variable data referred to #20661 Length of a workpiece All processes Init
  • Page 397E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) Processes in which Macro Corresponding Description the variable can be variable data referred to #20650 Position on the formed material-5 : X Al
  • Page 398E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 Processes in which Macro Corresponding Description the variable can be variable data referred to #20640 Position on the formed material-10 : X A
  • Page 399E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) Processes in which Macro Corresponding Description the variable can be variable data referred to #20631 The program to be called is a : Sub-call
  • Page 400E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 Processes in which Macro Corresponding Description the variable can be variable data referred to #20612 When the direction of rotation about the
  • Page 401E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) Processes in which Macro Corresponding Description the variable can be variable data referred to #20602
  • Page 402E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.6.5 Displaying the Basic Menu Screen by a User Program (Not Supported by Ver.1.) E.6.5.1 FANUC Super CAP T/CAP II and Super CAPi T T allow a u
  • Page 403E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.6.6 Display of a Window by a User Program, Depending on the Cursor Position (Not Supported by Ver.1.) E.6.6.1 FANUC Super CAP T Ver.2 or later
  • Page 404E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (2) System variables indicating the position of the cursor System variables #9200 to #9203, #9108, and #9109 indicate the position of the cursor
  • Page 405E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D PROCESS DATA : the value at every items are defined. Data Name of item Data Name of item value value 0 MACHINING 50 FEEDRATE1
  • Page 406E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Bar machining (T one-spindle type) Bar machining PROC(01) AREA TOOL-NO CUT-SPD FEED/REV CUT-DPTH T-CODE (rough) 0 2 14 15 16 17 18 AREA TOOL-N
  • Page 407E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Threading (TT, T two-spindle type) Threading PROC(01) AREA HEAD THRD TYPE THRD ANGL CUT-METHD LEAD (general-purpose) 0 2 3 66 67 65 27 TOOL-NO
  • Page 408E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Grooving (T one-spindle type) Grooving PROC(01) AREA BASIS PATTERN WIDTH TOOL-NO T-CODE 0 2 5 4 29 14 18 CUT-SPD FEED/REV CUT-DPTH
  • Page 409E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Center drilling (TT, T two-spindle type) [Center drilling, starting] Center drilling PROC(01) MACHN-2 HEAD HOLE-DIA STAT-PZ END-PTZ TO
  • Page 410E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Drilling (TT, T two-spindle type) [Drilling] Drilling PROC(01) MACHIN-2 HEAD PATTERN PROC-DIA STAT-PZ END-PTZ 0 1 3 4 41 79 38 CUT-DEP
  • Page 411E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Drilling (T one-spindle type) [Drilling] Drilling PROC(01) MACHIN-2 PATTERN PROC-DIA STAT-PZ END-PTZ 0 1 4 41 79 38 TOOL-NO CUT-SPD FE
  • Page 412E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Single action (T one-spindle type) Single action PROC(01) TOOL-NO CUT-SPD FEEDRATE T-CODE 0 14 15 7 18 D Single action II (TT, T two-spindle t
  • Page 413E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D C-axis center drilling (TT, T two-spindle type) [Center drilling, starting] C-axis center PROC(01) AREA HEAD MACHN-2 HOLE-DIA TOOL-NO
  • Page 414E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D C–axis Drilling (TT, T two-spindle type) [Drilling] C–axis Drilling PROC(01) AREA HEAD MACHIN-2 PATTERN PROC-DIA TOOL-NO T-CODE 0 2 3
  • Page 415E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) D Drilling (T one-spindle type) [Drilling] C–axis Drilling PROC(01) AREA MACHIN-2 PATTERN PROC-DIA TOOL-NO T-CODE 0 2 1 4 41 14 18 REV/M
  • Page 416E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 [Contour control type - machining area: Side face] C-axis grooving PROC(01) AREA HEAD GRV-DIA TOOL-NO REV/MIN FEEDRATE1 T-CODE (rough) 0 2 3 48
  • Page 417E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) [Machining area: Side face] C-axis notching PROC(01) AREA HEAD STAT-PZ END-PTZ REMOVALX TOOL-NO T-CODE (rough) 0 2 3 54 55 25 14 18 REV/MIN FEED
  • Page 418E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Transfer Transfer PROC(01) 0 User Program D Auxiliary Auxiliary PROC(01) 0 User Program D M (TT, T two-spindle type) M PROC(01) HEAD M M M M M
  • Page 419E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) [Up to 99 tools registered: drilling] Y-axis drilling PROC(01) AREA MACHN-2 HOLE-DIA TOOL-NO REV/MIN T-CODE 0 2 1 41 14 15 18 FEED/MIN DWELL PAT
  • Page 420E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Figure data STAT-PX STAT-PZ END-PTX END-PTZ ROUND CHAMFER 10 11 12 13 14 15 STAT-PX STAT-PZ END-PTX END-PTZ ROUND CHAMFER
  • Page 421E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) PITCH NUMBER 6 7 STAT-PX STAT-PZ 0 1 POINT 1X POINT 1Z ROUND CHAMFER 10 11 12 13 POINT 2X POINT 2Z ROUND CHAMFER 20 21 22
  • Page 422E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 POINT 1Z POINT 1C STAT-PX DEPTH 10 11 12 13 POINT 2Z POI
  • Page 423E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) CENTR-PX CENTR-PY STAT-PZ DEPTH REVOLVE-A PITCH-WID 0 1 2 3 4 5 COUNT/
  • Page 424E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D Contour data 0 START X= Z= 0 z X= Z= SR= 0 ! X= Z= SR= 0 " X= Z= SR= 0 # X= Z= SR= 0 ½ X= Z= SR= 0 ¾ X= Z=
  • Page 425E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) 0 START X= Y= C= 0 z X= Y= 0 ! X= Y= 0 " X= Y= 0 # X= Y= 0 ½ X= Y= 0 ¾ X= Y= 0 ¼ X= Y= 0 ¿ X= Y= 0 X= Z= R= 0 X= Z= R=
  • Page 426E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (b) System variable indicating a data line : #9201 In system variable #9201, a value indicating the data line to which the cursor is positioned
  • Page 427E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (e) System variables indicating the position of the cursor on the screen : #9108, #9109 In system variables #9108 and #9109, values indicating t
  • Page 428E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.6.7 Using a User Program to Display Guidance on the Detailed Program Data Screen (Not Supported by Ver.1.) E.6.7.1 FANUC Super CAP T Ver.2 or
  • Page 429E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (3) System variable indicating whether the program detail data screen is that for automatic residual cutting data for bar machining. #9208 1 : P
  • Page 430E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.6.8 Displaying a Window by Using a User Program and Pressing a Soft Key on the Program Process Data Screen (Not Supported by Ver.1.) E.6.8.1 F
  • Page 431E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) O119* * : Selected language N9102 (‘123456’) ; (Soft key Upper row) =1 : English N9103 (‘7890AB’) ; (Soft key 2 Lower row) =2 : Japanese N9104 (
  • Page 432E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.6.9.3 (1) Displaying a window on the tooling data screen Details (a) Number of the program used to display a window, and starting that program
  • Page 433E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) O119* * : Selected language N9995 (‘123456123456’) ; (Soft key7) =1 : English N9996 (‘123456123456’) ; (Soft key6) =2 : Japanese =3 : German =4
  • Page 434E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (2) Displaying the character string for the soft key used to display the chuck/tailstock barrier setting screen (a) Registering a soft key chara
  • Page 435E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.7 SETTING PARAMETERS USED FOR COMPILER E.7.1 FANUC Super CAP T/CAP II T and Super CAPi T allows the machine Overview tool builder to create hi
  • Page 436E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 Compile parameter #7 #6 #5 #4 #3 #2 #1 #0 9003 TCF #7 (TCF) 0: The special function for entering conversational programs is not used. 1: The fun
  • Page 437E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) NOTE The special P-CODE variables of FANUC Super CAP T/II T and Super CAPi T are usually set in system variables #10000 to #10699. They can be e
  • Page 438E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.8 COMMAND USED IN THE DYNAMIC GRAPHIC FUNCTION E.8.1 To perform animated simulation in the dynamic graphic function Outline (A02B-0121-J973),
  • Page 439E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (3) Drawing an arc Command format G10 P90002 X_Z_I_K_ ; for drawing clockwise G10 P90003 X_Z_I_K_ ; for drawing counterclockwise Draws an arc ar
  • Page 440E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (8) Start of tool-figure registration Command format G10 P90051 X_Z_Q_ ; Specifies the start of tool-figure registration as well as the position
  • Page 441E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) NOTE The start point command G10 P90000 for animated simulation, command G10 P90001 for drawing a straight line, and command G10 P90002 or G10 P
  • Page 442E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 (16)Selecting the tool used for C-axis machining Command format G10 P90062 Q_R_ ; Selects the tool to be used for C-axis machining and specifies
  • Page 443E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) (21)Start point for drawing the profile of the tailstock Command format G10 P90101 X_Z_ ; Specifies the start point for drawing the profile of t
  • Page 444E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 NOTE 1 If the command G10 P90201 is not specified before the command G10 P90200 is specified, the differences between the coordinates used in tw
  • Page 445E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) NOTE 3 When the Z-axes in the two coordinate systems have opposite directions as shown above, the command can be used in FANUC Super CAP T/II T
  • Page 446E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.8.3 Example 20mm 10mm X 20mm 30mm 25mm 30mm φ100mm φ70mm φ40mm φ100mm Z 100mm The following program registers the profiles of a workpiece, the
  • Page 447E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) X (15, 1) (15, 12) 10mm (5, 6) (5, 1) (5, 12) Milling tool (1, 6) Z General purpose tool The following program registers the above tools. G10 P9
  • Page 448E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 D When the program origin is positioned on the end face of the chuck #20623 = A + B – C When the complex lathe function is enabled and the +Z di
  • Page 449E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.9 COMMANDS FOR READING/WRITING VARIABLES STORED IN THE REMOTE HEAD E.9.1 In FANUC Super CAP T/CAP II T and Super CAPi T, all programs are stor
  • Page 450E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.10 FUNCTION FOR CONVERTING PROGRAMS USED FOR THE AUXILIARY AND TRANSFER PROCESSES TO NC STATEMENTS E.10.1 When programs used for the auxiliary
  • Page 451E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.10.3 When bit 6 of parameter 9777 is 1, programs for calling sub-programs in Format Used for NC the auxiliary and transfer processes are conve
  • Page 452E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.11 (1) The system capacity has been expanded. IMPROVEMENTS Super CAP T Version 3 : 2M bytes FEATURED BY Super CAP T Version 4 : 3M bytes VERSI
  • Page 453E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.11.1 To reflect the conversational system capacity and macro capacity Modifications Made to expansions and to ensure compatibility with the VG
  • Page 454E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 E.12 (1) The system capacity has been expanded. IMPROVEMENTS Super CAP T Version 3 : 2M bytes FEATURED BY Super CAP II T : 3M bytes FANUC SUPER
  • Page 455E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) When A = 1, the data is displayed in reverse video. When A = 2, an extended palette is used for the character color of B. When A = 4, an extende
  • Page 456E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 Example: [Standard character in extended character palette 12] + [extended palette 15 for the background] *ABC* = *647* (Data format) = 100000:
  • Page 457E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) NOTE 1 The multi–window is not displayed when any of the above variables assumes a null value or a value outside the specifiable range. 2 When a
  • Page 458E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ EXECUTOR (Series 16i/18i/21iT) APPENDIX B–61803E–1/10 Multi–window and basic menu screen display areas With Super CAP II T, the multi–window cannot be displayed in the system display area (upper thr
  • Page 459E. FANUC Super CAP T/CAP II T MACRO COMPILER/EXECUTOR (Series 16/18) and Super Capi T Macro Compiler/ B–61803E–1/10 APPENDIX EXECUTOR (Series 16i/18i/21iT) E.12.3 To reflect the conversational system capacity and macro capacity Modifications Made to expansions and to ensure compatibility with the VG
  • Page 460F. MACRO VARIABLES USED IN THE MACRO EXECUTOR FUNCTIONS APPENDIX B–61803E–1/10 MACRO VARIABLES USED IN THE MACRO EXECUTOR F FUNCTIONS Conversa- Execut- Variable No. Function R/W Auxiliary tional able Macro varlables #1 - #33 Local variables R/W Ę #1 - #99 Array-type variables R/W Ę Ę #100 - #149 Com
  • Page 461F. MACRO VARIABLES USED IN THE B–61803E–1/10 APPENDIX MACRO EXECUTOR FUNCTIONS Conversa- Execut- Variable No. Function R/W Auxiliary tional able #8519 Number of the first variable in the array R/W Ę Ę Reading and writing an NC program #8520 Program number specification R/W Ę Ę #8521 Block number spe
  • Page 462F. MACRO VARIABLES USED IN THE MACRO EXECUTOR FUNCTIONS APPENDIX B–61803E–1/10 Conversa- Execut- Variable No. Function R/W Auxiliary tional able #8731 PMC control command variable (Area C) R/W Ę Ę #8732 PMC cutting feedrate variable (Area C) R/W Ę Ę #8733 Variable for traveling distance controlled b
  • Page 463G. DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i B–61803E–1/10 APPENDIX (CONVERSION FROM FS0 TO FS16/18/0i) DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i G (CONVERSION FROM FS0 TO FS16/18/0i) 453
  • Page 464G. DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i (CONVERSION FROM FS0 TO FS16/18/0i) APPENDIX B–61803E–1/10 G.1 Double size can be specified for character size specification A (only for alphanumeric characters). CHARACTER DISPLAY (G243) ⇒ An alphanumeric character is displayed having the same siz
  • Page 465G. DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i B–61803E–1/10 APPENDIX (CONVERSION FROM FS0 TO FS16/18/0i) G.4 Screen numbers and corresponding screens are changed. CONTROLLING For standard MDI For small MDI CONVERSATIONAL 0 POS 0 POS 1 PROG 1 PROG MACRO FUNCTION 2 OFFSET/SETTING 2 OFFSET/SETTIN
  • Page 466G. DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i (CONVERSION FROM FS0 TO FS16/18/0i) APPENDIX B–61803E–1/10 G.7 CALLING A Compile parameter #7 #6 #5 #4 #3 #2 #1 #0 SUBPROGRAM WITH 9005 TMACC AXCLS AX4CL AX3CL AX2CL AX1CL AN AXIS ADDRESS AX1CL 0 : Subprogram call by the 1st address is invalid 1 :
  • Page 467G. DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i B–61803E–1/10 APPENDIX (CONVERSION FROM FS0 TO FS16/18/0i) G.8 P-CODE program O9008 can be called from the user program using a T code. CALLING A MACRO WITH A T CODE User program P–CODE program 0001; 09008; : : compilationparameter T#27; ⇒Outputs t
  • Page 468G. DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i (CONVERSION FROM FS0 TO FS16/18/0i) APPENDIX B–61803E–1/10 G.9 In FS0, a command such as #100=P100.2; can be specified. In FS16, however, use a command such as #100=[P100 AND 4]/4; instead. A BIT CANNOT BE SPECIFIED TO READ A PARAMETER. G.10 THE RO
  • Page 469G. DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i B–61803E–1/10 APPENDIX (CONVERSION FROM FS0 TO FS16/18/0i) G.11 THE USE OF P–CODE Compile parameter #7 #6 #5 #4 #3 #2 #1 #0 DEDICATED 9002 EVF VARIABLES HAS #3 (EVF) 0 : Extended P-CODE variables (#20000 or larger) are BEEN EXTENDED. floating-point
  • Page 470G. DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i (CONVERSION FROM FS0 TO FS16/18/0i) APPENDIX B–61803E–1/10 NOTE 1 For P-CODE variables, about 1.63 meter of part program memory is consumed per 100 pieces of variables when part program storage is 20 to 80m. The more P–CODE are used, the more part
  • Page 471G. DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i B–61803E–1/10 APPENDIX (CONVERSION FROM FS0 TO FS16/18/0i) NOTE For Series 16i/18i/21i/0i, expanded P–CODE variables can be used even if the capacity of tape memory is up to 160m. The maximum number of expanded P–CODE variables that can be used is
  • Page 472G. DIFFERENCES BETWEEN Series 0 AND Series 16/18/0i (CONVERSION FROM FS0 TO FS16/18/0i) APPENDIX B–61803E–1/10 G.12 THE METHOD FOR Executor DISPLAYING P–CODE parameter #7 #6 #5 #4 #3 #2 #1 #0 9000 NDP VARIABLES #10000 OR LARGER HAS #1 (NDP) 0 : Local and common variables for a P-CODE program are not
  • Page 473H. G CODES THAT CAN BE USED BY THE CONVERSATIONAL B–61803E–1/10 APPENDIX AND AUXILIARY MACROS G CODES THAT CAN BE USED BY THE H CONVERSATIONAL AND AUXILIARY MACROS NOTE 1 The conversational macro can issue all G codes. The auxiliary macro cannot issue commands relating to screen display (F). The exe
  • Page 474H. G CODES THAT CAN BE USED BY THE CONVERSATIONAL AND AUXILIARY MACROS APPENDIX B–61803E–1/10 Conversa- G code Function Standard command format M/1S Auxiliary tional G330 RS232c: Opens a line. G330 P_ B_ S_ C_ (F_/L_) ; 1S f f G331 RS232c: Closes a line. G331 ; 1S f f G335 RS232c: Reads a single cha
  • Page 475B–61803E–1/10 APPENDIX I. INTERNAL CODE I INTERNAL CODE 0020 0021 0022 0023 0024 0076 0077 0078 0079 007A 0025 0026 0027 0028 0029 00A0 00A1 00A2 00A3 00A4 002A 002B 002C 002D 002E 00A5 00A6 00A7 00A8 00A9 002F 0030 0031 0032 0033 00AA 00AB 00AC 00AD 00AE 0034 0035 0036 0037 0038 00AF 00B0 00B1 00B2
  • Page 476I. INTERNAL CODE APPENDIX B–61803E–1/10 2430 2431 2432 2433 2434 2F6F 2F70 2F71 2F72 2F73 2435 2436 2437 2438 2439 2F74 2F75 2F76 2F77 2F78 243A 243B 243C 243D 243E 2F79 2F7A 2F7B 243F 2440 2441 2442 2443 302E 3035 3037 3042 2444 2445 2446 2447 2448 3045 304A 304C 304F 3055 2449 244A 244B 244C 244D
  • Page 477B–61803E–1/10 APPENDIX I. INTERNAL CODE 3449 344A 3451 3453 3456 3866 386C 386D 386E 3872 3458 345D 345E 346A 346F 387A 387C 387D 387E 3926 3470 3471 3473 3474 347B 3929 392A 392D 3933 3935 347C 3521 3522 3524 352C 3939 393B 393D 3942 3945 352D 352F 3530 353B 353F 3953 3954 395D 395F 3960 3541 3551
  • Page 478I. INTERNAL CODE APPENDIX B–61803E–1/10 3C6F 3C75 3C77 3C79 3C7D 407E 412A 4130 4133 4134 3C7E 3D24 3D2A 3D38 3D3D 4146 4147 414F 4150 415B 3D3E 3D44 3D45 3D50 3D51 415C 415E 4160 4161 416A 3D52 3D60 3D63 3D67 3D68 416D 4175 4176 4177 417D 3D69 3D6A 3D71 3D75 3D78 4226 4227 4228 422C 422D 3D7C 3E21
  • Page 479B–61803E–1/10 APPENDIX I. INTERNAL CODE 462C 4630 4631 4633 463B 4B5C 4B60 4B67 4B68 4B76 4640 4643 4648 4649 464C 4B7C 4C24 4C29 4C35 4C3E 464D 465F 4662 4679 467C 4C3F 4C40 4C47 4C4C 4C57 467E 4724 4727 472E 472F 4C5A 4C5C 4C61 4C64 4C67 473B 473C 473D 474B 474F 4C73 4C75 4C7D 4D2D 4D33 4753 4754
  • Page 480J. PARAMETERS APPENDIX B–61803E–1/10 J PARAMETERS 470
  • Page 481B–61803E–1/10 APPENDIX J. PARAMETERS J.1 COMPILE PARAMERTES #7 #6 #5 #4 #3 #2 #1 #0 8000 ROMM 16BT BAUD M30 M02 M99 (Exclusive for FANUC SYSTEM P-MODEL G) M99 0 : M99 does not terminate compilation of a single program. 1 : M99 terminates compilation of a single program. M02 0 : M02 does not terminat
  • Page 482J. PARAMETERS APPENDIX B–61803E–1/10 #7 #6 #5 #4 #3 #2 #1 #0 Compile 9000 M3MB M2MB M1MB M512 M256 M128 parameter (Only for personal computer) #7 #6 #5 #4 #3 #2 #1 #0 Compile 9001 M4MB SEQN parameter (Only for personal computer) M4MB M3MB M2MB M1MB M512 M256 M128 4.0 MB 1 0 0 0 0 0 0 3.0 MB 0 1 0 0
  • Page 483B–61803E–1/10 APPENDIX J. PARAMETERS #7 #6 #5 #4 #3 #2 #1 #0 9002 EXT1 PWSR DAUX XDIL EVF ACL2 ACL1 TCAL TCAL 0 : Makes invalid the sub-program call with T code 1 : Makes effective the sub-program call with T code ACL1 0 : Makes invalid call by the specific code 1 : Makes effective call by the speci
  • Page 484J. PARAMETERS APPENDIX B–61803E–1/10 #7 #6 #5 #4 #3 #2 #1 #0 9004 CUTLG NOP_B HRGC IMG SP_G_C SP_G_B SP_G_B, SP_G_C 00: Standard G code system 01:G code system B 10:G code system C 11:G code system C IMG 0 : FS16-T type (Special G code) 1 : FS16-G type (Special G code) NOP_B 0 : When no other addres
  • Page 485B–61803E–1/10 APPENDIX J. PARAMETERS KEYC 0 : When KEY switch =0, completion code #8529=254 in an access to NC program 1 : KEY switch is not cheched in an access to NC program STDM 0 : The mode and status display is changed on the USER-1, USER-2, and USER-3 screens on which the conversational macro
  • Page 486J. PARAMETERS APPENDIX B–61803E–1/10 HRGCC 0 : Does not set the character display screen to brightness modulation mode. 1 : Sets the character display screen to brightness modulation mode. #7 #6 #5 #4 #3 #2 #1 #0 9009 RSRST RSRST 0: An NC reset does not suspend reader/punch control by a conversation
  • Page 487B–61803E–1/10 APPENDIX J. PARAMETERS 9037 Used number of (1/100) of conversational macro exclusive variable 9038 Conversational macro execlusion program at the time of power supply input (CUSTOM screen) 9039 Auxility macro execution program number 9040 Conversational macro execution program number a
  • Page 488J. PARAMETERS APPENDIX B–61803E–1/10 J.2 EXECUTOR #7 #6 #5 #4 #3 #2 #1 #0 PARAMETER 9000 L2R MKG RSC EXS STP NDP SQN SQN 0 : Displays program number and sequence number of called user program during execution of a recorded program. 1 : Displays program number of recorded program and sequence number
  • Page 489B–61803E–1/10 APPENDIX J. PARAMETERS NOTE When compilation parameter bit 4 of No. 9005 (AXCLS) is set to 1, MA1 masks O9031, MA2 masks O9032, MA3 masks O9033, and so on. #7 #6 #5 #4 #3 #2 #1 #0 9011 MTC MTC 0 : Does not mask a T code execution macro call. 1 : Masks a T code execution macro call. 479
  • Page 490K. ERROR CODES APPENDIX B–61803E–1/10 K ERROR CODES 480
  • Page 491B–61803E–1/10 APPENDIX K. ERROR CODES K.1 COMPLIER ERROR (1) Display of error codes The error codes are displayed as follows when an error occurs. CODES (SYSTEM P) *ME000 *NO. = 0000–0000–0000 Block number Sequence number Program number Error message number If the program does not contain any sequen
  • Page 492K. ERROR CODES APPENDIX B–61803E–1/10 No. Explanation 043 The ’]’ of the [] is not found. 044 The second ’]’ of the ATAN []/[] is not found. 045 The ’]’ of the ATAN []/[] is not found. 046 The first ’]’ of the ATAN []/[
  • Page 493B–61803E–1/10 APPENDIX K. ERROR CODES No. Explanation 101 The ROM module has caused a memory overflow. 102 256 KByte ROM module cannot be used with this macro executor. 111 A time error occurred while waiting for answer from the FA writer. 112 A parity error occurred while waiting for answer from th
  • Page 494K. ERROR CODES APPENDIX B–61803E–1/10 K.2 The following is an explanation of the supplementary P/S error codes that may occur at the time of execution of P-CODE program. EXECUTOR ERROR CODE Code Explanation 110 The absolute value of the data of the fixed decimal point display exceeds the allowable r
  • Page 495B–61803E–1/10 APPENDIX L. CHARACTER COORDINATE SYSTEM L CHARACTER COORDINATE SYSTEM 485
  • Page 49600 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 79 00 00 05 05 L. CHARACTER COORDINATE SYSTEM 10 10 486 APPENDIX 15 15 (1) For 12 soft keys display 20 20 24 24 00 05 10 15 20 25 30 35 40 45 50 55 60 65 70 75 79 B–61803E–1/10
  • Page 497B–61803E–1/10 APPENDIX L. CHARACTER COORDINATE SYSTEM (2) For 7soft keys display 00 05 10 15 39 39 35 35 30 30 25 25 20 20 15 15 10 10 05 05 00 00 00 05 10 15 487
  • Page 498M. SCREEN DISPLAY ON A VGA GRAPHICS DISPLAY UNIT APPENDIX B–61803E–1/10 M SCREEN DISPLAY ON A VGA GRAPHICS DISPLAY UNIT 488
  • Page 499M. SCREEN DISPLAY ON A VGA B–61803E–1/10 APPENDIX GRAPHICS DISPLAY UNIT M.1 DISPLAY COLOR SPECIFICATION EXTENSION M.1.1 When using a VGA graphics display unit, the user can choose any of Overview sixteen colors for character display and graphics display. Moreover, the user can choose from sixteen co
  • Page 500M. SCREEN DISPLAY ON A VGA GRAPHICS DISPLAY UNIT APPENDIX B–61803E–1/10 =9 . . Color of color palette 9 =10 . . Color of color palette 10 =11 . . Color of color palette 11 =12 . . Color of color palette 12 =13 . . Color of color palette 13 =14 . . Color of color palette 14 =15 . . Color of color pal
  • Page 501M. SCREEN DISPLAY ON A VGA B–61803E–1/10 APPENDIX GRAPHICS DISPLAY UNIT M.2 SCREEN ERASURE EXTENSION M.2.1 When a VGA graphics display unit is used, the screen is erased using color Overview palette 7 for character display and a selected color for the background. If no of background color has been s
  • Page 502M. SCREEN DISPLAY ON A VGA GRAPHICS DISPLAY UNIT APPENDIX B–61803E–1/10 M.3 EXTENSION OF NUMBER OF DISPLAY LINES M.3.1 When a VGA graphics display unit having twelve soft keys is used, and bit 2 (CM30) of compile parameter No. 9009 is set to 1, up to 30 lines Overview including the upper three lines
  • Page 503M. SCREEN DISPLAY ON A VGA B–61803E–1/10 APPENDIX GRAPHICS DISPLAY UNIT M.3.2 Compile Parameters #7 #6 #5 #4 #3 #2 #1 #0 9009 CM30 LM30 LM30 0 : The full 30–line screen is not used for VGA display. (Super CAP) 1 : The full 30–line screen is used for VGA display. (Super CAP) CM30 0 : The full 30–line
  • Page 504M. SCREEN DISPLAY ON A VGA GRAPHICS DISPLAY UNIT APPENDIX B–61803E–1/10 M.4 GRAPHICS COORDINATE SYSTEM M.4.1 When a VGA graphics display unit having twelve soft keys is used, the Overview X coordinate of the graphics coordinate system ranges from –320 to 319 (from left to right), while the Y coordin
  • Page 505N. DISPLAY WITH A BACKGROUND COLOR B–61803E–1/10 APPENDIX ON THE CUSTOM SCREEN DISPLAY WITH A BACKGROUND COLOR ON THE N CUSTOM SCREEN 495
  • Page 506N. DISPLAY WITH A BACKGROUND COLOR ON THE CUSTOM SCREEN APPENDIX B–61803E–1/10 N.1 When a VGA graphics display unit is used with the Series 16i/18i/20i/21i, display with a background color can be provided on the conversational OVERVIEW macro (CUSTOM) screen by setting bit 0 (VGAR) of compile paramet
  • Page 507N. DISPLAY WITH A BACKGROUND COLOR B–61803E–1/10 APPENDIX ON THE CUSTOM SCREEN N.3 ITEMS OF THE Item (P_) Description Parameter COMMAND FOR 000 Clears the screen with a background color. None DISPLAY WITH A 001 Clears the data display area only. None 002 Clears the screen background with a backgroun
  • Page 508N. DISPLAY WITH A BACKGROUND COLOR ON THE CUSTOM SCREEN APPENDIX B–61803E–1/10 N.4 Items (000, 001, 002, 003) DETAILS OF ITEMS The items (000 and 002) clear the display with a background color and OF THE COMMAND character display. FOR DISPLAY WITH The items (001 and 003) clear only the display with
  • Page 509N. DISPLAY WITH A BACKGROUND COLOR B–61803E–1/10 APPENDIX ON THE CUSTOM SCREEN Item (015) X_: Frame start point (X–axis) Y_: Frame start point (Y–axis) The X and Y points represent the coordinates for character display. A fixed frame size is used: 40 characters along the X–axis, and one line along t
  • Page 510N. DISPLAY WITH A BACKGROUND COLOR ON THE CUSTOM SCREEN APPENDIX B–61803E–1/10 Item (020) (Usable with a display unit having twelve soft keys) R_: Frame number (1 to 3) X_: Frame start point (X–axis) Y_: Frame start point (Y–axis) The X and Y points represent the coordinates for character display. A
  • Page 511N. DISPLAY WITH A BACKGROUND COLOR B–61803E–1/10 APPENDIX ON THE CUSTOM SCREEN When a display unit having twelve soft keys is used 1 = Selects soft key 1 2 = Selects soft key 2 3 = Selects soft key 3 4 = Selects soft key 4 5 = Selects soft key 5 6 = Selects soft key 6 7 = Selects soft key 7 8 = Sele
  • Page 512N. DISPLAY WITH A BACKGROUND COLOR ON THE CUSTOM SCREEN APPENDIX B–61803E–1/10 Item (042) R_: Color palette setting selection number (0 to 1) R = 0 Standard color for a screen with a background color R value G value B value Graphics Color palette 0 0 0 0 Color palette 1 15 0 0 Color palette 2 0 15 0
  • Page 513N. DISPLAY WITH A BACKGROUND COLOR B–61803E–1/10 APPENDIX ON THE CUSTOM SCREEN R = 1 Standard color for a screen without a background color R value G value B value Graphics Color palette 0 0 0 0 Color palette 1 15 0 0 Color palette 2 0 15 0 Color palette 3 15 15 0 Color palette 4 0 0 15 Color palett
  • Page 514N. DISPLAY WITH A BACKGROUND COLOR ON THE CUSTOM SCREEN APPENDIX B–61803E–1/10 D Default values of CNC system Palette R G B No value value value Color Use in the CNC software 0 0 0 0 No color 1 8 0 0 Dark red Alarm 2 0 8 0 Dark green Title, soft key 1 3 8 8 0 Ocher Input keys, O/
  • Page 515N. DISPLAY WITH A BACKGROUND COLOR B–61803E–1/10 APPENDIX ON THE CUSTOM SCREEN N.5 COMPILE #7 #6 #5 #4 #3 #2 #1 #0 PARAMETERS 9100 MSFT C9WN DLMT VKLN VGCL VGAR VGAR 0 : Does not display the CUSTOM screen with a background color. 1 : Displays the CUSTOM screen with a background color. VGCL 0 : Does
  • Page 516N. DISPLAY WITH A BACKGROUND COLOR ON THE CUSTOM SCREEN APPENDIX B–61803E–1/10 N.6 RELATED ITEMS N.6.1 Note the following related compile parameters for display. Related Compile #7 #6 #5 #4 #3 #2 #1 #0 Parameters 9002 DAUX DAUX = 0 : The CUSTOM screen is not displayed at power–up. = 1 : The CUSTOM s
  • Page 517N. DISPLAY WITH A BACKGROUND COLOR B–61803E–1/10 APPENDIX ON THE CUSTOM SCREEN #7 #6 #5 #4 #3 #2 #1 #0 9007 US19WK US19WK = 0 : When display with 12 soft keys is selected, the position of the key–in line is not changed in a window with seven soft keys. = 1 : When display with 12 soft keys is selecte
  • Page 518O. FANUC Super CAPi T APPENDIX B–61803E–1/10 O FANUC Super CAPi T NOTE The following description applies to those Super CAPi T series that support complex lathes. 508
  • Page 519B–61803E–1/10 APPENDIX O. FANUC Super CAPi T O.1 In the lathe with ATC, the preparation of the tool used in the next process ATC FUNCTION is necessary in order to do the tool change quickly. In this function, it is possible to read T–code of the next process because macro parameters to refer to T–co
  • Page 520O. FANUC Super CAPi T APPENDIX B–61803E–1/10 2. When the turret number is the same as the previous one, going to 6 3. When the tool change operation has already done, going to 5 4. Executing T–code (Turret number + Compensation number ”0”) 5. Executing M–code for the tool change operation 6. Executi
  • Page 521B–61803E–1/10 APPENDIX O. FANUC Super CAPi T N21 #1=#20696; Compensation number #2=#20682; Turret number #3=#20693; T–code of the next process N22 IF [#2GE10000] GOTO 30; No outputting a turret number #4=#2*100+#1; Outputting a turret number N30 #10699=#2; keeping a turret number IF [#9127NE2] GOTO
  • Page 522O. FANUC Super CAPi T APPENDIX B–61803E–1/10 0 : Data with decimal point 1–7 : The number of digits below a decimal point O.1.3.3 It is possible to output NC program to the format of the macro program Output condition call. D Setting output data to necessary variables D Setting #0 to unnecessary var
  • Page 523B–61803E–1/10 APPENDIX O. FANUC Super CAPi T Bit Number #7 #6 #5 #4 #3 #2 #1 #0 9764 TOT UPC Bit 0 (TRS) 0 : Sub-programs are called from the ROM in the transfer process. UPC 1 : In the user’s macro program, the NC program is output to the format of G–code macro call or M–code macro call when ”P8” o
  • Page 524O. FANUC Super CAPi T APPENDIX B–61803E–1/10 O.2 When Complex Lathe Application which is an optional function is available, the user’s macro program is called from the following two THE USER’S MACRO places. INTERFACE FOR COMPLEX LATHE D The head of a machining program and the preprocessing part of a
  • Page 525B–61803E–1/10 APPENDIX O. FANUC Super CAPi T O.2.2.1 In NC program conversion, the outputting part has to be put between NC Program output ”P10” when an executed program is output as it is. Example) G00 X0. Z0. ; P10; G01 X100. F500 ; Only these two lines are output as a Z100. ; NC program. P10; G00
  • Page 526O. FANUC Super CAPi T APPENDIX B–61803E–1/10 NOTE 1 #107?? is P–code variable. The limits are #10700–#10742. When P–code macro variables 4000 function is available, the limits of variables are #14000–#14042. And, when Complex lathe application is available, the limits of variables for 2nd path are #
  • Page 527B–61803E–1/10 APPENDIX O. FANUC Super CAPi T NOTE When parameter TCD is set to 0, this function is not available. CLMPN1 9292 CLMPN1 The number of a compile parameter storing G/M–code in order to call the macro program called from the head of a machining program and the preprocessing part of a proce
  • Page 528O. FANUC Super CAPi T APPENDIX B–61803E–1/10 O.3 Process data is added and changed because machining types are added. CONCERNING PROCESS DATA 518
  • Page 529B–61803E–1/10 APPENDIX O. FANUC Super CAPi T + 0 Work material +30 Finishing allowance X (*2) + 1 Work figure (1=Bar ,2=Rough Shape) +31 Finishing allowance Z (*2) + 2 Outside diameter D (Bar) +32 End face cutting allowance E, CZ + 3 Inside diameter H (Bar) +33 T code T [1] + 4 Len
  • Page 530O. FANUC Super CAPi T APPENDIX B–61803E–1/10 + 0 Outside diameter X1 (Rough shape) +30 Inside diameter X4 (Rough shape) + 1 Outside diameter Z1 (Rough shape) +31 Inside diameter Z4 (Rough shape) + 2 Outside diameter X2 (Rough shape) +32 Inside diameter X5 (Rough shape) + 3 Outside
  • Page 531B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Bar (Rough machining) + 0 Process number +30 Spindle speed + 1 Unused +31 Roughness + 2 System utilization area (*3) +32 Escape amount Machining movement (1=Standard, + 3 Machining type (*4) +33 2
  • Page 532O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Bar (Finishing) + 0 Process number +30 Spindle speed + 1 Unused +31 Roughness + 2 System utilization area (*3) +32 Escape amount + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Tool
  • Page 533B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Pattern Repeating (Rough machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused +
  • Page 534O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Pattern Repeating (Finishing) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Mac
  • Page 535B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Residual Cutting (Rough machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused +
  • Page 536O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Residual Cutting (Finishing) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Mach
  • Page 537B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D End Facing (Rough machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Unused +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Machining cycle (
  • Page 538O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D End Facing (Finishing) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Unused +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Machining cycle (*7) +3
  • Page 539B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Threading + 0 Process number +30 Unused + 1 Unused +31 Number of threads + 2 System utilization area (*3) +32 Spark out + 3 Machining type (*4) +33 Height of threads + 4 Machining area (*5) +34 Chamfering (1=ON, 2=OFF) Cutting number/Cutting depth selec
  • Page 540O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Grooving (Rough machining) + 0 Process number +30 Groove angle Figure pattern for Trapezoid pattern groove + 1 Unused +31 (*34) Start point X + 2 System utilization area (*3) +32 Star
  • Page 541B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Grooving (Finishing) + 0 Process number +30 Groove angle Figure pattern for Trapezoid pattern groove + 1 Unused +31 (*34) Start point X + 2 System utilization area (*3) +32 + 3 Machin
  • Page 542O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Necking + 0 Process number +30 Necking dimension D (radius) + 1 Unused +31 Tool angle of the tool used (*27) + 2 System utilization area (*3) +32 Cutting edge angle of the tool used (*27) + 3 Machining type (*4) +33 Necking figure + 4 Machining area (*5
  • Page 543B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Center Drilling + 0 Process number +30 Unused + 1 Machining type(2) (*13) +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Unused +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Machining cyc
  • Page 544O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Drilling + 0 Process number +30 Machining pattern (*14) + 1 Machining type (2) (*13) +31 Decrement in depth of cut + 2 System utilization area (*3) +32 Relief return amount + 3 Machining type (*4) +33 Minimum value for the depth of cut + 4 Unused +34 Re
  • Page 545B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Tapping + 0 Process number +30 Pitch + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Unused +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Machining cycle (*7) +36 Unused + 7 Cut
  • Page 546O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Single Act (when parameter 9766#0 is set to 0) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Unused +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6
  • Page 547B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Single Act II (when parameter 9766#0 is set to 1) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Type (*29) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unu
  • Page 548O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Calling Subprograms (when parameter 9771#3 is set to 0) + 0 Process number +30 Data 3 + 1 Unused +31 Data 4 + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Unused +34 Unused + 5 Tool post (Spindle selection) (*6) +35 U
  • Page 549B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Calling Subprograms II(when parameter 9771#3 is set to 1) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Data Z + 3 Machining type (*4) +33 Sub program No. + 4 Unused +34 Unused + 5 Tool post (Spindle selection)
  • Page 550O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D C-axis Center Drilling + 0 Process number +30 Unused + 1 Machining type(2) (*13) +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unus
  • Page 551B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D C-axis Drilling + 0 Process number +30 Machining pattern (*14) + 1 Machining type (2) (*13) +31 Decrement in depth of cut + 2 System utilization area (*3) +32 Relief return amount + 3 Machining type (*4) +33 Minimum value for the depth of cut + 4 Machin
  • Page 552O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D C-axis Tapping + 0 Process number +30 Pitch + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Machining cycle (*7
  • Page 553B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D C-axis Grooving (Rough machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6
  • Page 554O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D C-axis Grooving (Chamfering) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Mach
  • Page 555B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D C-axis Notching (Rough machining) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6
  • Page 556O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D C–axis Notching (Finishing) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Machi
  • Page 557B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D C-axis Notching (Chamfering) + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Mach
  • Page 558O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D C–axis Cylindrical (Rough machining) Open drawing: Z–axis end coordinate value + 0 Process number +30 (*16) Development drawing: C-axis diameter + 1 Unused +31 (*16) Development drawing: Maximum cylindrical angle + 2 System utilization area (*3) +32 (*1
  • Page 559B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D C–axis Cylindrical (Chamfering) Open drawing: Z–axis end coordinate value + 0 Process number +30 (*16) Development drawing: C-axis diameter + 1 Unused +31 (*16) Development drawing: Maximum cylindrical angle + 2 System utilization area (*3) +32 (*16) +
  • Page 560O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Transfer/Wait + 0 Process number +30 Display data 10 (Data format) + 1 Process type (*35) +31 Display data 11 + 2 System utilization area (*3) +32 Display data 11 (Data format) + 3 Machining type (*4) +33 Display data 12 + 4 Unused +34 Display data 12 (
  • Page 561B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Auxiliary + 0 Process number +30 Display data 10 (Data format) + 1 Unused +31 Display data 11 + 2 System utilization area (*3) +32 Display data 11 (Data format) + 3 Machining type (*4) +33 Display data 12 + 4 Unused +34 Display data 12 (Data format) + 5
  • Page 562O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D M-code Process + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Unused +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Machining cycle (*7) +36 Unused
  • Page 563B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D End process + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Unused +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Machining cycle (*7) +36 Unused +
  • Page 564O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Y-axis Center Drilling + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Machining
  • Page 565B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Y-axis Drilling + 0 Process number +30 Machining pattern (*14) + 1 Machining type (2) (*13) +31 Decrement in depth of cut + 2 System utilization area (*3) +32 Relief return amount + 3 Machining type (*4) +33 Minimum value for the depth of cut + 4 Machin
  • Page 566O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Y-axis Tapping + 0 Process number +30 Pitch + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Unused + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Machining cycle (*7
  • Page 567B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Y-axis Milling + 0 Process number +30 Unused + 1 Unused +31 Unused + 2 System utilization area (*3) +32 Shift direction (*26) + 3 Machining type (*4) +33 Unused + 4 Machining area (*5) +34 Unused + 5 Tool post (Spindle selection) (*6) +35 Unused + 6 Mac
  • Page 568O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D C–axis Milling (Rough machining) Open drawing : Z–axis end coordinate value + 0 Process number +30 (*16) + 1 Unused +31 Open drawing : C–axis diameter (*16) Open drawing : maximum cylindrical angle + 2 System utilization area (*3) +32 (*16) + 3 Machinin
  • Page 569B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D C–axis Milling (Finishing) Open drawing : Z–axis end coordinate value + 0 Process number +30 (*16) + 1 Unused +31 Open drawing : C–axis diameter (*16) Open drawing : maximum cylindrical angle + 2 System utilization area (*3) +32 (*16) + 3 Machining type
  • Page 570O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D C–axis Milling (Chamfering) Open drawing : Z–axis end coordinate value + 0 Process number +30 (*16) + 1 Unused +31 Open drawing : C–axis diameter (*16) Open drawing : maximum cylindrical angle + 2 System utilization area (*3) +32 (*16) + 3 Machining typ
  • Page 571B–61803E–1/10 APPENDIX O. FANUC Super CAPi T D Balance cut (Rough machining) + 0 Process number +30 Spindle speed + 1 Unused +31 Roughness + 2 System utilization area (*3) +32 Escape amount Machining movement (1=Standard, + 3 Machining type (*
  • Page 572O. FANUC Super CAPi T APPENDIX B–61803E–1/10 D Balance cut (Finishing) + 0 Process number +30 Spindle speed + 1 Unused +31 Roughness + 2 System utilization area (*3) +32 Escape amount + 3 Machining type (*4) +33 Unused + 4 Machining area (*5)
  • Page 573B–61803E–1/10 APPENDIX O. FANUC Super CAPi T NOTE (*1) Coolant (Initial setting data) When a new process is made, the data set here is set in the item of ¡ÈCoolant” of each process automatically as an initial value. Moreover, when the item of ¡ÈCoolant” of the initial setting is rewritten while edit
  • Page 574O. FANUC Super CAPi T APPENDIX B–61803E–1/10 (*7) Machining cycle 1 : Roughing 2 : Finishing 3 : Chamfering This is set automatically when a new process is created. And, this is used for a distinction between roughing, finishing, and chamfering and for arranging processes with ”Roughing priority”. (
  • Page 575B–61803E–1/10 APPENDIX O. FANUC Super CAPi T (*18) Grooving tool program point < Outer > 1 : Left 2 : Right < Inner > 1 : Left (fixed) < Face > 1 : Lower 2 : Upper (*19) Cut type 1 : Constant amount, half side cutting 2 : Constant amount, zigzag cutting 3 : Constant amount, both side cutting 4 : Con
  • Page 576O. FANUC Super CAPi T APPENDIX B–61803E–1/10 (*32) Spindle type When complex lathe application is available: 1 : Spindle 1 2 : Spindle 2 5 : Both spindles (*33) Specification of corner part of trapezoid groove pattern input 1 : Chamfer 2 : Corner R (*34) Figure pattern for Trapezoid groove pattern i
  • Page 577P. MACRO EXECUTORS B–61803E–1/10 APPENDIX FOR THE Series 20i P MACRO EXECUTORS FOR THE Series 20i 567
  • Page 578P. MACRO EXECUTORS FOR THE Series 20i APPENDIX B–61803E–1/10 P.1 The Series 20i provides a VGA graphic 8.4” color LCD as the basic DISPLAY UNIT OF THE display unit. Its screen is also displayed with the background color. For details, see Appendix N, ”Display of the CUSTOM Screen with the Series 20i
  • Page 579P. MACRO EXECUTORS B–61803E–1/10 APPENDIX FOR THE Series 20i P.2 SETTING COMPILE (1) Capacity of the program memory required for machining guidance PARAMETERS Without guidance With guidance programming programming No capacity required for addition- 1.5MB 2.0MB al custom software Capacity required fo
  • Page 580P. MACRO EXECUTORS FOR THE Series 20i APPENDIX B–61803E–1/10 Compile parameter #7 #6 #5 #4 #3 #2 #1 #0 9101 AF20I AF20I 1: Enables the Series 20i–dedicated functions, listed below: H Window display H Display of external characters at any position H Shift and scale factor in the graphic coordinate sy
  • Page 581P. MACRO EXECUTORS B–61803E–1/10 APPENDIX FOR THE Series 20i Compile parameter #7 #6 #5 #4 #3 #2 #1 #0 9101 YCNV 1: Displays the machining guidance screen (CUSTOM screen) at the position lower than the normal display position by one line. (This bit must be set to 1 when FANUC sample programs are use
  • Page 582P. MACRO EXECUTORS FOR THE Series 20i APPENDIX B–61803E–1/10 Compile parameter 9033 M code used to call a user program Set it to 97. Compile parameter 9038 Number of the program to execute an interactive macro when the power is turned on Set it to 7076. Compile parameter 9039 Number of the program t
  • Page 583P. MACRO EXECUTORS B–61803E–1/10 APPENDIX FOR THE Series 20i Compile parameter #7 #6 #5 #4 #3 #2 #1 #0 9007 RSAT Compile parameter 9033 M code used to call a user program Set it to 97. Compile parameter 9038 Number of the program to execute an interactive macro when the power is turned on Set it to
  • Page 584P. MACRO EXECUTORS FOR THE Series 20i APPENDIX B–61803E–1/10 P.3 From the Series 20i–TA/FA machining guidance screen, the tools unique to the machine tool builder can be used. These tools are enabled by setting Series bit 5 (GAIDNS) of the compile parameter No. 9001 or bit 2 (AF20i) of 20i–DEDICATED
  • Page 585P. MACRO EXECUTORS B–61803E–1/10 APPENDIX FOR THE Series 20i P.3.1.1 Macro programs for 1) O**** (program number specified for L in a G270 command block) window display : Main processing in a window This program is called after M99 is executed for the first time after the window display command (G27
  • Page 586P. MACRO EXECUTORS FOR THE Series 20i APPENDIX B–61803E–1/10 P.3.1.2 Examples of using O1000 ; (Main program for displaying the machining guidance screen) macro programs for ⋅ (Display of fixed messages in the machining guidance screen) window display ⋅ N100 ; ⋅ (Display of variable portions in the
  • Page 587P. MACRO EXECUTORS B–61803E–1/10 APPENDIX FOR THE Series 20i P.3.2 The character patterns created and registered by users are called external Display of External characters. External characters must be registered with the external character registration command (G319). Up to 150 external characters
  • Page 588P. MACRO EXECUTORS FOR THE Series 20i APPENDIX B–61803E–1/10 P.3.3 If, in an interactive macro program, linear or circular drawing in the Shift and Scale Factor graphic coordinate system is specified, the scale factor and the amounts of shift can be specified by executing the G code command in the i
  • Page 589Q. FS16i/18i/21i–TA Super CAPi T Concerning B–61803E–1/10 APPENDIX CAP Control Module and User’s Module FS16i/18i/21i–TA SUPER CAPi T CONCERNING CAP Q CONTROL MODULE AND USER’S MODULE 579
  • Page 590Q. FS16i/18i/21i–TA Super CAPi T Concerning CAP Control Module and User’s Module APPENDIX B–61803E–1/10 Q.1 FS16/18–TB and FS16/18–TC adopts the method of loading it to the OUTLINE custom memory of CNC that the MEM format file of Super CAP T/II T combining the original part supplied from FANUC with
  • Page 591Q. FS16i/18i/21i–TA Super CAPi T Concerning B–61803E–1/10 APPENDIX CAP Control Module and User’s Module Q.2 It is necessary to prepare following development equipment beforehand to develop the user’s modules and to operate on CNC. DEVELOPMENT ENVIRONMENT (1) Personal Computer D Main memory size of 6
  • Page 592Q. FS16i/18i/21i–TA Super CAPi T Concerning CAP Control Module and User’s Module APPENDIX B–61803E–1/10 Q.3 The software of FANUC Super CAPi T MACRO LIBRARY is stored on the floppy disk of plural pieces of 3.5 inches and is offered. Software is INSTALLATION OF installed from these floppy disks into
  • Page 593Q. FS16i/18i/21i–TA Super CAPi T Concerning B–61803E–1/10 APPENDIX CAP Control Module and User’s Module C:\mcomp \tool \mex \usr \fanuc \series \edition \sampl D The Explanation Of Directories 1. \mcomp\mex\ The macro library for making the user’s module in FANUC Super CAPi T MACRO LIBRARY is stored
  • Page 594Q. FS16i/18i/21i–TA Super CAPi T Concerning CAP Control Module and User’s Module APPENDIX B–61803E–1/10 Q.4 The file of the MEM format made from each file that FANUC offered is called CAP control module. The user does loading this file and the user’s CAP CONTROL module in the following description.
  • Page 595Q. FS16i/18i/21i–TA Super CAPi T Concerning B–61803E–1/10 APPENDIX CAP Control Module and User’s Module Q.5 As for User’s module, the user’s module 1 and the user’s module 2 are made. The procedure for making and developing user’s modules is same USER’S MODULE as the past. In the link control file,
  • Page 596Q. FS16i/18i/21i–TA Super CAPi T Concerning CAP Control Module and User’s Module APPENDIX B–61803E–1/10 In case of two user’s program modules, each of the link control files for the user’s module 1 and 2 must have the same compile parameters. (Except compile parameter number 9000.) Q.5.3 The user’s
  • Page 597Q. FS16i/18i/21i–TA Super CAPi T Concerning B–61803E–1/10 APPENDIX CAP Control Module and User’s Module Q.5.4 In case the program of the same number exists in the both the FANUC Execution of User’s standard macro program in CAP control module and the user’s macro program in the user’s module, the pr
  • Page 598Q. FS16i/18i/21i–TA Super CAPi T Concerning CAP Control Module and User’s Module APPENDIX B–61803E–1/10 Q.6 RESTRICTIONS OF (1) Both the user’s module 1 and 2 must be loaded to CNC. If the user’s modules are not loaded, it is unwarrantable. SUPER CAPi T (2) The contents of the link control file for
  • Page 599Q. FS16i/18i/21i–TA Super CAPi T Concerning B–61803E–1/10 APPENDIX CAP Control Module and User’s Module Q.7 RESTRICTIONS (1) The method of creating the CAP control module depends on G–Code system used in order to program the user’s macro program. In case ABOUT G–CODE used G–code system is different
  • Page 600Q. FS16i/18i/21i–TA Super CAPi T Concerning CAP Control Module and User’s Module APPENDIX B–61803E–1/10 Q.8 EXAMPLE OF D Example MAKING USER’S The size of the user’s module 1 made by linking the CAPS macro program and the user’s macro program for the auxiliary process is MODULE 256Kbytes. And, the s
  • Page 601Q. FS16i/18i/21i–TA Super CAPi T Concerning B–61803E–1/10 APPENDIX CAP Control Module and User’s Module Q.8.2 The link control files is made for making the user’s module 1 and 2. Making Link Control D Link file for the user’s program module 1¡ÊF16ITP1.LNK) Files /* /* Conversation MACRO Sample progr
  • Page 602Q. FS16i/18i/21i–TA Super CAPi T Concerning CAP Control Module and User’s Module APPENDIX B–61803E–1/10 D Link file for the user’s program module 2¡ÊF16TCP2.LNK) /* /* Conversation MACRO Sample program LINK control file. /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /* Macro Library for the user’s module 2
  • Page 603B–61803E–1/10 Index [A] Commands for Reading/Writing Variables Stored in the Remote Head, 439 A Bit Cannot be Specified to Read a Parameter., 458 Common Conversational Macro Screen, 161 Addition of Options, 262 Common Conversational Macro Variable, 162 Additional Variable, 516 Common Variables (#100
  • Page 604Index B–61803E–1/10 Development Environment, 581 Execution Macro Call Mask Function, 158 Differences between Series 0 and Series 16/18/0i Execution of User’s Module, 587 (Conversion from FS0 to FS16/18/0i), 453 Explanation of Program, 188, 232 Display Character Specification, 370 Explanation of Vari
  • Page 605B–61803E–1/10 Index [H] Macro Compiler and Macro Executor, 7 Macro Compiler/macro ExecutOr with Cap I (Series Handling Floppy Disk , 242 16/18), 250 Macro Complier Operation (Series 16–A/18–A), 237 Macro Executor Controls, 23 [I] Macro Executors for the Series 20i, 567 Improvements Featured by Versi
  • Page 606Index B–61803E–1/10 PMC Axis Control Example, 120 Series 16/18 2–Path Dedicated Control Function, 160 PMC Read Control Code, 455 Series 20i–Dedicated Macro Tools, 574 PMC Write Control Code, 455 Setting a parameter, 392, 421 Presetting Relative Coordinates, 105 Setting Compile Parameters, 569 Settin
  • Page 607B–61803E–1/10 Index Table for Editing by P–G Mate, 12 User’s Module, 585 The Method for Displaying P–CODE Variables Using a User Program to Display Guidance on the #10000 or Larger has been Changed., 462 Detailed Program Data Screen (Not Supported by The ROM Size is Specified Differently., 458 Ver.1
  • Page 608
  • Page 609Revision Record FANUCĄSeriesĄ16/18/20/21 PROGRAMMING MANUAL (Macro Compiler/Macro Executor) (B–61803E–1) S Series 21 was added. 05 Dec., 1994 10 Jul., 2001 S Series 16i/18i/21i–B were added. S Execution macro call mask function was added in 6.33. S Series 16–MODEL B was added. S Graphic cursor funct
  • Page 610
  • Page 611
  • Page 612FANUC LTD Printed in Japan