Description
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
There is difference at the structure between Series 15 and Series 15i/16/18/21/16i/18i/21i/0i/30i/31i/32i/35i/Power Mate i, PMi-A. The ODBSYS structure define type for Series 15 is as follows.
Series 15
typedef struct odbsys {
short dummy ; /* dummy */
char max_axis[2] ;/* Max. controlled axes */
char cnc_type[2] ;/* Kind of CNC (ASCII) */
char mt_type[2] ; /* Kind of M/T/TT (ASCII) */
char series[4] ; /* Series number (ASCII) */
char version[4] ; /* Version number (ASCII) */
char axes[2] ; /* Current controlled axes(ASCII)*/
} ODBSYS ;
The ODBSYS structure define type for Series 15i/16/18/21/16i/18i/21i/0i/30i/31i/32i/35i/Power Mate i, PMi-A is as follows.
Series 15i, 16/18/21, 16i/18i/21i, 0i, 30i/31i/32i, Power Mate i, PMi-A
typedef struct odbsys {
short addinfo ; /* Additional information */
short max_axis ; /* Max. controlled axes */
char cnc_type[2] ;/* Kind of CNC (ASCII) */
char mt_type[2] ; /* Kind of M/T/TT (ASCII) */
char series[4] ; /* Series number (ASCII) */
char version[4] ; /* Version number (ASCII) */
char axes[2] ; /* Current controlled axes(ASCII)*/
} ODBSYS ;
- dummy
- Not used
- addinfo
- Additional information
- This is available at Series 15i/16/18/21, 16i/18i/21i/0i, 30i/31i/32i/35i, Power Mate i, PMi-A.
- bit 0
0 : without loader control function 1 : with loader control function - bit 1
0 : not an i Series CNC 1 : i Series CNC - bit 2
- reserved
- bit 3
0 : without compound machining function 1 : with compound machining function - bit 4
0 : without transfer line function 1 : with transfer line function - Bit5,..,Bit7
- reserved
- Bit8~15
- MODEL information
0 : MODEL information is not supported 1 : MODEL A 2 : MODEL B 3 : MODEL C 4 : MODEL D 6 : MODEL F - In Series 15i, 16/18/21, 16i/18i/21i, 0i-A/B/C, 30i-A, Power Matei, MODEL information is not supported.
- max_axis
- Maximum controlled axes
This is the maximum controlled axes in CNC. - Series 15
- both max_axis[0] and max_axis[1] are NULL('\0') : 10 axes
- in other case : value itself(ASCII: ex.'15')
- Series 15i, 16/18/21, 16i/18i/21i, 0i, 30i, Power Mate i, PMi-A
- value itself(BINARY)
- cnc_type
- Kind of CNC (ASCII)
'15' : Series 15/15i '16' : Series 16/16i '18' : Series 18/18i '21' : Series 21/21i '30' : Series 30i '31' : Series 31i '32' : Series 32i '35' : Series 35i ' 0' : Series 0i 'PD' : Power Mate i-D 'PH' : Power Mate i-H 'PM' : Power Motion i - mt_type
- Kind of M/T (ASCII)
' M' : Machining center ' T' : Lathe 'MM' : M series with 2 path control 'TT' : T series with 2/3 path control 'MT' : T series with compound machining function ' P' : Punch press ' L' : Laser ' W' : Wire cut - series
- Series number of CNC (ASCII)
- The character string of 4 digits is stored.
- version
- Version number of CNC(ASCII)
- The character string of 4 digits is stored.
- axes
- Current controlled axes(ASCII)
- The character string of 2 digits is stored.
- In case of 4 axes, ' 4' is set.
sysinfo.addinfo = 2
sysinfo.max_axis = 8
sysinfo.cnc_type = "16"
sysinfo.mt_type = " M"
sysinfo.series = "B0F1"
sysinfo.version = "0001"
sysinfo.axes = " 3"
Return
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.
As for 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/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