Description
Sets the execution pointer of the NC program for the MDI or Memory operation.
If there are some blocks that CNC has already read, these blocks will be executed before the block specified by this function.
When the reset processing is executed in CNC, the processing interrupts can be selected according to the parameter LES(No.11353#3).
Inc case of parameter LES(No.11353#3)=0 : The process is not interrupted.
Inc case of parameter LES(No.11353#3)=1 : The process is interrupted.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Program name
Specify the program name from "drive name + path name + file name".
Please refer to "General Description (Specifying the folder and file name for FS30i, 0i-D/F and PMi-A.)" for details of the file name.
When you write the MDI program, you have to specify "MDI".
Type of the execution pointer you will set.
0 | : | Absolute pointer (The block number from the top of the program when the top is 0.) |
1 | : | Relative pointer (The relative value from the current execution pointer.) |
Pointer to the long type variable holding the block number to set.
- Specify the block number from the top of the program when the top is 0.
- Specify the relative value from the current execution pointer.
- When the specified block number is 0, the execution pointer is not changed and the actual absolute block number is stored into (*blk_no).
Selected NC program | Absolute | Relative |
---|---|---|
O1234; | 0 | -3 |
G00 X0. Z0.; | 1 | -2 |
G01 X10. Z5. F100.; | 2 | -1 |
X20. Z15.; | 3 | 0 |
X35.; | 4 | 1 |
Z20; | 5 | 2 |
M30; | 6 | 3 |
% | 7 | 4 |
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 |
---|---|
(4) |
type is illegal. |
(5) |
|
(12) |
|
(6) |
The extended driver/library function is necessary. |
(13) |
|
As for the other return codes or the details, see "Return status of Data window function"
CNC option
For HSSB connection,
CNC parameter
This function is related to the following CNC parameter.
See the manual of CNC parameter for details.
11353#3 (influenced by setting)
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