Reads the series/version of CNC system software. These information are stored in each member of ODBSYSS.
Reading the data which depends on the path needs exchanging the path using cnc_setpath function.
MTConnect Fanuc Adapter
#include "fwlib32.h"FWLIBAPI short WINAPI cnc_rdsyssoft(unsigned short FlibHndl, ODBSYSS *syssoft);
Arguments
FlibHndl
[ in ]
Specify the library handle. See "Library handle" for details.
syssoft
[ out ]
Pointer to the ODBSYSS structure for the data of the series/version of CNC system software.
The ODBSYSS structure is as follows.
typedef struct odbsyss {
char slot_no_p[16]; /* Physical slot number */
char slot_no_l[16]; /* Logical slot number */
short module_id[16]; /* Module ID */
short soft_id[16]; /* Software ID */
char soft_series[16][5]; /* Software series with CPU */
char soft_version[16][5]; /* Software version with CPU */
short soft_inst; /* soft. installation status */
char boot_ser[5]; /* Series of boot software */
char boot_ver[5]; /* Version of boot software */
char servo_ser[5]; /* Series of servo software */
char servo_ver[5]; /* Version of servo software */
char pmc_ser[5]; /* Series of PMC management soft. */
char pmc_ver[5]; /* Version of PMC management soft.*/
char ladder_ser[5]; /* Series of ladder software */
char ladder_ver[5]; /* Version of ladder software */
char mcrlib_ser[5]; /* Series of macro library */
char mcrlib_ver[5]; /* Version of macro library */
char mcrapl_ser[5]; /* Series of macro application */
char mcrapl_ver[5]; /* Version of macro application */
char spl1_ser[5]; /* Series of spindle soft.(1st) */
char spl1_ver[5]; /* Version of spindle soft.(1st) */
char spl2_ser[5]; /* Series of spindle soft.(2nd) */
char spl2_ver[5]; /* Version of spindle soft.(2nd) */
char spl3_ser[5]; /* Series of spindle soft.(3rd) */
char spl3_ver[5]; /* Version of spindle soft.(3rd) */
char c_exelib_ser[5]; /* Series of C-executer library */
char c_exelib_ver[5]; /* Version of C-executer library */
char c_exeapl_ser[5]; /* Series of C-exe. application */
char c_exeapl_ver[5]; /* Version of C-exe. application */
char int_vga_ser[5]; /* Series of VGA soft.(internal) */
char int_vga_ver[5]; /* Version of VGA soft.(internal) */
char out_vga_ser[5]; /* Series of VGA soft.(external) */
char out_vga_ver[5]; /* Version of VGA soft.(external) */
char pmm_ser[5]; /* Series of power motion manager software */
char pmm_ver[5]; /* Version of power motion manager software */
char pmc_mng_ser[5]; /* Series of PMC management software */
char pmc_mng_ver[5]; /* Version of PMC management software */
char pmc_shin_ser[5]; /* Series of PMC management software (internal SH) */
char pmc_shin_ver[5]; /* Version of PMC management software (internal SH) */
char pmc_shout_ser[5]; /* Series of PMC management software (external SH) */
char pmc_shout_ver[5]; /* Version of PMC management software (external SH) */
char pmc_c_ser[5]; /* Series of PMC management software (C language) */
char pmc_c_ver[5]; /* Version of PMC management software (C language) */
char pmc_edit_ser[5]; /* Series of PMC management software (edit card) */
char pmc_edit_ver[5]; /* Version of PMC management software (edit card) */
char lddr_mng_ser[5]; /* Series of ladder software */
char lddr_mng_ver[5]; /* Version of ladder software */
char lddr_apl_ser[5]; /* Series of ladder software (C application) */
char lddr_apl_ver[5]; /* Version of ladder software (C application) */
char spl4_ser[5]; /* Series of spindle soft.(4th) */
char spl4_ver[5]; /* Version of spindle soft.(4th) */
char mcr2_ser[5]; /* Series of 2nd macro-executer */
char mcr2_ver[5]; /* Version of 2nd macro-executer */
char mcr3_ser[5]; /* Series of 3rd macro-executer */
char mcr3_ver[5]; /* Version of 3rd macro-executer */
char eth_boot_ser[5]; /* Series of boot software of Ethernet Board */
char eth_boot_ver[5]; /* Version of boot software of Ethernet Board */
char reserve[8][5]; /* (reserve) */
} ODBSYSS ;
slot_no_p
Physical slot number
The physical slot numbers of the modules which are built in the slots are stored in binary in order of their position. This array is terminated with FFH. The data subsequent to FFH are invalid.
00H to 0FH
:
Primary slot number
80H to 8FH
:
Secondary slot number
slot_no_l
Logical slot number
The logical slot numbers of the modules which are built in the slots are stored in binary in order of their position. This array is terminated with FFH. The data subsequent to FFH are invalid.
00H to 0FH
:
logical slot number
module_id
Module ID
The module ID of the modules which are built in the slots are stored in binary in order of their position. This array is terminated with FFH. The data subsequent to FFH are invalid. 'XX' is internal information.
The followings are main module ID.
Series 15i
XXEBH
:
CNC Main
XXE0H
:
PMC C language board
XXD8H
:
Additional axis board
XXFEH
:
Ethernet board
XXAAH
:
HSSB I/F
XX81H
:
Customer's board
XXFCH
:
PROFIBUS DP(Master)
XXE3H
:
PROFIBUS DP(Slave)
XXEFH
:
DEVICENET(Master)
XXBFH
:
DEVICENET(Slave)
XX59H
:
FL-NET
Series 16/18, 16i/18i/21i, 0i, Power Mate i
XX3FH
:
Remote buffer
XX45H
:
Graphic(CAP-II)
XX46H
:
I/O card
XX6DH
:
CAP-II
XX7FH
:
RISC(64bit)
XX94H
:
MMC-IV
XX9AH
:
Graphic (standard)
XX9DH
:
PMC-SC
XXA7H
:
FS16B/Main(6 axes)
XX95H
:
I/O Link-2(Gate array version)
XXAAH
:
HSSB
XXC4H
:
I/O Link-2
XXDDH
:
Power Mate i
XXADH
:
FS18B/Main(4 axes)
XXAEH
:
FS18B/Main(6 axes)
XXB0H
:
FS16B/SUB
XXB2H
:
FS16B/Main(4 axes)
XXB4H
:
FS18B/SUB
XXB7H
:
FS16C/Main(6 axes)
XXB9H
:
FS16C,18C/SUB
XXBAH
:
FS16C,18C/SUB
XXBDH
:
FS18C/Main(6 axes)
soft_id
Software ID
The software ID of the modules which are built in the slots are stored in binary in order of their position. This array is terminated with FFH. The data subsequent to FFH are invalid.
The followings are main software ID.
Series 15i
40H
:
CNC Main
41H
:
PMC C language board
50H
:
Additional axis board
61H
:
Ethernet board
65H
:
HSSB I/F
44H
:
Customer's board
6AH
:
PROFIBUS DP(Master)
69H
:
PROFIBUS DP(Slave)
70H
:
DEVICENET(Master)
71H
:
DEVICENET(Slave)
76H
:
FL-NET
Series 16/18, 16i/18i/21i, 0i, Power Mate i
40H
:
CNC
41H
:
PMC-SC
42H
:
Internal I/O card
43H
:
CNC SUB
45H
:
Graphic (standard)
46H
:
Graphic(CAP-II)
49H
:
CAP-II
4AH
:
Remote buffer
4FH
:
PMC-SE
5EH
:
MMC-IV,HSSB I/F
67H
:
PMC-SB5/SB6
soft_series
Software series
Software series information is stored in ASCII code in order of its position (4 byte + 'NULL').
soft_version
Software version
Software series information is stored in ASCII code in order of its position (4 byte + 'NULL').
soft_inst
Software installation status for CNC/CNC SUB/LOADER(dependent on path)
bit0 = 1
:
OPTION-A1
bit1 = 1
:
OPTION-A2
bit2 = 1
:
OPTION-A3
bit3 = 1
:
OPTION-A4
boot_ser
Series of boot software
boot_ver
Version of boot software
servo_ser
Series of servo software (dependent on path)
servo_ver
Version of servo software (dependent on path)
pmc_ser
Series of PMC management soft (dependent on path)
Use pmc_mng_ser instead of pmc_ser.
pmc_ver
Series of PMC management software (dependent on path)
Use pmc_mng_ser instead of pmc_ser.
ladder_ser
Series of ladder software (dependent on path)
Use ladder_mng_ser instead of ladder_ser.
ladder_ver
Version of ladder software (dependent on path)
Use ladder_mng_ser instead of ladder_ver.
mcrlib_ser
Series of macro library/order made macro (dependent on path)
mcrlib_ver
Version of macro library/order made macro (dependent on path)
mcrapl_ser
Series of macro application (dependent on path)
mcrapl_ver
Version of macro application (dependent on path)
spl1_ser
Series of spindle software (1st) (dependent on path)
spl1_ver
Version of spindle software (1st) (dependent on path)
spl2_ser
Series of spindle software (2nd) (dependent on path)
spl2_ver
Version of spindle software (2nd) (dependent on path)
spl3_ser
Series of spindle software (3rd) (dependent on path)
spl3_ver
Version of spindle software (3rd) (dependent on path)
c_exelib_ser
Series of C-executer library
c_exelib_ver
Version of C-executer application
c_exeapl_ser
Series of C-executer application
c_exeapl_ver
Version of C-executer application
int_vga_ser
Series of VGA software (internal)
int_vga_ver
Version of VGA software (internal)
out_vga_ser
Series of VGA software (external)
out_vga_ver
Version of VGA software (external)
* Following items are only available for Series 15i, Series 16i/18i/21i, 0i, and Power Mate i.
pmm_ser
Series of power motion manager software (dependent on path)
pmm_ver
Version of power motion manager software (dependent on path)
pmc_mng_ser
Series of PMC management software (dependent on path)
Please use this item instead of sPmc_ser if CNC is Series 16i/18i/21i, 0i, Power Mate i.
pmc_mng_ver
Version of PMC management soft (dependent on path)
Please use this item instead of sPmc_ver if CNC is Series 16i/18i/21i, 0i, Power Mate i.
pmc_shin_ser
Series of PMC management software (internal SH) (dependent on path)
pmc_shin_ver
Version of PMC management software (internal SH) (dependent on path)
pmc_shout_ser
Series of PMC management software (external SH) (dependent on path)
pmc_shout_ver
Version of PMC management software (external SH) (dependent on path)
pmc_c_ser
Series of PMC management software (C language) (dependent on path)
pmc_c_ver
Version of PMC management software (C language) (dependent on path)
pmc_edit_ser
Series of PMC management software (edit card) (dependent on path)
pmc_edit_ver
Version of PMC management software (edit card) (dependent on path)
lddr_mng_ser
Series of ladder software (dependent on path)
Please use this item instead of ladder_ser if CNC is Series 15i, 16i/18i/21i, 0i, Power Mate i.
lddr_mng_ver
Version of ladder software (dependent on path)
Please use this item instead of ladder_ver if CNC is Series 15i, 16i/18i/21i, 0i, Power Mate i.
lddr_apl_ser
Series of ladder software (C application) (dependent on path)
lddr_apl_ver
Version of ladder software (C application) (dependent on path)
spl4_ser
Series of spindle software (4th) (dependent on path)
spl4_ver
Version of spindle software (4th) (dependent on path)
mcr2_ser
Series of 2nd macro executer (dependent on path)
mcr2_ver
Series of 2nd macro executer (dependent on path)
mcr3_ser
Series of 3rd macro executer (dependent on path)
mcr3_ver
Version of 3rd macro executer (dependent on path)
eth_boot_ser
Series of boot software of Ethernet Board
eth_boot_ver
Version of boot software of Ethernet Board
reserve
(reserve)
* Above series/version are stored in ASCII code(4 byte + 'NULL'). In case of no software, first character is 'NULL'.
Return
EW_OK is returned on successful completion, otherwise any value except EW_OK is returned.