FANUC Series 16i/18i/21i-MA/TA Embedded Macro Function Additional Manual Page 16

Additional Manual
15
Edit
Apprv.
Apprv.Apprv.
Apprv.Desig.
Desig.Desig.
Desig.
Sheet
Title
Draw
No.
/
24
Date
DateDate
Date
Design
DesignDesign
Design
Descri
p
tion
Descri
p
tionDescri
p
tion
Descri
p
tion
Date
DateDate
Date
FANUC Series16i /18i /21i –MA/TA
Embedded Macro
A-77900E
2000.04.11
5. Notes
1) Please store the embedded macro programs in FROM by the embedded macro
program save operation after doing program registration, change and deletion. When
the programs store is not executed after changing embedded macro programs, the
blinking PROG-SAV is displayed on current time display and it informs to an operator
that program store has not been done yet in order not to turn off the CNC power
supply.
By editing the embedded macro program, the program administrative information
(SRAM) and the contents of the embedded macro program (DRAM) are updated.
Then if the CNC power supply is turned off/on, the program administrative information
(SRAM) is differed from the contents of the embedded macro program (DRAM)
because the contents of the embedded macro program is rewritten by that in FROM.
When the CNC power supply is turned on, CNC checks whether the macro program
administrative information of both SRAM and DRAM are matched. If these information
are difference, all embedded macro programs on DRAM are deleted. In this case, the
contents of the embedded macro programs can not be referred and be executed
though the programs in a usual tape storage memory area are referred and executed.
In order to inform this state, the reverse PROG-ERR is displayed on current time
display. If this message is displayed, please do reload operation by softkey
<RELOAD>. By this operation, the embedded macro programs in FROM are loaded
correctly and are used normally.
There is no problem even if a program in a usual tape storage memory area is edited
or the parameter for embedded macro is changed and the CNC power supply is
turned off/on.
2) At the editable embedded macro program state, when program all clear operation
("O-9999"+[DELETE] or turning on the CNC power supply while pushing [DELETE]) is
done, the "PROG-SAV" message is display. In this case, if <SAVE> operation is
done, the embedded macro programs in FROM are deleted.
3) When one program is registered, the program number for embedded macro can not
be changed. In this case, please save all programs to an external device and delete

