Description
Writes the data which the function of actual output estimation type pulse power feedback use.
Universal Fanuc Driver
Fanuc Focas Library CD
Declaration
Arguments
Specify the library handle. See "Library handle" for details.
Specifies a pointer to the structure in which to specify the kind and range of data to write. Sets the beginning / finish number which write, when you specify the command value of pulse frequency, the command value of duty cycle, and the actual power.
typedef struct idblppfbfg {
short s_no; /* The group number of data to write. */
short slct; /* The kind of data to write. */
short s_freq; /* The pulse frequency number which begins to write. */
short e_freq; /* The pulse frequency number which finishes to write.*/
short s_duty; /* The duty cycle number which begins to write. */
short e_duty; /* The duty cycle number which finishes to write. */
} IDBLPPFBFG ;
- s_no
- Specifies the group number of command data at peak power to write.
- [Setting range] 0 to 7
- slct
- Specifies the kind of data to write.
- A flag of valid data is set.
- The meaning which correspond to each bit of this flag is as follows.
- When you enter each data, set the bit which correspond to data to 1.
- Please set 0 for bit4-15 which is unused.
bit 0 : The command value of peak power bit 1 : The command value of pulse frequency bit 2 : The command value of duty cycle bit 3 : The actual power bit 4,..,15 : Unused. - s_freq
- Specifies the pulse frequency number which begins to write.
- When s_freq is -1, all the data of pulse frequency can be write.
- [Setting range] -1, 0 to 9
- e_freq
- Specifies the pulse frequency number which finishes to write.
- When s_freq is -1, e_freq is invalid.(e_freq can be used, when s_freq is 0 to 9)
- [Setting range] 0 to 9
- s_duty
- Specifies the duty cycle number which begins to write.
- When s_duty is -1, all the data of duty cycle can be write.
- [Setting range] -1, 0 to 9
- e_duty
- Specifies the duty cycle number which finishes to write.
- When s_duty is -1, e_duty is invalid.(e_duty can be used, when s_duty is 0 to 9)
- [Setting range] 0 to 9
Specifies a pointer to the group number of data of actual output estimation type pulse power feedback to write. Specifies the number to write before calling the function. The number which actually wrote after calling the function is set. (specify 1 to 8 for the number)
A pointer to the IODBLPPFBDT structure in which to specify group data of actual output estimation type pulse power feedback to write.
The data of this structure prepare the number specified by "number".
The IODBLPPFBDT structure is as follows.
typedef struct iodblppfbdt {
short ppower; /* The peak power. */
short dummy; /* The dummy variable. */
short freq[10]; /* The pulse frequency */
short duty[10]; /* The duty cycle */
short rpower[10][10]; /* The actual power. */
} IODBLPPFBDT ;
- ppower
- Specifies the command value of peak power.
- [Unit] W
- [Setting range] 0 to 9999
- dummy
- The dummy variable.
- freq[10]
- Specifies the command value of pulse frequency.
- [Unit] Hz
- [Setting range] 1 to 32767
- When rflag.s_duty is 2 and rflag.e_duty is 4, the value is set from duty[2] to duty[4].
- duty[10]
- Specifies the command value of duty cycle.
- [Unit] %
- [Setting range] 0 to 100
- When rflag.s_duty is 2 and rflag.e_duty is 4, the value is set from duty[2] to duty[4].
- rpower[10][10]
- Specifies the actual power.
- [Unit] W
- [Setting range] -32768 to 32767
- [ i ][ j ] i : The number of duty cycle. , j : The number of pulse frequency.
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) |
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.
|
||||||||||||||||||
(5) |
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 extended driver/library function is necessary. |
||||||||||||||||||
(9) |
Mistake of laser oscillator (parameter No.15030) The actual output estimation type pulse power feedback function is invalid.(Parameter PFB(No.29000#0) mistake) |
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.
See Also