Description
Reads the data information about the attribute of each kind of PMC, the effective range of PMC address, etc.
MTConnect Fanuc AdapterUniversal Fanuc Driver
Fanuc Focas Library CD
Declaration
FWLIBAPI short WINAPI pmc_rdpmcinfo(unsigned short FlibHndl, short adr_type, ODBPMCINF *pmcif);
Arguments
Specify the library handle. See "Library handle" for details.
Specify the kind of PMC address.
0,... | : | refer to the table of pmc_rdpmcrng function |
-1 | : | all address information |
Pointer to the ODBPMCINF structure including the PMC data information.
The ODBPMCINF structure is as follows.
typedef struct odbpmcinf {
short datano ; /* number of PMC data information */
struct {
char pmc_adr ; /* kind of PMC address */
char adr_attr ; /* attribute of PMC address */
unsigned short top_num ; /* top number of PMC address */
unsigned short last_num ;/* last number of PMC address */
} info[64] ;
} ODBPMCINF ;
- datano
- Number of PMC data information (1 - 64)
- * Some PMC address may be separated into several parts.
- pmc_adr
- Type of PMC address (ASCII CODE)
- adr_attr
- Attribute of PMC address
-
bit 7 : Write protection 0 : enable 1 : disable bit 0,..,6 : (Not used) - top_num
- Top number of PMC address
- last_num
- Last number of PMC address
- * Refer to the table of pmc_rdpmcrng function.
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_ATTRIB (4) |
data attribute error Kind of data(adr_type) is wrong. |
EW_NOOPT (6) |
no option The extended driver/library function is necessary. |
As for the other return codes or the details, see "Return status of Data window function"
CNC option
For HSSB connection,
The extended driver/library function is necessary.
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) | H | O | O | O | H | O | H | H | H | O | O | O | O | O | O | O | O |
T (Turning) | H | O | O | O | H | - | H | H | H | O | O | O | O | O | O | O | O |
LC (Loader) | - | - | - | - | - | - | H | H | H | H | H | H | H | H | H | - | - |
0i-D | 0i-F | 16i | 18i | 30i-A | 30i-B | |
---|---|---|---|---|---|---|
P (Punch press) | O | O | O | O | - | O |
L (Laser) | - | - | O | - | - | O |
W (Wire) | - | - | O | O | O | O |
Power Mate i-D | O |
Power Mate i-H | O |
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