Description
Reads the information of subfolder under the specified folder.
Execution of this function is kept waiting when CNC is in editing(including the background edit state).
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
in | : | Specify the maximum number of folders to be read. |
out | : | This function returns the number of folders that were actually read. |
Specify the pointer of the IDBPDFSDIR structure that stores the folder setting value.
The IDBPDFSDIR structure is as follows.
typedef struct idbpdfsdir {
/* input */
char path[212]; /* Path name string */
short req_num; /* Request entry number */
short dummy;
} IDBPDFSDIR ;
- path
- Specify the string having "Drive name + folder name".
The string must be NULL terminated.
Please refer to "General Description (Specifying the folder and file name for FS30i, 0i-D/F and PMi-A.)" for details of the folder name. - req_num
- Specify the index of subfolder information.
The first subfolder index is 0, this data should be incremented 1 by 1.
Specify the pointer of the ODBPDFSDIR structure.
The ODBPDFSDIR structure is as follows.
typedef struct odbpdfsdir {
/* output */
short sub_exist; /* existence of subfolder */
short dummy;
char d_f[36]; /* folder name */
} ODBPDFSDIR ;
- sub_exist
- Indicates if file or subfolder exists under the subfolder which was acquired.
bit 0 : subfolders exists bit 1 : file exists bit 2-15 : not used - d_f
- Subfolder name string, NULL terminated.
This function returns the current subfolder state when called. At the application, modification to the subfolder(path of IDBPDFSDIR), like creating more subfolder/deleting subfolder, should be avoided. |
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) |
NC uses the current resource. |
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 0i-D/F, Series 30i and PMi-A, 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 | O |
"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_rdpdf_alldir cnc_rdpdf_subdirn