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.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Program number
When you write the MDI program, you have to specify -1.
You can set the pointer for the current selected program. If the selected program is called by calling macro or sub-program (that is a nested program), you also can set the pointer to it(16i/18i/21i/30i/31i/32i/0i-D/F, PMi-A only).
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.
In case of 30i, 0i-D/F and PMi-A, when the block number which is not present is specified in MDI program, the cursor moves to the last line.
- 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) |
|
(6) |
The extended driver/library function is necessary. |
(12) |
|
(13) |
|
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/F and 30i 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
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.
See Also