Description
Reads the available number of the local macro variable and the common macro variable. Those are stored in "use_no1", "use_no2" of "ODBMVINF" with signed binary format.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Pointer to the ODBMVINF structure including the custom macro variable information. The ODBMVINF structure is as follows.
typedef struct odbmvinf {
short use_no1 ; /* number of local variable */
short use_no2 ; /* indicator of common variable */
} ODBMVINF ;
- use_no1
- use_no1 Available number of local macro variable (33 sets)
- use_no2
- Indicator of available common variable
- Series 15
- Series 15i
- Series 16/18/21, 16i/18i/21i, 0i-A/B/C
- Series 16i/18i-W
- Power Mate i
- Series 30i/31i/32i, 0i-D/F, PMi-A
M/T 0 : 100,..,149, 500,..,549 1 : 100,..,199, 500,..,599 2 : 100,..,199, 500,..,699 3 : 100,..,199, 500,..,999
TT 0 : 100,..,149, 500,..,524 1 : 100,..,149, 500,..,549 2 : 100,..,149, 500,..,599 3 : 100,..,149, 500,..,749
3 : 100,..,199, 500,..,999 4 : 100,..,199, 200,..,999
0 : 100,..,149, 500,..,531 1 : 100,..,199, 500,..,999 2 : 100,..,199, 500,..,599
0 : 100,..,149, 500,..,531 1 : 100,..,314, 500,..,699 2 : 100,..,149, 500,..,699 3 : 100,..,314, 500,..,531 4 : 100,..,149, 500,..,999 5 : 100,..,314, 500,..,999
0 : 100,..,149, 500,..,531 1 : 100,..,199, 500,..,999 2 : 100,..,199, 500,..,699
0 : 100,..,149, 500,..,549 1 : 100,..,199, 500,..,999 2 : 100,..,149, 200,..,499, 500,..,549 3 : 100,..,499, 500,..,999 4 : 100,..,199, 500,..,999, 98000,..,98499 5 : 100,..,499, 500,..,999, 98000,..,98499
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 |
---|---|
(6) |
This function needs the custom macro option. |
As for the other return codes or the details, see "Return status of Data window function"
CNC option
This function need the following CNC option.
- Series 15/15i, 30i/31i/32i, 0i-D, PMi-A Custom macro
- Series 16/18/21, 16i/18i/21i, 0i-A/B/C, Power Mate i Custom macro B
And this function is related to the following CNC option.
- Series 15 Custom macro common variable 200 sets
- Series 15i Custom macro common variable 900 sets
- Series 16/18/21, 16i/18i/21i, 0i-A/B/C, Power Mate i, PMi-A Custom macro common variable extension
- Series 0i-F Embedded macro
- Series 30i/31i/32i, 0i-D Add. common macro value
Custom macro common variable 300 sets
Custom macro common variable 600 sets
Add. common macro value(1000 sets)
Embedded macro
Add. common macro value(1000 sets)
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 related to the following CNC parameter.
See the manual of CNC parameter for details.
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_rdmacro cnc_wrmacro cnc_rdmacror cnc_wrmacror cnc_rdmacror2 cnc_wrmacror2 cnc_getmactype cnc_setmactype