Description
Gets the present state of various NC data protection.
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 |
It is a pointer to data which stores the bit pattern by which the NC data to be protected is shown.
Please secure the consecutive area in four bytes to store data. It is shown that the data is protected (Access inhibited) when the bit is set to one.
The meaning of each bit is as follows.
pattern[0] |
|
||||||||||||||||||||||||
pattern[1] |
|
||||||||||||||||||||||||
pattern[2] |
|
||||||||||||||||||||||||
pattern[3] |
|
Moreover, when each bit is set to one, the functions that return EW_PASSWD are as follows.
Byte position | Bit position | Function name | Note |
---|---|---|---|
pattern[0] | bit 0 | cnc_fromgetstart cnc_fromput cnc_fromremove |
To the file of the PMC ladder |
bit 1 | cnc_fromgetstart cnc_fromput cnc_fromremove |
To the file of the C language executor | |
bit 2 | cnc_fromgetstart cnc_fromput cnc_fromremove |
To the file of the macro executor/Order-made macro | |
bit 3 | cnc_fromgetstart cnc_fromput cnc_fromremove |
To the file of the PMC C language | |
bit 4 | cnc_fromgetstart cnc_fromput cnc_fromremove |
To the file of the maintenance information | |
bit 5 | cnc_fromgetstart cnc_fromput cnc_fromremove |
To the file of the embedded macro function | |
bit 7 | cnc_sramgetstart |
||
pattern[1] | bit 0 | cnc_dwnstart3 cnc_upstart3 cnc_delall cnc_delete |
As for cnc_dwnstart3 and the cnc_upstart3 functions, only NC programs and parameters are protected. |
bit 1 | cnc_rdpmacro cnc_wrpmacro cnc_rdpmacror cnc_wrpmacror |
||
bit 2 | cnc_rdparam cnc_wrparam cnc_rdparar cnc_wrparas cnc_rdparam_ext |
||
bit 3 | pmc_rdpmcrng pmc_wrpmcrng |
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. |
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) At 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