Description
The following information as a state of the MDI program is got.
1) Existence of MDI program
2) Execution start line of MDI program.
Note) | The execution start line of the MDI program changes as follows before and after the execution of the function concerning writing the MDI program or setting the pointer. |
cnc_wrmdiprog | 1:From the top of program | ||
cnc_wrmdipntr | 0:From the pointer of program (In case of 30i, 0i-D/F and PMi-A, immediately after the MDI program registration from initial state, the state become to "1:From the top of program".) | ||
cnc_wractpt | The execution start line is maintained. |
* | Even if the cnc_wractpt is executed when the state(bit2) of the execution start line is '1', the program is started from the top of program . If the cnc_wractpt is executed when the state(bit2) of the execution start line is '0', the program is started from line setted by cnc_wractpt. |
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments : HSSB
Specify the library handle.
See "Library handle" for details.
Specify the pointer to the variable to store the state of MDIprogram.
The state of MDI program is shown as follows.
Existence of MDI program(bit0,1)
The following value is got by bit 0 and 1.
-
0: No program (30i, 0i-D/F and PMi-A have not this state.)
1: Initial state (olny "O0000%")
2: Already registered
The execution start line of MDI program in the next execution is shown.
-
1: From the top of program
0: From the pointer of program
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 |
---|---|
(12) |
CNC mode is not MDI mode. |
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.
CNC parameter
This function is not related to CNC parameter.
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 | H |
"O" | : | Both Ethernet and HSSB | |
"E" | : | Ethernet | |
"H" | : | HSSB | |
"X" | : | Cannot be used | |
"-" | : | None |
Note) 0i-C does not support the HSSB function.