Reads the module configuration of CNC system.
These information are stored in each member of ODBMDLC.
Reading the data which depends on the path needs exchanging the path.
This function is only available for Series 16/18 MODEL-C.
MTConnect Fanuc Adapter
#include "fwlib32.h"FWLIBAPI short WINAPI cnc_rdmdlconfig(unsigned short FlibHndl, ODBMDLC *mdlconfig);
Arguments : HSSB
FlibHndl
[ in ]
Specify the library handle. See "Library handle" for details.
mdlconfig
[ out ]
Pointer to the ODBMDLC structure for the module configuration of CNC system.The ODBMDLC structure is as follows.
- The ODBMDLC structure for Series 16/18 is as follows.
typedef struct odbmdlc {
short from; /* Capacity of FROM module */
short dram; /* Capacity of DRAM module */
short sram; /* Capacity of additional SRAM module */
short pmc; /* Type of PMC module */
short crtc; /* Type of CRTC module */
short servo12; /* Existence of servo module(axis1,2) */
short servo34; /* Existence of servo module(axis3,4) */
short servo56; /* Existence of servo module(axis5,6) */
short servo78; /* (reserve) */
short sic; /* Existence of SIC */
short pos_lsi; /* Existence of POSITION LSI */
short hi_aio; /* Existence of high-speed skip & analog I/O */
short reserve1[12]; /* (reserve) */
/* Above items depend on each path. */
/* Following items are independent of each path. */
short drmmrc; /* Capacity of Extended DRAM for management software(PMC-SC) */
short drmarc; /* Capacity of DRAM for application(PMC-SC) */
short pmcmrc; /* Type of PMC module(PMC-SC) */
short dmaarc; /* Existence of additional board for DMA(PMC-SC) */
short iopt; /* Number of DI/DO points(I/O card) */
short hdiio; /* Existence of LSI for high-speed skip(I/O card) */
short gm2gr1; /* Existence of graphic engine 2 */
short crtgr2; /* Type of CRTC module(OPT-1) */
short gm1gr2; /* Existence of graphic module1(OPT-1) */
short gm2gr2; /* Existence of graphic module2(OPT-1) */
short cmmrb; /* Existence of communication module(OPT-1) */
short sv5axs; /* Existence of servo module(axis5,6)(axis card) */
short sv7axs; /* Existence of servo module(axis7,8)(axis card) */
short sicaxs; /* Existence of SIC(axis card) */
short posaxs; /* Existence of POSITION LSI(axis card) */
short hamaxs; /* Existence of high-speed skip & analog I/O(axis card) */
short romr64; /* Capacity of system EPROM module(64bitRISC) */
short srmr64; /* Capacity of SRAM module(64bitRISC) */
short dr1r64; /* Capacity of DRAM module1(64bitRISC) */
short dr2r64; /* Capacity of DRAM module2(64bitRISC) */
short iopio2; /* Number of DI/DO points(I/O card#2) */
short hdiio2; /* Existence of LSI for high-speed skip(I/O card#2) */
short cmmrb2; /* Existence of communication module(OPT-1#2) */
short romfap; /* Existence of system EPROM module(CAP2) */
short srmfap; /* Capacity of SRAM module(CAP2) */
short drmfap; /* Capacity of DRAM module(CAP2) */
short drmare; /* Capacity of DRAM for application(PMC-SE) */
short pmcmre; /* Type of PMC module(PMC-SE) */
short dmaare; /* Existence of additional board for DMA(PMC-SE) */
short frmbgg; /* Capacity of FROM module(BG-GRPH) */
short drmbgg; /* Capacity of DRAM module(BG-GRPH) */
short asrbgg; /* Capacity of additional SRAM module(BG-GRPH) */
short edtpsc; /* Version of module(PMC-SB5/SB6) */
short slcpsc; /* Existence of SLC(PMC-SB5/SB6) */
short reserve2[34]; /* (reserve) */
} ODBMDLC ;
from
Capacity of FROM module
-1
:
Not exist
10
:
6 (MB)
0
:
(reserve)
11
:
8 (MB)
1
:
2 (MB)
12
:
10 (MB)
2
:
4 (MB)
13
:
12 (MB)
3
:
6 (MB)
14
:
14 (MB)
4
:
8 (MB)
15
:
1 (MB)
5
:
10 (MB)
16
:
1 (MB)
6
:
12 (MB)
17
:
(reserve)
7
:
4 (MB)
18
:
4 (MB)
8
:
3 (MB)
19
:
8 (MB)
9
:
2 (MB)
dram
Capacity of DRAM module
-1
:
Not exist
4
:
16 (MB)
0
:
4 (MB)
5
:
8 (MB)
1
:
2 (MB)
6
:
4 (MB)
2
:
1 (MB)
7
:
24 (MB)
3
:
6 (MB)
sram
Capacity of additional SRAM module
-1
:
Not exist
5
:
768 (KB)
0
:
1 (MB)
6
:
(reserve)
1
:
512 (KB)
7
:
2.25(MB)
2
:
2 (MB)
8
:
(reserve)
3
:
(reserve)
9
:
256 (KB)
4
:
(reserve)
pmc
Type of PMC module
-1
:
Not exist
2
:
PMP2+SLC
0
:
BOC2
3
:
BSI
1
:
BSI+SLC
4
:
PMP2
crtc
Type of CRTC module
-1
:
Not exist
3
:
HSSB-VGA
0
:
14"CRT
4
:
(reserve)
1
:
9"CRT
5
:
9"VGA
2
:
VGA
servo12
Existence of servo module(axis1,2)
-1
:
Not exist
0
:
Exists
servo34
Existence of servo module(axis3,4)
-1
:
Not exist
0
:
Exists
servo56
Existence of servo module(axis5,6)
-1
:
Not exist
0
:
Exists
sic
Existence of SIC
-1
:
Not exist
0
:
Exists
pos_lsi
Existence of POSITION LSI
-1
:
Not exist
0
:
Exists
hi_aio
Existence of high-speed skip & analog I/O
-1
:
Not exist
1
:
only high-speed skip
0
:
Both exist
2
:
only analog I/O
drmmrc
Capacity of additional DRAM for management software (PMC-SC)
-1
:
Not exist
0
:
Exists
drmarc
Capacity of DRAM for application (PMC-SC)
-1
:
Not exist
2
:
512(KB)
0
:
2(MB)
3
:
1(MB)
1
:
(reserve)
pmcmrc
Type of PMC module(PMC-SC)
-1
:
Not exist
2
:
PMP2+SLC
0
:
BOC2
3
:
BSI
1
:
BSI+SLC
4
:
PMP2
dmaarc
Existence of additional board for DMA (PMC-SC)
-1
:
Not exist
0
:
Exists
iopt
Number of DI/DO points (I/O card)
-1
:
Not exist
2
:
80/ 56
0
:
144/112
3
:
104/ 72
1
:
40/ 40
4
:
156/120
hdiio
Existence of LSI for high-speed skip (I/O card)
-1
:
Not exist
0
:
Exists
gm2gr1
Existence of graphic engine 2
-1
:
Not exist
0
:
Exists
crtgr2
Type of CRTC module (OPT-1)
-1
:
Not exist
3
:
(reserve)
0
:
14" CRT
4
:
14" CRT GRPH
1
:
9" CRT
5
:
9" CRT GRPH
2
:
VGA MAIN
6
:
VGA GRPH
gm1gr2
Existence of graphic module 1 (OPT-1)
-1
:
Not exist
0
:
Exists
gm2gr2
Existence of graphic module 2 (OPT-1)
-1
:
Not exist
0
:
Exists
cmmrb
Existence of communication module (OPT-1)
-1
:
Not exist
0
:
Exists
sv5axs
Existence of servo module (axis5,6) (axis card)
-1
:
Not exist
0
:
Exists
sv7axs
Existence of servo module (axis7,8) (axis card)
-1
:
Not exist
0
:
Exists
sicaxs
Existence of SIC (axis card)
-1
:
Not exist
0
:
Exists
posaxs
Existence of POSITION LSI (axis card)
-1
:
Not exist
0
:
Exists
hamaxs
Existence of high-speed skip & analog I/O (axis card)
-1
:
Not exist
1
:
only high-speed skip
0
:
Both exist
2
:
only analog I/O
romr64
Capacity of system EPROM module (64bitRISC)
-1
:
Not exist
3
:
512 (KB)
0
:
4 (MB)
4
:
256 (KB)
1
:
2 (MB)
5
:
128 (KB)
2
:
1 (MB)
6
:
768 (KB)
srmr64
Capacity of SRAM module (64bitRISC)
-1
:
Not exist
3
:
512 (KB)
0
:
4 (MB)
4
:
256 (KB)
1
:
2 (MB)
5
:
128 (KB)
2
:
1 (MB)
6
:
768 (KB)
dr1r64
Capacity of DRAM module 1 (64bitRISC)
-1
:
Not exist
2
:
2 (MB)
0
:
(reserve)
3
:
4 (MB)
1
:
(reserve)
dr2r64
Capacity of DRAM module 2 (64bitRISC)
-1
:
Not exist
2
:
2 (MB)
0
:
(reserve)
3
:
4 (MB)
1
:
(reserve)
iopio2
Number of DI/DO points(I/O card#2)
-1
:
Not exist
2
:
80/ 56
0
:
144/112
3
:
104/ 72
1
:
40/ 40
4
:
156/120
hdiio2
Existence of LSI for high-speed skip (I/O card#2)
-1
:
Not exist
0
:
Exists
cmmrb2
Existence of communication module (OPT-1#2)
-1
:
Not exist
0
:
Exists
romfap
Existence of system EPROM module (CAP2)
-1
:
Not exist
3
:
512 (KB)
0
:
(reserve)
4
:
256 (KB)
1
:
(reserve)
5
:
128 (KB)
2
:
1 (MB)
6
:
768 (KB)
srmfap
Capacity of SRAM module (CAP2)
-1
:
Not exist
3
:
512 (KB)
0
:
(reserve)
4
:
256 (KB)
1
:
(reserve)
5
:
128 (KB)
2
:
1 (MB)
6
:
768 (KB)
drmfap
Capacity of DRAM module (CAP2)
-1
:
Not exist
3
:
512 (KB)
0
:
2 (MB)
4
:
256 (KB)
1
:
1.5(MB)
5
:
128 (KB)
2
:
1 (MB)
6
:
(reserve)
drmare
Capacity of DRAM for applications (PMC-SE)
-1
:
Not exist
2
:
512(KB)
0
:
2(MB)
3
:
1(MB)
pmcmre
Type of PMC module (PMC-SE)
-1
:
Not exist
2
:
PMP2+SLC
0
:
BOC2
3
:
BSI
1
:
BSI+SLC
4
:
PMP2
dmaare
Existence of additional board for DMA (PMC-SE)
-1
:
Not exist
0
:
Exists
frmbgg
Capacity of FROM module (BG-GRAPH)
-1
:
Not exist
10
:
6 (MB)
0
:
(reserve)
11
:
8 (MB)
1
:
2 (MB)
12
:
10 (MB)
2
:
4 (MB)
13
:
12 (MB)
3
:
6 (MB)
14
:
14 (MB)
4
:
8 (MB)
15
:
1 (MB)
5
:
10 (MB)
16
:
1 (MB)
6
:
12 (MB)
17
:
(reserve)
7
:
4 (MB)
18
:
4 (MB)
8
:
3 (MB)
19
:
8 (MB)
9
:
2 (MB)
drmbgg
Capacity of DRAM module (BG-GRAPH)
-1
:
Not exist
4
:
16 (MB)
0
:
4 (MB)
5
:
8 (MB)
1
:
2 (MB)
6
:
4 (MB)
2
:
1 (MB)
7
:
24 (MB)
3
:
6 (MB)
asrbgg
Capacity of additional SRAM module (BG-GRPH)
-1
:
Not exist
5
:
768 (KB)
0
:
1 (MB)
6
:
(reserve)
1
:
512 (KB)
7
:
2.25(MB)
2
:
2 (MB)
8
:
(reserve)
3
:
(reserve)
9
:
256 (KB)
4
:
(reserve)
edtpsc
Version of module (PMC-SB5/SB6)
-1
:
Not exist
0,...,F
:
Version
slcpsc
Existence of SLC (PMC-SB5/SB6)
-1
:
Not exist
0
:
Exists
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
EW_NOOPT (6)
No option The extended driver/library function is necessary.