Description
Writes the edge 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 edge cutting data group number.
201 to 205 | : | edge cutting data group number |
Pointer to the number of edge cutting data. Specify the number of edge cutting data to be written before function call, and the number of edge cutting data being written actually is stored after the function call.
Pointer to the IODBEDGE structure including the edge cutting data of the cutting condition file. The IODBEDGE structure is as follows.
typedef struct iodbedge {
short slct; /* Flag of data selection */
short angle; /* Judge angle for edge */
short power; /* Piercing power */
short freq; /* Piercing frequency */
short duty; /* Piercing duty */
long pier_t; /* Piercing time */
short g_press; /* Piercing gas press */
short g_kind; /* Piercing gas select */
long r_len; /* Recovery distance */
short r_feed; /* Recovery feedrate */
short r_freq; /* Recovery frequency */
short r_duty; /* Recovery duty */
short gap; /* Deflection/gap */
short reserve[4]; /* (reserve) */
} IODBEDGE ;
- slct
- Flag of data selection must be set.
bit 0 : Judge angle for edge bit 1 : Piercing power bit 2 : Piercing frequency bit 3 : Piercing duty bit 4 : Piercing time bit 5 : Piercing gas press bit 6 : Piercing gas select bit 7 : Recovery distance bit 8 : Recovery feedrate bit 9 : Recovery frequency bit10 : Recovery duty bit11 : Deflection/gap bit12,..,15 : (reserve) - * In order to write the data to CNC, turn on the corresponding bit on this data.
- angle
- Specify judge angle for edge.
- (Setting range: 0 to 180, Unit: degree)
- power
- Specify piercing power (peak value).
- (Setting range: 0 to 9999, Unit: W)
- freq
- Specify piercing frequency.
- (Setting range: 5 to 2000, Unit: Hz)
- duty
- Specify piercing duty.
- (Setting range: 0 to 100, Unit: %)
- pier_t
- Specify piercing time.
- (Setting range: 0 to 999999, Unit: 0.001sec.)
- g_press
- Specify piercing gas press(assist gas pressure)
- (Setting range: 0 to 255, Unit: 0.1Kg/cm2)
- g_kind
- Specify piercing gas select(kind of assist gas)
- (Setting range: 1 to 7, Unit: kind)
- r_len
- Specify recovery distance.
- (Setting range: 0 to 99999, Unit: 0.001mm)
- r_feed
- Specify recovery feedrate.
- (Setting range: 0 to 9999, Unit: mm/min)
- r_freq
- Specify recovery frequency.
- (Setting range: 5 to 2000, Unit: Hz)
- r_duty
- Specify recovery duty.
- (Setting range: 0 to 100, Unit: %)
- gap
- Specify deflection/gap.
- (Setting range: -32767 to 32767)
- 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. |
||||||||||||||||||||||||||||||||||||
(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 edge 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. |
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 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