News CNCnetPDM About us Support  
         
  

CNC_RDLPPFBDT | LASER

Description

Reads the data which the function of actual output estimation type pulse power feedback use. The data is stored in each member of the IODBLPPFBDT structure.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

#include "fwlib32.h" or "fwlib64.h"

FWLIBAPI short WINAPI cnc_rdlppfbdt(unsigned short FlibHndl, IDBLPPFBFG *rflag, short *number, IODBLPPFBDT *lppfbdt);

Arguments

FlibHndl   [ in ]

Specify the library handle. See "Library handle" for details.

rflag   [ in ]

Specifies a pointer to the structure in which to specify the kind and range of data to read. Sets the beginning / finish number which read, 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 read.                  */
    short   slct;           /* The kind of data to read.                          */
    short   s_freq;         /* The pulse frequency number which begins to read.   */
    short   e_freq;         /* The pulse frequency number which finishes to read. */
    short   s_duty;         /* The duty cycle number which begins to read.        */
    short   e_duty;         /* The duty cycle number which finishes to read.      */
} IDBLPPFBFG ;

s_no
The group number of command data at peak power to read is set.
[Setting range] 0 to 7
slct
The kind of data to read is set.
The meaning which correspond to each bit of this flag is as follows.
Each data can be acquired when the bit corresponding to data has been 1.
The data is invalid when the bit corresponding to data is 0.
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
The pulse frequency number which begins to read is set.
When s_freq is -1, all the data of pulse frequency can be read.
[Setting range] -1, 0 to 9
e_freq
The pulse frequency number which finishes to read is set.
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
The duty cycle number which begins to read is set.
When s_duty is -1, all the data of duty cycle can be read.
[Setting range] -1, 0 to 9
e_duty
The duty cycle number which finishes to read is set.
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
The data within the range specified for actual output estimation type pulse power feedback by s_freq, e_freq, s_duty, and e_duty is read.

number   [ in/out ]

Specifies a pointer to the group number of data of actual output estimation type pulse power feedback to read. Specifies the number to read before calling the function. The number which actually read after calling the function is set. (specify 1 to 8 for the number)

lppfbdt   [ out ]

