Description
Writes the edge cutting data in the cutting conditions file.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specifies the data group number to write.
When addition of the cutting condition data option is not provided.
201 to 205 | edge cutting data group number |
When addition of the cutting condition data option is provided.
201 to 220 | edge cutting data group number |
A pointer to the number of data items in edge cutting is set. Specifies the number to write before calling the function. The number which actually wrote after calling the function is set.
A pointer to the iodbedge2 structure in which to specify the cutting conditions file (the edge cutting data) to write. The IODBEDGE2 structure is as follows.
typedef struct iodbedge2 {
short slct; /* Flag of data selection */
short power; /* Peak power in piercing */
short freq; /* Frequency in piercing */
short duty; /* Duty in piercing */
short g_press; /* Assist gas pressure in piercing */
short g_kind; /* Assist gas type in piercing */
long pier_t; /* Time in piercing */
long angle; /* Edge operation angle */
long gap; /* Standard displacement */
long r_len; /* Return distance */
long r_feed; /* Return speed */
short r_freq; /* Return frequency */
short r_duty; /* Return pulse duty */
char gap_axis; /* Gap control axis */
char angle_dec; /* Ddecimals places */
char gap_dec; /* Ddecimals places */
char r_len_dec; /* Ddecimals places */
char r_feed_dec; /* Ddecimals places */
char reserve; /* (reserve) */
short reserves[3]; /* (reserve) */
} IODBEDGE2 ;
- slct
- Flag of data selection must be set.
bit 0 : Edge operation angle bit 1 : Peak power in piercing bit 2 : Frequency in piercing bit 3 : Duty in piercing bit 4 : Time in piercing bit 5 : Assist gas pressure in piercing bit 6 : Assist gas type in piercing bit 7 : Return distance bit 8 : Return speed bit 9 : Return frequency bit10 : Return pulse duty bit11 : Standard displacement bit12,..,15 : (reserve) - * In order to write the data to CNC, turn on the corresponding bit on this data.
- power
- Specifies the value of peak power in piercing.
- (Setting range:0 to 9999,Unit:W)
- freq
- Specifies the pulse frequency in piercing.
- (Setting range:1 to 32767,Unit:Hz)
- duty
- Specifies the pulse duty in piercing.
- (Setting range:0 to 100,Unit:%)
- g_press
- Specifies the assist gas pressure in piercing.
- (Setting range:0 to 9999,Unit:0.01MPa?0.1Kg/cm2)
- g_kind
- Specifies the assist gas type in piercing.
- (Setting range:0 to 15,Unit:kind)
- pier_t
- Specifies the time in piercing.
- (Setting range:0 to 999999,Unit:0.001sec)
- angle
- Specifies the edge operation angle.
- (Setting range:0 to 999999999,Unit:degree)
- gap
- Specifies the standard displacement.
- (Setting range:-999999999 to 999999999, Unit:mm/min(input unit))
- r_len
- Specifies the return distance.
- (Setting range:-999999999 to 999999999,Unit:mm?inch(input unit))
- r_feed
- Specifies the return speed.
- (Setting range:0 to 999999999,Unit:mm/min, inch/min(input unit))
- r_freq
- Specifies the return frequency.
- (Setting range:1 to 32767,Unit:Hz)
- r_duty
- Specifies the return pulse duty.
- (Setting range:0 to 100,Unit:%)
- gap_axis
- You cannot set the gap control axis even if you specified it.
- angle_dec
- Specifies the number of decimals places at edge operation angle.
- (Setting range:0 to 9)
- gap_dec
- Specifies the number of decimals places at standard displacement.
- (Setting range:0 to 9)
- r_len_dec
- Specifies the number of decimals places at return distance.
- (Setting range:0 to 9)
- r_feed_dec
- Specifies the number of decimals places at return speed.
- (Setting range:0 to 9)
- The corresponding data is as follows.
- reserve
- (reserve)
- reserves
- (reserve)
decimals places | corresponding data |
---|---|
angle_dec | angle |
gap_dec | gap |
r_len_dec | r_len |
r_feed_dec | r_feed |
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 30i/31i-LB. |
||||||||||||||||||||||||||||||||||||
(2) |
Number of data(number) is wrong. |
||||||||||||||||||||||||||||||||||||
(3) |
Start number(s_no) is wrong. |
||||||||||||||||||||||||||||||||||||
(5) |
The edge 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, the edge cutting 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.
- The cutting condition setting function
- The edge cutting 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 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