Description
Reads the program restart information. The program restart information is stored in each member of "ODBPRS".
In case of Series 16/18, 16i/18i/21i, 0i, 30i, B code read count and value are not used except M series.
In case of Series 15, the program restart position and remaining travel distance are valid when both NC parameter 2204#1 and 7613#0 are on(=1).
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Pointer to the ODBPRS structure including the program restart information. The ODBPRS structure is as follows.
typedef struct odbprs {
short datano; /* Not used */
short type; /* Not used */
short data_info[5]; /* Data setting information */
long rstr_bc; /* Block number */
long rstr_m[35]; /* M code value */
long rstr_t[2]; /* T code value */
long rstr_s; /* S code value */
long rstr_b; /* B code value */
long dest[MAX_AXIS]; /* Program restart position */
long dist[MAX_AXIS]; /* Program restart remaining
travel distance */
} ODBPRS ; /* MAX_AXIS : max. controlled axes. */
- datano
- Not used
- type
- Not used
- data_info
- Data setting information
- The read count for rstr_m, rstr_t, rstr_s, rstr_b is set respectively.
- data_info[0]
- Always 1
- data_info[1]
- M code read count (0 to 35)
- data_info[2]
- T code read count (0 to 2)
- data_info[3]
- S code read count (0 to 1)
- data_info[4]
- B code read count (0 to 1)
- rstr_bc
- Block number is stored.
- rstr_m
- M code value is stored in the array.
- rstr_t
- T code value is stored in the array.
- rstr_s
- S code value is stored.
- rstr_b
- B code value is stored.
- dest
- Program restart position is stored. The limit within the number of controlled axes is effective.
- dist
- Program restart remaining travel distance is stored. The limit within the number of controlled axes is effective.
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) |
The program restart function and the extended driver/library function is necessary. |
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.
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 | X |
"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_rstrseqsrch cnc_rstrseqsrch2