Contents Summary of FANUC Series 16i/18i/21i-MA/TA Embedded Macro Function Additional Manual

  • Page 1TECHNICAL REPORT (MANUAL) TMN00/0064E Date: Apr. 13, 2000 General Manager of Software Laboratory FANUC Series 16i/18i/21i–MA/TA Embedded Macro Function 1. Communicate this report to: Your information • GE Fanuc-N, GE Fanuc-E FANUC Robotics CINCINNATI MILACRON • Machine tool builder Sales agency End
  • Page 2FANUC Series 16i/ 18i/ 21i –MA/TA Specification Embedded Macro Contents 1. Outline ..............................................................................................................................2 2. Specification ........................................................................
  • Page 31. Outline In this function, the macro programs, which are made by the machine tool builder (MTB), are stored in flash ROM. The macro programs, which are stored in flash ROM, are loaded to the program memory area for the embedded macro (DRAM) when the power supply is turned on. And an operator can c
  • Page 42. Specification # Composition of function CNC FROM DRAM SRAM Parameter Parameter Parameter Program Program Program administrative administrative administrative information (2) information information Embedded macro Embedded (4) Tape storage program macro program memory program (3) Distinction accor
  • Page 5Embedded macro program (macro program) The macro programs made by MTB are stored. When the embedded macro program is edited, an operator edits the program on DRAM and the edited program is stored in FROM by the softkey operation. When the embedded macro program is edited, it is necessary to store th
  • Page 6(4) Call of embedded macro It is possible to call the embedded macro programs by using G-code call for the embedded macro. And it is also possible to call them by custom macro call (G65, G66) and subprogram call (M98). Title FANUC Series16i /18i /21i –MA/TA Embedded Macro Draw No. A-77900E Edit Date
  • Page 73. Detail 1) Program number As for the embedded macro program number, the first program number is set to parameter No.12011 and the last program number is set to No.12012. The remainder program numbers become the user program numbers of the tape storage memory area. When the keyword is matched the p
  • Page 82) Edit of embedded macro program The embedded macro programs on DRAM can be edited by the operation same as the CNC programs of the tape storage memory area. And it is possible to input/output by the reader puncher interface. The edit of the embedded macro programs can be prohibited as follows by p
  • Page 9When the parameters are set like above, G-codes of G100-G109 correspond to O8000-O8009 G-codes of G150-G249 correspond to O7500-O7599 G-codes of G900-G929 correspond to O8300-O8399 Such a relation can be set up to ten sets. And it is possible to call the embedded macro programs by using macro call (
  • Page 10At meeting all the following requirements, the parameter number 12013 keyword cannot be changed. (1) There is a password. (Password ≠0) (2) The range of the embedded macro program number in the embedded data of FROM is different from the range of the embedded macro program number in the parameters.
  • Page 11It is also possible to load the macro program in FROM to DRAM by following operation. (1) Select the EDIT mode and display the program screen (2) Push the softkey [PROG]. (3) Push the softkey . (4) Push the right side softkey several times. (5) Push the softkey . (6) Push the softkey <
  • Page 129) Series / Edition The embedded macro file can manage by the series and edition. It is possible to set the four digits number to the parameter No.12015 as the series and the four digits number to the parameter No. 12016 as the edition. And this series / edition can be stored by the operation
  • Page 134. Operation Embedded macro program making procedure # New making (1) 1) Do the program all clear operation. ("O-9999"+[DELETE]) 2) Decide the embedded macro programs Nos. and input the decided programs Nos. to the parameter No.12011 and 12012. 3) Enable to edit the embedded macro programs. (Paramet
  • Page 14# Correction/change/addition 1) Release the password for embedded macro programs in FROM by the keyword. 2) Change the parameters of the calling G-codes, calling program numbers if necessary. 3) Change the parameter of edit / reference the embedded macro programs if necessary. 4) Edit the embedded m
  • Page 15Massage (Display in the place on present time) # “PROG-SAV” -- Please stores the embedded macro programs. This display is blink when the embedded macro programs are edited. It informs that the contents of edited the embedded macro programs are deleted if the power supply is turned off / on with curr
  • Page 165. Notes 1) Please store the embedded macro programs in FROM by the embedded macro program save operation after doing program registration, change and deletion. When the programs store is not executed after changing embedded macro programs, the blinking PROG-SAV is displayed on current time display
  • Page 17all programs. And please change the parameter No.12011 and 12012 afterwards, and change the program number for embedded macro. 4) The password for the embedded macro can not be changed when setting the password once. In order to change the password, please make the file for embedded macro newly. In
  • Page 18and background graphic display system (M series). Title FANUC Series16i /18i /21i –MA/TA Embedded Macro Draw No. A-77900E Edit Date Design Description Sheet 17 /24 Date 2000.04.11 Desig. Apprv.
  • Page 196. Parameters #7 #6 #5 #4 #3 #2 #1 #0 12001 IMREP [ Data type ] Bit IMREP Action in response to an attempt to register an embedded macro program whose number is the same as that of an existing program 0: An alarm is generated. 1: The existing program is deleted, then the new program is registered. N
  • Page 20Number 12010 Valid / invalid to edit and refer for embedded macro program [ Data type ] Byte [ Valid data range ] 0 to 2 By setting the table below, it is possible to enable/disable the embedded macro program to edit and refer. Prm.No.12010 Editing Reference 0 X X 1 X O 2 O O (Note 1) When the CNC p
  • Page 21Number 12011 First program number for embedded macro [ Data type ] 2-Word [ Valid data range ] 1 to 99999999 Number 12012 Last program number for embedded macro [ Data type ] 2-Word [ Valid data range ] 1 to 99999999 The program numbers for embedded macro are set by these parameters. The program num
  • Page 22Number 12013 Password / Keyword for embedded macro [ Data type ] 2-Word [ Valid data range ] -99999999 to 99999999 When the embedded macro programs are stored in FROM, this parameter is set as a password. When store in FROM ends, this parameter becomes 0 automatically. After that, this parameter use
  • Page 23Number 12015 Series for embedded macro [ Data type ] Word [ Valid data range ] 0 to 9999 Number 12016 Edition for embedded macro [ Data type ] Word [ Valid data range ] 0 to 9999 The series and edition of the FROM file for the embedded macro is set. When the embedded macro data is stored, The series
  • Page 24Number st 12020 G-code No. for embedded macro (the 1 set) nd 12023 G-code No. for embedded macro (the 2 set) | | th 12047 G-code No. for embedded macro (the 10 set) [ Data type ] Word [ Valid data range ] 1 to 999 Number st 12021 Macro programs No. for embedded macro (the 1 set) nd 12024 Macro progr
  • Page 25G-code macro for embedded macro is set. These sets can be specified up to ten sets. The priority is given from a small parameter number set when G-code number comes in succession. When either of G-code number, program number or macro program number parameter is set to 0, the set is invalid. The 1st