News CNCnetPDM About us Support  
         
  

CNC_RDDISCHRGALM | LASER

Description

Reads alarm history data related to electrical discharge.

When you acquire data before and after updating the history data, there might not be continuousness in the acquired data. So, usually acquire all data from the top.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

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

FWLIBAPI short WINAPI cnc_rddischrgalm(unsigned short FlibHndl, long s_no, long *number, ODBDISCHRGALM *data);

Arguments

FlibHndl   [ in ]

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

s_no   [ in ]

Specify the reading start number of alarm history data related to electrical discharge. (0,1,2,...)

number   [ in/out ]

Specify the pointer to the variable where the number of alarm history data related to electrical discharge which wants to be acquired was setted.
This function returns the number of data which was read actually.
The maximum number of history data is 5.

data   [ out ]

Specify the pointer to the array of ODBDISCHRGALM structure to store the alarm history data related to electrical discharge. The number of array must be equal to "number".
The ODBDISCHRGALM structure is as follows.

typedef struct odbdischrgalm {
    unsigned short   year;       /* Year at alarm occurring */
    unsigned short   month;      /* Month at alarm occurring */
    unsigned short   day;        /* Day at alarm occurring */
    unsigned short   hour;       /* Hour at alarm occurring */
    unsigned short   minute;     /* Minute at alarm occurring */
    unsigned short   second;     /* Second at alarm occurring */
    long             almnum;     /* Alarm number */
    unsigned long    psec;       /* Progress time(second) */
    short            hpc;        /* Peak power */
    short            hfq;        /* Pulse frequency */
    short            hdt;        /* Pulse duty */
    short            hpa;        /* Actual power */
    long             hce;        /* Power compensation coefficient */
    unsigned short   asq;        /* Sequence number at alarm occurring */
    unsigned short   psu;        /* Power supply flag at alarm occurring */
    unsigned short   aps;        /* Power supply select flag */
    short            dummy;      /*  uunused */
    long             rfi[8];     /* RF current(RFI) */
    long             rfv[8];     /* RF voltage(RFV) */
    long             dci[8];     /* DC current(DCI) */
    long             dcv[8];     /* DC voltage(DCV) */
    long             dcw[8];     /* DC power(DCW) */
    short            almcd[8];   /* Power supply alarm code */
} ODBDISCHRGALM;
year
Year at alarm occurring (4 digits at Christian era)
month
Month at alarm occurring (1-12)
day
Day at alarm occurring (1-31)
hour
Hour at alarm occurring (0-23)
minute
Minute at alarm occurring (0-59)
second
Second at alarm occurring (0-59)
almnum
Alarm number (0-65535)
psec
Progress time(second) (0-0xFFFFFFFF)
hpc
Peak power (0-7000)
hfq
Pulse frequency (0-2000)
hdt
Pulse duty (0-100)
hpa
Actual power (0-7000)
hce
Power compensation coefficient (0-65535)
asq
Sequence number at alarm occurring (0-255)
psu
Power supply flag at alarm occurring
#0:PSU1 (Power supply 1)
#1:PSU2 (Power supply 2)
: :
#7:PSU8 (Power supply 8)
(In case of alarm is 0)
aps
Power supply select flag
#0:PSU1 (Power supply 1)
#1:PSU2 (Power supply 2)
: :
#7:PSU8 (Power supply 8)
dummy
uunused
rfi[8]
RF current(RFI) (0-65535) 8 data at each power supply.
rfv[8]
RF voltage(RFV) (0-65535) 8 data at each power supply.
dci[8]
DC current(DCI) (0-65535) 8 data at each power supply.
dcv[8]
DC voltage(DCV) (0-65535) 8 data at each power supply.
dcw[8]
DC power(DCW) (0-65535) 8 data at each power supply.
almcd[8]
Power supply alarm code(0-255) 8 data at each power supply.

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 16i/18i-L, 30i/31i-LB.
EW_NUMBER
(3)
Data number error
Start number(s_no) is wrong.
EW_LENGTH
(2)
Data block length error
Number of data(number) is wrong.
EW_NOOPT
(6)
No option
The extended driver/library function are necessary.
EW_PARAM
(9)
CNC parameter error(Series 30i/31i-LB only)
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,

    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

    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) - - O - - 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.

    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_rddischrgalm
    Fanuc Focas Library | Laser | cnc_rddischarge
    Description Reads data related to electrical discharge at power compensation ends.... [read more]
    cnc_rddischarge
    Fanuc Focas Library | Laser | cnc_rdlactnum
    Description 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
    Description 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
    Description 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
    Description 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
    Description 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
    Description Reads the command data of reference displace.... [read more]
    cnc_rdldsplc
    Fanuc Focas Library | Laser | cnc_rdldsplc2
    Description Reads the standard displacement. Each data is stored in the members within IODBDSPLC.... [read more]
    cnc_rdldsplc2
    Fanuc Focas Library | Laser | cnc_rdledgprc
    Description 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
    Description Reads the error of Z-axis tracing.... [read more]
    cnc_rdlerrz
    Fanuc Focas Library | Laser | cnc_rdlppfbdt
    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... [read more]
    cnc_rdlppfbdt
    Fanuc Focas Library | Laser | cnc_rdlprcprc
    Description 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
    Description 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
    Description Reads the power compensation coefficient.... [read more]
    cnc_rdlpwrcpst
    Fanuc Focas Library | Laser | cnc_rdlpwrctrl
    Description Reads the on/off of laser power control.... [read more]
    cnc_rdlpwrctrl
    Fanuc Focas Library | Laser | cnc_rdlpwrdat
    Description 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
    Description 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
    Description Reads the number of power devices (the number of effective discharge tubes).... [read more]
    cnc_rdlpwrslt
    Fanuc Focas Library | Laser | cnc_rdmngtime
    Description Reads the management time data.... [read more]
    cnc_rdmngtime
    Fanuc Focas Library | Laser | cnc_rdpscdedge
    Description 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
    Description 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
    Description 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
    Description 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
    Description 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
    Description 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
    Description Writes the assist gas selection of laser setting data.... [read more]
    cnc_wrlagslt
    Fanuc Focas Library | Laser | cnc_wrlagst
    Description Writes the assist gas flow of laser setting data.... [read more]
    cnc_wrlagst
    Fanuc Focas Library | Laser | cnc_wrldsplc
    Description Writes the command data of reference displace.... [read more]
    cnc_wrldsplc
    Fanuc Focas Library | Laser | cnc_wrldsplc2
    Description Writes the standard displacement.... [read more]
    cnc_wrldsplc2
    Fanuc Focas Library | Laser | cnc_wrledgprc
    Description Writes the laser power for contouring.... [read more]
    cnc_wrledgprc
    Fanuc Focas Library | Laser | cnc_wrlppfbdt
    Description 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
    Description Writes the laser power for piercing.... [read more]
    cnc_wrlprcprc
    Fanuc Focas Library | Laser | cnc_wrlpscdpwrctl
    Description Writes the Power control data .... [read more]
    cnc_wrlpscdpwrctl
    Fanuc Focas Library | Laser | cnc_wrlpwrcpst
    Description Writes the power compensation coefficient.... [read more]
    cnc_wrlpwrcpst
    Fanuc Focas Library | Laser | cnc_wrlpwrctrl
    Description Writes the on/off of laser power control.... [read more]
    cnc_wrlpwrctrl
    Fanuc Focas Library | Laser | cnc_wrlpwrdty
    Description Writes the duty data for power control.... [read more]
    cnc_wrlpwrdty
    Fanuc Focas Library | Laser | cnc_wrlpwrslt
    Description 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
    Description Writes the management time data.... [read more]
    cnc_wrmngtime
    Fanuc Focas Library | Laser | cnc_wrpscdedge
    Description Writes the edge cutting data of the cutting condition file.... [read more]
    cnc_wrpscdedge
    Fanuc Focas Library | Laser | cnc_wrpscdedge2
    Description Writes the edge cutting data in the cutting conditions file.... [read more]
    cnc_wrpscdedge2
    Fanuc Focas Library | Laser | cnc_wrpscdpirc
    Description Writes the piercing data of the cutting condition file.... [read more]
    cnc_wrpscdpirc
    Fanuc Focas Library | Laser | cnc_wrpscdproc
    Description Writes the cutting data of the cutting condition file.... [read more]
    cnc_wrpscdproc
    Fanuc Focas Library | Laser | cnc_wrpscdslop
    Description 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