The protection pattern data is bit pattern data which collects flags corresponding to various NC data. It is for MTB and for the end user.
This data should be set on each NC, and the data is read to the application during the start of application by the Ethernet library in the each process (copy image of the protection pattern data).
In this function, the copy image of the protection pattern data can be changed. The copy image of the protection pattern data is independent at each process, and the change is effective only to the one which the process by which this function is issued maintains.
Please specify the same key word as the password set on NC for the argument when changing.
Especially, when 0 is specified for the key word, the copy image of the protection pattern data is reset in the original data set on NC.
Error code EW_PASSWD returns when an incorrect key word is specified.
Universal Fanuc Driver
Fanuc Focas Library CD
Arguments : Ethernet
Specify the library handle. See "Library handle" for details.
The user (MTB and the end user) who protects the NC data is specified.
When one is set to the bit, it is meant to remove corresponding NC data protection.
The meaning of each bit is as follows.
After the function is executed, the current bit pattern by which the modified state of various NC data protection is shown is returned.
It is a key word transmitted to NC . The decimal number of eight digits or less can be specified.
NC data protection corresponding to the bit pattern specified for pattern is released if this keyword matches to the password preserved in NC.
Especially, when 0 is specified for the keyword, the copy image of the protection pattern data is reset in the original data set on NC.
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
The major error codes are as follows.
|Return code||Meaning/Error handling|
The NC control software or the Ethernet firmware does not support this function.
The specification of user_id is wrong.
In order to get more information for this err_no return value, execute cnc_getdtailerr function. The following detail status will be set onto the member, err_no of ODBERR structure.
As for the other return codes or the details, see "Return status of Data window function"
For Ethernet connection,
The Ethernet function and the extended driver/library function are necessary. However, in case of Series 16i/18i/21i-B, 0i-B/C, the required CNC option is as follows. When Embedded Ethernet is used,
above two optional functions are not required.
The Ethernet function and the extended driver/library function are necessary.
However, in case of Series 16i/18i/21i-B, 0i-B/C, the required CNC option is as follows.
When Embedded Ethernet is used,
When Ethernet board is used,
- only Ethernet function is required.
This function is related to the following CNC parameter.
See the manual of CNC parameter for details.
No.250-253 : Data corresponding to each bit when you access the NC data in Ethernet
0 : Data access is permitted. 1 : Data access is inhibited. No.254 : Password for Ethernet(For MTB) No.255 : Key word for Ethernet(For MTB)
Password and key word to permit change in parameter No.250-253,254. * MTB sets this parameter. No.260-263 : Data corresponding to each bit when you access the NC data in Ethernet
0 : Data access is permitted. 1 : Data access is inhibited. No.264 : Password for Ethernet(For end user)
No.265 : Key word for Ethernet(For end user)
Password and key word to permit change in parameter No.260-263,264. * The end user sets this parameter. No.250
F-ROM user file(PMC ladder)
F-ROM user file(C language executor)
F-ROM user file(Macro executor/Order-made macro)
F-ROM user file(PMC C language)
F-ROM user file(Maintenance information)
F-ROM user file(Embedded macro function)
Image of the entire S-RAM
P code macro variables
PMC parameters(R [Internal relay],T [Changeable timer],K [Keep relay],C [Counter],D [Data table])
bit 4 to 7
bit 0 to 7
bit 0 to 7
Note) In i Series MODEL A, there is no No.252,253,262,263. in the NC parameters.
This function can be used in any CNC mode.
|P (Punch press)||-|
|Power Mate i-D|
|Power Mate i-H|
|Power Motion i-A||X|
|"O"||:||Both Ethernet and HSSB|
|"X"||:||Cannot be used|
Note) 0i-C does not support the HSSB function.