A pointer to the IODBLPPFBDT structure in which to return the group data of actual output estimation type pulse power feedback to read. 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
The command value of peak power is set.
[Unit] W
[Setting range] 0 to 9999
dummy
The dummy variable.
freq[10]
The command value of pulse frequency is set.
[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]
The command value of duty cycle is set.
[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]
The actual power is set.
[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
EW_FUNC
(1)
Unavailable
This function cannot be used except 30i/31i-LB.
EW_LENGTH
(2)
Data block length error
Number of data(number) is wrong.
EW_NUMBER
(3)
Data number error
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.
1:Error in the group number of data (s_no) to read.
2:Error in the kind of data (slct) to read.
3:Error in the pulse frequency number which begins (s_freq) to read.
4:Error in the pulse frequency number which finishes (e_freq) to read.
5:Error in the duty cycle number which begins (s_duty) to read.
6:Error in the duty cycle number which finishes (e_duty) to read.
EW_NOOPT
(6)
No option
The extended driver/library function is necessary.
EW_PARAM
(9)
CNC parameter error(Series 30i/31i-LB only)
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,

    The extended driver/library function is necessary.

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.

  • Series 30i/31i-LB
  • No.15030
    PFB(No.29000#0)

    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-D0i-F16i18i30i-A30i-B
    P (Punch press)- - - - - -
    L (Laser) - - X - - O
    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

    cnc_wrlppfbdt  

    Privacy notice

    This website uses cookies. By continuing to use it you agree to our privacy policy. 

    https://www.inventcom.net/fanuc-focas-library/laser/cnc_rdlppfbdt

    Fanuc Focas Library | Laser | cnc_rddischarge

    Reads data related to electrical discharge at power compensation ends.... [read more]
    cnc_rddischarge

    Fanuc Focas Library | Laser | cnc_rddischrgalm

    Reads alarm history data related to electrical discharge. When you acquire data before and after updating the history data, there might not be... [read more]
    cnc_rddischrgalm

    Fanuc Focas Library | Laser | cnc_rdlactnum

    Reads the active cutting number, active piercing number and active slope number. The data is stored in each member of the ODBLACTN... [read more]
    cnc_rdlactnum

    Fanuc Focas Library | Laser | cnc_rdlagslt

    Reads the assist gas selection of laser setting data. The data is stored in each member of the IODBLAGSL structure.... [read more]
    cnc_rdlagslt

    Fanuc Focas Library | Laser | cnc_rdlagst

    Reads the assist gas flow of laser setting data. The data is stored in each member of the IODBLAGST structure.... [read more]
    cnc_rdlagst

    Fanuc Focas Library | Laser | cnc_rdlcmddat

    Reads the command data of laser. The data is stored in each member of the ODBLCMDT user define type.... [read more]
    cnc_rdlcmddat

    Fanuc Focas Library | Laser | cnc_rdlcmmt

    Reads the comment data of laser. The data is stored in 'comment' of the ODBLCMMT structure.... [read more]
    cnc_rdlcmmt

    Fanuc Focas Library | Laser | cnc_rdldsplc

    Reads the command data of reference displace.... [read more]
    cnc_rdldsplc

    Fanuc Focas Library | Laser | cnc_rdldsplc2

    Reads the standard displacement. Each data is stored in the members within IODBDSPLC.... [read more]
    cnc_rdldsplc2

    Fanuc Focas Library | Laser | cnc_rdledgprc

    Reads the laser power for contouring. The data is stored in each member of the IODBLEGPR structure.... [read more]
    cnc_rdledgprc

    Fanuc Focas Library | Laser | cnc_rdlerrz

    Reads the error of Z-axis tracing.... [read more]
    cnc_rdlerrz

    Fanuc Focas Library | Laser | cnc_rdlprcprc

    Reads the laser power for piercing. The data is stored in each member of the IODBLPCPR structure.... [read more]
    cnc_rdlprcprc

    Fanuc Focas Library | Laser | cnc_rdlpscdpwrctl

    Reads the item of setting screen at power control. Each data is stored in the members within IODBPWRCTL.... [read more]
    cnc_rdlpscdpwrctl

    Fanuc Focas Library | Laser | cnc_rdlpwrcpst

    Reads the power compensation coefficient.... [read more]
    cnc_rdlpwrcpst

    Fanuc Focas Library | Laser | cnc_rdlpwrctrl

    Reads the on/off of laser power control.... [read more]
    cnc_rdlpwrctrl

    Fanuc Focas Library | Laser | cnc_rdlpwrdat

    Reads the laser power data. The data is stored in each member of the ODBLOPDT structure.... [read more]
    cnc_rdlpwrdat

    Fanuc Focas Library | Laser | cnc_rdlpwrdty

    Reads the duty data for power control. The data is stored in each member of the IODBLPWDT structure.... [read more]
    cnc_rdlpwrdty

    Fanuc Focas Library | Laser | cnc_rdlpwrslt

    Reads the number of power devices (the number of effective discharge tubes).... [read more]
    cnc_rdlpwrslt

    Fanuc Focas Library | Laser | cnc_rdmngtime

    Reads the management time data.... [read more]
    cnc_rdmngtime

    Fanuc Focas Library | Laser | cnc_rdpscdedge

    Reads the edge cutting data of the cutting condition file. The data is stored in each member of the IODBEDGE structure.... [read more]
    cnc_rdpscdedge

    Fanuc Focas Library | Laser | cnc_rdpscdedge2

    Reads the edge cutting data in the cutting conditions file. Each data is stored in the members within IODBEDGE2.... [read more]
    cnc_rdpscdedge2

    Fanuc Focas Library | Laser | cnc_rdpscdpirc

    Reads the piercing data of the cutting condition file. The data is stored in each member of the IODBPIRC structure.... [read more]
    cnc_rdpscdpirc

    Fanuc Focas Library | Laser | cnc_rdpscdproc

    Reads the cutting data of the cutting condition file. The data is stored in each member of the IODBPSCD structure.... [read more]
    cnc_rdpscdproc

    Fanuc Focas Library | Laser | cnc_rdpscdslop

    Reads the slope control data of the cutting condition file. The data is stored in each member of the IODBSLOP structure.... [read more]
    cnc_rdpscdslop

    Fanuc Focas Library | Laser | cnc_rdpwofsthis

    Reads the history data of the power compensation coefficient. When you acquire data before and after updating the history data, there might not be... [read more]
    cnc_rdpwofsthis

    Fanuc Focas Library | Laser | cnc_wrlagslt

    Writes the assist gas selection of laser setting data.... [read more]
    cnc_wrlagslt

    Fanuc Focas Library | Laser | cnc_wrlagst

    Writes the assist gas flow of laser setting data.... [read more]
    cnc_wrlagst

    Fanuc Focas Library | Laser | cnc_wrldsplc

    Writes the command data of reference displace.... [read more]
    cnc_wrldsplc

    Fanuc Focas Library | Laser | cnc_wrldsplc2

    Writes the standard displacement.... [read more]
    cnc_wrldsplc2

    Fanuc Focas Library | Laser | cnc_wrledgprc

    Writes the laser power for contouring.... [read more]
    cnc_wrledgprc

    Fanuc Focas Library | Laser | cnc_wrlppfbdt

    Writes the data which the function of actual output estimation type pulse power feedback use.... [read more]
    cnc_wrlppfbdt

    Fanuc Focas Library | Laser | cnc_wrlprcprc

    Writes the laser power for piercing.... [read more]
    cnc_wrlprcprc

    Fanuc Focas Library | Laser | cnc_wrlpscdpwrctl

    Writes the Power control data .... [read more]
    cnc_wrlpscdpwrctl

    Fanuc Focas Library | Laser | cnc_wrlpwrcpst

    Writes the power compensation coefficient.... [read more]
    cnc_wrlpwrcpst

    Fanuc Focas Library | Laser | cnc_wrlpwrctrl

    Writes the on/off of laser power control.... [read more]
    cnc_wrlpwrctrl

    Fanuc Focas Library | Laser | cnc_wrlpwrdty

    Writes the duty data for power control.... [read more]
    cnc_wrlpwrdty

    Fanuc Focas Library | Laser | cnc_wrlpwrslt

    Writes the number of power devices (the number of effective discharge tubes). Either all tubes or half can be specified.... [read more]
    cnc_wrlpwrslt

    Fanuc Focas Library | Laser | cnc_wrmngtime

    Writes the management time data.... [read more]
    cnc_wrmngtime

    Fanuc Focas Library | Laser | cnc_wrpscdedge

    Writes the edge cutting data of the cutting condition file.... [read more]
    cnc_wrpscdedge

    Fanuc Focas Library | Laser | cnc_wrpscdedge2

    Writes the edge cutting data in the cutting conditions file.... [read more]
    cnc_wrpscdedge2

    Fanuc Focas Library | Laser | cnc_wrpscdpirc

    Writes the piercing data of the cutting condition file.... [read more]
    cnc_wrpscdpirc

    Fanuc Focas Library | Laser | cnc_wrpscdproc

    Writes the cutting data of the cutting condition file.... [read more]
    cnc_wrpscdproc

    Fanuc Focas Library | Laser | cnc_wrpscdslop

    Writes the slope control data of the cutting condition file.... [read more]
    cnc_wrpscdslop

    Fanuc Focas Library | Laser | flist_Laser

    CNC: Function related to LASER... [read more]
    flist_Laser
    Modified: 2018-06-11