Description
Reads the slope control data of the cutting condition file.
The data is stored in each member of the IODBSLOP structure.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify the start slope control data group number.
301 to 305 | : | slope control data group number(UP/DOWN) |
Pointer to the number of slope control data. Specify the number of slope control data to be read before function call, and the number of slope control data being read actually is stored after the function call.
Pointer to the IODBSLOP structure including the slope control data of the cutting condition file. The IODBSLOP structure is as follows.
typedef struct iodbslop {
long slct; /* Flag of valid data */
long upleng; /* Step(UP) distance */
short upsp[10]; /* Step(UP) power 1 to 10 */
long dwleng; /* Step(DOWN) distance */
short dwsp[10]; /* Step(DOWN) power 1 to 10 */
short reserve[10];/* (reserve) */
} IODBSLOP ;
- slct
- Flag of valid data is set.
bit 0 : Step(UP) distance bit 1 : Step(UP) power 1 bit 2 : Step(UP) power 2 bit 3 : Step(UP) power 3 bit 4 : Step(UP) power 4 bit 5 : Step(UP) power 5 bit 6 : Step(UP) power 6 bit 7 : Step(UP) power 7 bit 8 : Step(UP) power 8 bit 9 : Step(UP) power 9 bit10 : Step(UP) power 10 bit11 : Step(DOWN) distance bit12 : Step(DOWN) power 1 bit13 : Step(DOWN) power 2 bit14 : Step(DOWN) power 3 bit15 : Step(DOWN) power 4 bit16 : Step(DOWN) power 5 bit17 : Step(DOWN) power 6 bit18 : Step(DOWN) power 7 bit19 : Step(DOWN) power 8 bit20 : Step(DOWN) power 9 bit21 : Step(DOWN) power 10 bit22,..,31 : (reserve) - * When a bit is 0, it means the corresponding data has no meaning.
- up_leng
- Step(UP) distance is set.
- upsp
- Step(UP) power is set.
upsp[0] : Step power 1 upsp[1] : Step power 2 : upsp[8] : Step power 9 upsp[9] : Step power 10 - dw_leng
- Step(DOWN) distance is set.
- dwsp
- Step(DOWN) power is set.
dwsp[0] : Step power 1 dwsp[1] : Step power 2 : dwsp[8] : Step power 9 dwsp[9] : Step power10 - reserve
- (reserve)
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 function cannot be used except 16i/18i-L. |
(2) |
Number of data(number) is wrong. |
(3) |
Start number(s_no) is wrong. |
(6) |
The cutting condition setting function, the slope control function and the extended driver/library function are 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.
- The cutting condition setting function
- The slope control function
For HSSB connection,
For Ethernet connection,
The Ethernet function and the extended driver/library function are necessary. 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
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 | - |
"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