Description
Reads the command data of laser.
The data is stored in each member of the ODBLCMDT user define type.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Pointer to the ODBLCMDT structure including the command data of laser. The ODBLCMDT structure is as follows.
·Series 16i/18i-L
typedef struct iodblcmdt {
short slct; /* Flag of valid data */
long feed; /* Actual feedrate */
short power; /* Actual peak power */
short freq; /* Actual pulse frequency */
short duty; /* Actual pulse duty */
short g_kind; /* Command data of assist gas select */
short g_ready_t; /* Assist gas time */
short g_press; /* Actual assist gas pressure */
short error; /* Command data of reference displace */
long dsplc; /* Command data of tool radius offset */
short reserve[7];/* (reserve) */
} ODBLCMDT ;
·Series 30i/31i-LB
typedef struct iodblcmdt {
short slct; /* Flag of valid data */
long feed; /* Actual feedrate */
short power; /* Actual peak power */
short freq; /* Actual pulse frequency */
short duty; /* Actual pulse duty */
short g_kind; /* Command data of assist gas select */
short g_ready_t; /* Assist gas time */
short g_press; /* Actual assist gas pressure */
short error; /* Command data of reference displace */
long dsplc; /* Command data of tool radius offset */
long error2; /* Command data of reference displace 2 */
char gap_axis; /* Gap control axis */
char feed_dec; /* Decimals places */
char dsplc_dec; /* Decimals places */
char error2_dec;/* Decimals places */
short reserve[3]; /* (reserve) */
} ODBLCMDT ;
- slct
- Flag of valid data is set.
bit 0 : Actual feedrate bit 1 : Actual peak power bit 2 : Actual pulse frequency bit 3 : Actual pulse duty bit 4 : Command data of assist gas select bit 5 : Assist gas time bit 6 : Actual assist gas pressure bit 7 : Command data of reference displace bit 8 : Command data of tool radius offset bit 9,..,15 : (reserve) - * When a bit is 0, it means the corresponding data has no meaning.
- feed
- Actual feedrate is set.
- power
- Actual peak power is set.
- freq
- Actual pulse frequency is set.
- duty
- Actual pulse duty is set.
- g_kind
- Command data of assist gas select is set.
- g_ready_t
- Assist gas time is set.
- g_press
- Actual assist gas pressure is set.
- error
- Command data of reference displace is set.
- dsplc
- Command data of tool radius offset is set.
- error2
- ·Series 30i/31i-LB only
- Command data of reference displace 2 is set.
- gap_axis
- ·Series 30i/31i-LB only
- Whether The first gap control axis axis or The second gap control axis axis is commanded as a gap control axis is set.
- The meaning of a set value of gap_axis is shown in the following table.
- feed_dec
- ·Series 30i/31i-LB only
- decimals places in Actual feedrate is set.
- dsplc_dec
- ·Series 30i/31i-LB only
- decimals places in Command data of tool radius offset is set.
- error2_dec
- ·Series 30i/31i-LB only
- decimals places in Command data of reference displace is set.
- The corresponding data is as follows.
- reserve
- (reserve)
gap_axis | Setting of the gap control axis |
---|---|
0 | The second gap control axis. |
1 | The first gap control axis. |
-1 | The gap control is invalid. |
???????? | ???????? |
---|---|
feed_dec | feed |
dsplc_dec | dsplc |
error2_dec | error2 |
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. |
(6) |
The extended driver/library function is 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
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.