Description
Writes the cutting data of the cutting condition file.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specify the start cutting data group number.
·Series 16i/18i-L
1 to 10 | : | cutting data group number |
·Series 30i/31i-LB
When addition of the cutting condition data option is not provided.
1 to 10 | cutting data group number |
When addition of the cutting condition data option is provided.
1 to 30 | cutting data group number |
Pointer to the number of cutting data. Specify the number of cutting data to be written before function call, and the number of cutting data being written actually is stored after the function call.
Pointer to the IODBPSCD structure including the cutting data of the cutting condition file. The IODBPSCD structure is as follows.
·Series 16i/18i-L
typedef struct iodbpscd {
short slct; /* Flag of data selection */
long feed; /* Feedrate */
short power; /* Cutting peak power */
short freq; /* Cutting frequency */
short duty; /* Cutting duty */
short g_press; /* Assist gas pressure */
short g_kind; /* Assist gas select */
short g_ready_t; /* Assist gas setting time */
short displace; /* Reference displace */
long supple; /* Beam radius offset */
short edge_slt; /* Edge cutting select */
short appr_slt; /* Start-up select */
short pwr_ctrl; /* Power control */
short reserve[4]; /* (reserve) */
} IODBPSCD ;
·Series 30i/31i-LB
typedef struct iodbpscd {
short slct; /* Flag of data selection */
long feed; /* Feedrate */
short power; /* Cutting peak power */
short freq; /* Cutting frequency */
short duty; /* Cutting duty */
short g_press; /* Assist gas pressure */
short g_kind; /* Assist gas select */
short g_ready_t; /* Gas setting time */
short displace; /* Reference displace */
long supple; /* Beam radius offset */
short edge_slt; /* Edge cutting select */
short appr_slt; /* Start-up select */
short pwr_ctrl; /* Power control */
long displace2; /* Reference displace */
char gap_axis; /* Gap control axis */
char feed_dec; /* Decimals places */
char supple_dec; /* Decimals places */
char dsp2_dec; /* Decimals places */
} IODBPSCD ;
- slct
- Flag of data selection must be set.
- ·Series 16i/18i-L
bit 0 : Feedrate bit 1 : Cutting peak power bit 2 : Cutting frequency bit 3 : Cutting duty bit 4 : Assist gas pressure bit 5 : Assist gas select bit 6 : Assist gas setting time bit 7 : Reference displace bit 8 : Beam radius offset bit 9 : Edge cutting select bit10 : Start-up select bit11 : Power control bit12,..,15 : (reserve) - ·Series 30i/31i-LB
bit 0 : Feedrate bit 1 : Cutting peak power bit 2 : Cutting frequency bit 3 : Cutting duty bit 4 : Assist gas pressure bit 5 : Assist gas select bit 6 : Gas setting time bit 7 : Reference displace bit 8 : Beam radius offset bit 9 : Edge cutting select bit10 : Start-up select bit11 : Power control bit12 : Reference displace2 bit13 : Gap control axis bit14,..,15 : (reserve) - * In order to write the data to CNC, turn on the corresponding bit on this data.
- feed
- Specify feedrate.
- ·Series 16i/18i-L
- (Setting range: 0 to 240000, Unit: mm/min)
- ·Series 30i/31i-LB
- (Setting range: 0 to 999999999, Unit:mm/min, inch/min((input unit)))
- power
- Specify cutting peak power for contouring.
- (Setting range: 0 to 9999, Unit: W)
- freq
- Specify cutting frequency for contouring.
- ·Series 16i/18i-L
- (Setting range: 5 to 2000, Unit: Hz)
- ·Series 30i/31i-LB
- (Setting range: 1 to 32767, Unit:Hz)
- duty
- Specify cutting duty for contouring.
- (Setting range: 0 to 100, Unit: %)
- g_press
- Specify assist gas pressure.
- ·Series 16i/18i-L
- (Setting range: 0 to 255, Unit: 0.1Kg/cm2)
- ·Series 30i/31i-LB
- (Setting range: 0 to 9999, Unit: 0.01MPa, 0.1Kg/cm2)
- g_kind
- Specify assist gas select.
- ·Series 16i/18i-L
- (Setting range: 1 to 7, Unit: kind)
- ·Series 30i/31i-LB
- (Setting range: 1 to 15, Unit: kind)
- g_ready_t
- Specify assist gas setting time.
- (Setting range: 0 to 99, Unit: 0.1second)
- displace
- Specify reference displace.
- (Setting range: -32767 to 32767, Unit: 0.001mm)
- supple
- Specify beam radius offset.
- ·Series 16i/18i-L
- (Setting range: -9999 to 9999, Unit: 0.001mm)
- ·Series 30i/31i-LB
- (Setting range: -999999999 to 999999999, Unit: mm, inch(input unit))
- edge_slt
- Specify edge cutting select.
- ·Series 16i/18i-L
- (Setting range: 0, 201 to 205)
- ·Series 30i/31i-LB
- When addition of the cutting condition data option is not provided.
- (Setting range: 0, 201 to 205)
- When addition of the cutting condition data option is provided.
- (Setting range: 0, 201 to 210)
- appr_slt
- Specify start-up select.
- ·Series 16i/18i-L
- (Setting range: 0, 201 to 205)
- ·Series 30i/31i-LB
- When addition of the cutting condition data option is not provided.
- (Setting range: 0, 201 to 205)
- When addition of the cutting condition data option is provided.
- (Setting range: 0, 201 to 210)
- pwr_ctrl
- Specify power control.
- (Setting range: 0, 901 to 910)
- displace2
- ·Series 30i/31i-LB only
- Specify Reference displace 2 .
- (Setting range: -999999999 to 999999999, Unit: mm, inch(input unit))
- gap_axis
- ·Series 30i/31i-LB only
- You cannot set the gap control axis even if you specified it.
- feed_dec
- ·Series 30i/31i-LB only
- Specify decimals places in command value of feed rate.
- (Setting range: 0 to 9)
- supple_dec
- ·Series 30i/31i-LB only
- Specify decimals places of beam diameter correction amount.
- (Setting range: 0 to 9)
- dsp2_dec
- ·Series 30i/31i-LB only
- Specify decimals places in standard displacement.
- (Setting range: 0 to 9)
- The corresponding data is as follows.
- reserve
- ·Series 16i/18i-L only
- (reserve)
decimals places | corresponding data |
---|---|
feed_dec | feed |
supple_dec | supple |
dsp2_dec | displace2 |
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 , 30i/31i-LB. |
|||||||||||||||||||||||||||||||||||||||
(2) |
Number of data(number) is wrong. |
|||||||||||||||||||||||||||||||||||||||
(3) |
Start number(s_no) is wrong. |
|||||||||||||||||||||||||||||||||||||||
(5) |
The cutting data of the cutting condition file is wrong. In order to get more information for this err_no return value, execute cnc_getdtailerr function. The cutting data group number which an error occurred will be set onto the member of err_no of ODBERR structure and the following detailed status will be set onto the member of err_dtno of ODBERR structure.
|
|||||||||||||||||||||||||||||||||||||||
(6) |
The cutting condition setting function and the extended driver/library function are necessary. |
|||||||||||||||||||||||||||||||||||||||
(9) |
Mistake of laser oscillator (parameter No.15030) |
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. 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 | - |
"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