Description
Reads the execution pointer information for MDI operating program.
The content which can be acquired is the following items.
- program number being executed It is basically 0 for MDI operation.(In case of Series 16i/18i-W, it is -1.)
- execution block pointer Block pointer which is being currently executed in CNC.
- preread program number Program number read in advance.(displayed in green on the CNC screen)
- preread block pointer Last block pointer in the program read ahead.
When executing program is sub-program, the sub-program number is returned.
For MDI operating, it is basically 0, and for reading sub-program in advance, it is the number of sub-program.
In Series 15/15i, it is invalid except 'preread block pointer'. (0 can be read at any time)
In Series 16i/18i-W, 'preread program number' and 'preread block pointer' are invalid.
In Series 30i, 0i-D/F and PMi-A 'program number being executed' and 'execution block pointer' are invalid.
In Series 16/18, 16i/18i, 30i, Power Mate i, it is possible to use this function for
the program number 8 digits, however it is necessary to switch API to
the one for the program number 8 digits.
See Program number 8 digits for details.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Pointer to the ODBMDIP structure including the execution pointer information.
The ODBMDIP structure is as follows.
For program number 4 digits,
typedef struct odbmdip {
short mdiprog; /* Program number being executed. */
long mdipntr; /* Execution block pointer. */
short crntprog; /* Preread program number. */
long crntpntr; /* Preread block pointer. */
} ODBMDIP ;
For program number 8 digits,
typedef struct odbmdip {
long mdiprog; /* Program number being executed. */
long mdipntr; /* Execution block pointer. */
long crntprog; /* Preread program number. */
long crntpntr; /* Preread block pointer. */
} ODBMDIP ;
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 |
---|---|
(1) |
This application is not customized for the program number 8 digits. See Program number 8 digits for details. |
(6) |
The extended driver/library function is necessary. |
(12) |
Set CNC mode to MDI. |
As for the other return codes or 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 related to the following CNC parameter.
See the manual of CNC parameter for details.
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