Description
Reads the various information of F-ROM on CNC. The various information is stored in each member of "ODBFINFORM".
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify the physical slot number of control P.C.B. where F-ROM is mounted.
Especially, if you set the '-1', all F-ROM information in the CNC can be read.
When this function is executed as 'slotno=-1', the effective F-ROM information is packed from a head of the address shown by this argument.
When a physical slot number of the P.C.B which does not exist in slotno is specified, the '0' is set in *num.
Specify the address of the array of ODBFINFORM structure storing the F-ROM information.
Please prepare 1 or 16 arrays according to slotno.
typedef struct odbfinform {
long slotno; /* Slot Number */
char slotname[12]; /* Slot Name */
long fromnum; /* Number of F-ROM SYSTEM data */
struct {
char sysname[12]; /* F-ROM SYSTEM data Name */
long fromsize; /* F-ROM Size */
long fromattrib; /* F-ROM Data attribute */
} info[32];
} ODBFINFORM;
- slotno
- Slot number which belongs to the read F-ROM information.
- slotname
- Slot Name
- This data is terminated with 'NULL'.
- fromnum
- The number of SYSTEM data(SYSTEM Control software, Ladder program etc.) which has been stored in F-ROM.
- sysname
- The name of SYSTEM data which was stored in F-ROM
- When the F-ROM data is read, this name must be specified.
- This data is terminated with 'NULL'.
- fromsize
- F-ROM size for storing SYSTEM data. (Unit:Byte)
- This data can be used for checking the reading size or the writing size.
- fromattrib
- File attribute of F-ROM data.
1 : System file 2 : User file
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) |
||||
(5) |
In order to get more information for this err_no return value, execute cnc_getdtailerr function. The following details status will be set onto the member, err_no of ODBERR structure. And the slot number where an error occurred will be set in err_dtno of ODBERR structure.
|
|||
(13) |
As for the other return codes or the details, see "Return status of Data window function"
CNC option
For HSSB connection,
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 not related to CNC parameter.
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
cnc_fromgetstart cnc_fromget cnc_fromgetend cnc_fromputstart cnc_fromput cnc_fromputend cnc_fromremove