A-79955e 01 050818
A-79955e 01 050818
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 1/ 17
1.1
Outline
Outline
This function protects the program by storing the program made by the machine tool builders in the folder (Hereafter, it is called MTB1 folder) only for the embedded macro, and adding the attribute to the MTB1 folder. The followings are available by this function. (1) A special program memory capacity of 100Kbyte (correspond about 260m) is added besides a usual program memory capacity. It is included in the registration number of usual programs about the program number that can be registered. (2) The attribute of edit prohibition and edit/display prohibition can be put on the MTB1 folder by the setting. Moreover, it can lock a set value according to a special password and the key word. (3) The program in the MTB1 folder can be called by the M/T code etc, the macro calls by G codes, the macro calls by G65/G66 and subprogram calls by M98 etc. (4) Common variables (#200-#499) of the custom macro are added.
Note This function has the following difference points from the embedded macro function on the FS16/18/21i-B. - The program storage form. - The program creation procedure. - The specification of the program protection, etc.
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 2/ 17
1.2
1.2.1
Explanation
Explanation
Detailed explanation
This function protects the program by storing the program made by the MTB in the MTB1 folder only for the embedded macro, and adding the attribute to the MTB1 folder.
//CNC_MEM SYSTEM MTB1 (embedded macro folder) MTB2 USER LIBRARY PATH1
(1) Program memory capacity A special program memory capacity of 100Kbyte (correspond about 260m) is added besides a usual program memory capacity. The special program memory capacity is managed besides a usual program memory capacity. The display of the program memory capacity (used page and free page) is as follows. - When you display in the MTB1 folder Program memory capacity of embedded macro - When you display in other folders Usual program memory capacity
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 3/ 17
(2) Registration program number The usual programs and special programs can be registered within the ranges of the registration program number. (3) Protection function of program Two kinds of attributes can be added to the MTB1 folder. 1Edit disable attribute Attribute of the program in the folder becomes an edit prohibition. Change prohibition of content of program Change prohibition of program name and attributes of programs Deletion prohibition of program The program cannot be created newly in the folder. 2Edit/display disable attribute Attribute of the program in the folder becomes an edit prohibition. The program cannot be created newly in the folder. The program in the folder becomes invisible. The output of the program in the folder to an external device is prohibited. By setting the edit prohibition and edit/display prohibition attribute, the program can be protected from the deletion or the modification by the mis-operation. Note Subfolder cannot be created in MTB1 folder. (4) Password and key word
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 4/ 17
It can lock a set value of the attribute of the MTB1 folder according to the parameter of the password (No.11311) and the key word (No.11312). In the locking state, the attribute of the MTB1 folder cannot be changed. As a result, if the key word is not correctly set, the protection of the program in the MTB1 folder cannot be released. - The state that key is locking It is the state when the parameter of the password (No.11311) and the key word (No.11312) are different value. The value set as both parameters is not displayed. - The state that key is open It is the state when the parameter of the password (No.11311) and the key word (No.11312) are the same value. The value set as both parameters is not displayed. - The state that key is not set When 0 is displayed in the parameter of the password (No.11311), it means the password has not been set yet. Note The change in the attribute of MTB1 folder is available with the key open state. (5) Calling The program in the MTB1 folder can be called by the M/T code etc, the macro calls by G codes, the macro calls by G65/G66 and subprogram calls by M98 etc. Moreover, as for the macro call by G code, the setting of G codes for macro call is added as follows. The relation between added G codes for macro call and the called program number is set by the parameter. It is possible to set it up to ten. Ex.) When the parameters are set as follows, First group G code Program number Number No.12020100 No.120218000 No.1202210 Second group No.12023150 No.120247500 No.120255 Third group No.12026900 No.120278300 No.1202830
the following programs are called by each G code. G codes G100 to G109 G150 to G154 Called program O8000 to O8009 O7500 to O7504
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 5/ 17
O8300 to O8329
When this function becomes effective, the MTB1 folder is added to the top of the search order as a program search folder for the macro call and the subprogram call. (1) When the program that tries to be called is registered in the MTB1 folder, the program of the MTB1 folder is called. (2) When the program that tries to be called is not registered in the MTB1 folder, the program is searched according to the parameter (No.3457). (6) Macro variables Common variables #200 to #499 are added. These variables are independent variables in each path as well as #100. - The data is initialized and set the empty when the power is turned off. - The common variables #100 to #199, #200 to #499, and #500 to #599 for the custom macro are output when the parameter PV5 (No.6001#3) set to 1. - The common variables #100 to #199 and #200 to #499 are cleared to empty by reset when the parameter CCV (No.6001#6) set to 0. They are not cleared by reset at CCV=1.
Note It is also possible to make them to common variables in all paths by specifying the parameter No.6036. When the option for embedded macro is effective and the option for addition of custom macro common variables is not effective, #150 to #199 can not be used but this parameter should be set the number which includes #150 to #199. Ex.) When 200 is set to the parameter (No.6036): - #100 to #299 : used in all paths in common - #300 to #449 : used in each path independently - #150 to #199 is available when the option for Addition of custom macro common variables is effective.
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 6/ 17
Operation explanation
Program creation procedure in MTB1 folder (1) Newly creation 1) Delete all programs and folders in MTB1 are deleted so as to make the MTB1 folder to empty. 2) Create program in the MTB1 folder. The program can be also read from an external device. 3) Set the G code number for the call and the called program number to the parameter (No.12020-12049) if necessary. 4) Set the password to the parameter (No.11311). Set the same value as the password to the key word (No.11312) so as to become the state that the key is open. 5) Set the attribute of the MTB1 folder. 6) Set the values other than the password to the key word (No.11312) so as to become the state that key is locking. (2) Modification/addition 1) Set the same value as the password to the key word (No.11312) so as to become the state that the key is open 2) Delete the attribute of the MTB1 folder. 3) Modify or add the program in the MTB1 folder. 4) Set the attribute of the MTB1 folder. 5) Set the values other than the password to the key word (No.11312) so as to become the state that key is locking. (3) Copy (copy to other CNC) 1) Delete all programs and folders in MTB1 are deleted so as to make the MTB1 folder to empty. 2) Read the program into the MTB1 folder from an external device. 3) Set the G code number for the call and the called program number to the parameter (No.12020-12049) if necessary. 4) Set the password to the parameter (No.11311). Set the same value as the password to the key word (No.11312) so as to become the state that the key is open. 5) Set the attribute of the MTB1 folder. 6) Set the values other than the password to the key word (No.11312) so as to become the state that key is locking.
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 7/ 17
Setting of attribute of MTB1 folder (1) Set the same value as the password to the key word (No.11312) so that it becomes the state that the key is open. (2) Change to EDIT mode and the program list screen appears. Operate the soft keys in following the order.
Setting of edit/display prohibition attribute Setting of edit prohibition attribute (3) Set the cursor on the MTB1 folder and press the EDIT DISABL or DISP DISABL.
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 8/ 17
(4) Set the values other than the password to the key word (No.11312) so as to become the state that key is locking.
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 9/ 17
1.2.2
Parameters
#7 3457 SCF #6 SCC #5 #4 #3 SYS #2 MC1 #1 MC2 #0 LIB
parameter input Bit path The search folder in the following each subprogram call and macro call is set. - Subprogram call by M code - Subprogram call by ASCII code - Subprogram call by the second auxiliary function code - Macro call by G code - Macro call by M code - Macro call by T code - One-touch macro call
#0
The common program folder "//CNC_MEM/USER/LIBRARY/" of the initial Set as a search folder. Not set as a search folder.
#1
MC2
MTB dedicated folder 2 "//CNC_MEM/MTB2/" of the initial folder is: 0: 1: Set as a search folder. Not set as a search folder.
#2
MC1
MTB dedicated folder 1 "//CNC_MEM/MTB1/" of the initial folder is: 0: 1: Set as a search folder. Not set as a search folder.
#3
SYS
The system folder "//CNC_MEM/SYSTEM/" of the initial folder is: 0: 1: Set as a search folder. Not set as a search folder. Note When the folder of two or more is specified, CNC searches the calling program in order of the above-mentioned LIB, MC2, MC1, and SYS.
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 10/ 17
#6
SCC
The same folder as the main program is added to the top of the search order as a search folder for the following each subprogram call and macro call. - Subprogram call by M code - Subprogram call by ASCI code - Subprogram call by the second auxiliary function code - Macro call by G code - Macro call by M code - Macro call by T code - One-touch macro call 0: 1: Not added Added
When a search folder is added, a search is made in the following order: 0) Folder only for embedded macro (With the embedded macro-function. ) 1) Folder where the main program is stored 2) Common program folder, which is an initial folder 3) MTB-dedicated folder 2, which is an initial folder 4) MTB-dedicated folder 1, which is an initial folder 5) System folder, which is an initial folder The folders of 2) through 5) can be excluded from search target folders by setting the parameters LIB, MC2, MC1, and SYS. #7 SCF It is set whether to add the search folder in the following each subprogram call and macro call. - Subprogram call by M98 - Figure copy by G72.1/G72.2 - Macro call by G65/G66/G66.1 - Macro interrupt by M96 0: 1: Not added Added
When a search folder is added, CNC searches in the following order: 0) Folder only for embedded macro (With the embedded macro-function. ) 1) Folder where the main program is stored 2) Common program folder, which is an initial folder 3) MTB-dedicated folder 2, which is an initial folder 4) MTB-dedicated folder 1, which is an initial folder 5) System folder, which is an initial folder The folders of 3) through 5) can be excluded from search target folders by setting the parameters MC2, MC1, and SYS.
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 11/ 17
#7 6001
#6 CCV
#5
#4
#3 PV5
#2
#1
#0
parameter input Bit path In the common variables of the custom macro: 0: 1: #500 to #549(*) are output. #100 to #149(*1) and #500 to #549(*1) are output.
*1Output variables are as follows according to the combination of added options. When the parameter PV5=0 Option Addition of custom macro common variables Non Embedded macro Non Yes #500 to #549 #500 to #549 Yes #500 to #999 #500 to #999
When the parameter PV5=1 Option Addition of custom macro common variables Non Embedded macro Non Yes #100 to #149 and #500 to #549 #100 to #149, #200 to #499 and #500 to #549 Yes #100 to #199 and #500 to #999 #100 to #199, #200 to #499 and #500 to #999
#6
CCV
When CNC is reset, the common variables #100 to #149(*1) which are cleared by turning off the power: 0: 1: is cleared as empty. is not cleared.
(*1) Cleared variables are as follows according to the combination of added options. Option Addition of custom macro common variables Non Embedded macro Non Yes #100 to #149 #100 to #149 and #200 to #499 Yes #100 to #199 #100 to #199 and #200 to #499
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 12/ 17
Number of common custom macro variables between each path 6036 (for #100 to #199 (#499) )
Parameter input Word system common 0 to 400 When the common memory between each path is used, this parameter sets the number of custom macro common variables to be shared (custom macro variables common to paths). Common variables #100 to #199 (up to #499 in a system with the embedded macro option) may be shared. Ensure that the maximum number of usable macro common variables is not exceeded. Example When 20 is set in parameter No. 6036 #100 to #119: Shared by all paths #120 to #149: Used by each path independently
Note 1. To use #150 to #199, the option for addition of custom macro common variables is required. To use #200 to #499, the option of embedded macro is required. 2. When 0 or a negative value is set, the memory common to paths is not used. 3. When the option for embedded macro is effective and the option for addition of custom macro common variables is not effective, #150 to #199 can not be used but this parameter should be set the number which includes #150 to #199.
11311
Parameter input 2-word system common 0 to 99999999 The password to set the attribute of the folder for the embedded macro (MTB1 folder) is set. When the values other than 0 are set to this parameter and the value is different from the parameter of the key word (No.11312), the attribute of the MTB1 folder is locked. Thereafter, the attribute of the MTB1 folder is locked unless the same value as the password is set to the key word. Moreover, the value of the password cannot be changed. - When the key is open, The attribute of the MTB1 folder can not be changed. - When it locks or the key is not set, The attribute of the MTB1 folder can be changed.
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 13/ 17
11312
Parameter input 2-word system common 0 to 99999999 The key word in order to set the attribute of the folder for the embedded macro (MTB1 folder) is set. Note The value is not displayed even if the parameter is set. Moreover, when the power is turned off, this parameter becomes 0.
12020
12023
12026
12029
12032
12035
12038
12041
12044
12047
12021
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 14/ 17
12024
12027
12030
12033
12036
12039
12042
12045
12048
12022
12025
12028
12031
12034
12037
12040
12043
12046
12049
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 15/ 17
Parameter input Word path 1 to 255 The data of the macro call by G code added by the embedded macro is set. G code number and the macro program number for it are set, and the number of G codes is set. These sets can be set up to ten. If G code number duplicates, it gives priority from former set. The set that the G code number or the macro program number or numbers is 0 is invalid. ExampleIn case that the range of macro program number is 7000 to 8999: First group G code Program number Number No.12020100 No.120218000 No.1202210 Second group No.12023150 No.120247500 No.120255 Third group No.12026900 No.120278300 No.1202830
The following program is called by each G code. G code G100 toG109 G150 to G154 G900 to G929 Note The parameter value is regarded as 0, when each parameter is set a out of range value. Called program O8000 to O8009 O7500 to O7504 O8300 to O8329
1.2.3
Note
Note 1 The program in the folder only for the embedded macro (MTB1 folder) can be also deleted by the following operation. - Initialization of SRAM - Clear of program file in IPL function 2 The all program in the MTB1 folder can be saved or restored by the following operation. - All SRAM save/restore in BOOT function - Save/restore in automatic data backup function (When including the program) - Output/input to/from external device 3 As for the program in the MTB1 folder, the following protection function is also effective besides the protection by the folder attributes.
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 16/ 17
- Protection function for program of O8000 and O9000 by parameter - Protection function by encryption of key and program - Setting of attribute to program
Title
Draw
No.
Ed. Date Date Design July.08.05 Design. Description Apprv.
A-79955E/01
page 17/ 17