Description
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
Declaration
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.
1 | : | MTB |
2 | : | End user |
When one is set to the bit, it is meant to remove corresponding NC data protection.
The meaning of each bit is as follows.
pattern[0] |
|
||||||||||||||||||||||||
pattern[1] |
|
||||||||||||||||||||||||
pattern[2] |
|
||||||||||||||||||||||||
pattern[3] |
|
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.
Return
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 | |||||||||
---|---|---|---|---|---|---|---|---|---|---|
(1) |
The NC control software or the Ethernet firmware does not support this function. |
|||||||||
(3) |
The specification of user_id is wrong. |
|||||||||
(17) |
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"
CNC option
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.
When Ethernet board is used,
- only Ethernet function is required.
CNC parameter
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
Please refer to the table below for the meaning of each bit.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
Please refer to the table below for the meaning of each bit.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
No.260
bit 0
:
F-ROM user file(PMC ladder)
bit 1
:
F-ROM user file(C language executor)
bit 2
:
F-ROM user file(Macro executor/Order-made macro)
bit 3
:
F-ROM user file(PMC C language)
bit 4
:
F-ROM user file(Maintenance information)
bit 5
:
F-ROM user file(Embedded macro function)
bit 6
:
(Reserved)
bit 7
:
Image of the entire S-RAM
No.251
No.261
bit 0
:
NC programs
bit 1
:
P code macro variables
bit 2
:
NC parameters
bit 3
:
PMC parameters(R [Internal relay],T [Changeable timer],K [Keep relay],C [Counter],D [Data table])
bit 4 to 7
:
(Reserved)
No.252
No.262
bit 0 to 7
:
(Reserved)
No.253
No.263
bit 0 to 7
:
(Reserved)
Note) In i Series MODEL A, there is no No.252,253,262,263. in the NC parameters.
CNC mode
This function can be used in any CNC mode.
Available CNC
0i-A | 0i-B/C(Note) | 0i-D | 0i-F | 15 | 15i | 16 | 18 | 21 | 16i-A | 18i-A | 21i-A | 16i-B | 18i-B | 21i-B | 30i-A | 30i-B | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
M (Machining) | |||||||||||||||||
T (Turning) | - | ||||||||||||||||
LC (Loader) | - | - | - | - | - | - | - | - |
0i-D | 0i-F | 16i | 18i | 30i-A | 30i-B | |
---|---|---|---|---|---|---|
P (Punch press) | - | |||||
L (Laser) | - | - | - | - | ||
W (Wire) | - | - |
Power Mate i-D | |
Power Mate i-H | |
Power Motion i-A | X |
"O" | : | Both Ethernet and HSSB | |
"E" | : | Ethernet | |
"H" | : | HSSB | |
"X" | : | Cannot be used | |
"-" | : | None |
Note) 0i-C does not support the HSSB function.
See Also