News CNCnetPDM About us Support  
       
  

CNC_RDPSCDPROC | LASER

TOP

Description

Reads the cutting data of the cutting condition file.

The data is stored in each member of the IODBPSCD structure.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

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

FWLIBAPI short WINAPI cnc_rdpscdproc(unsigned short FlibHndl,short s_no, short *number, IODBPSCD *pscd);

Arguments

FlibHndl   [ in ]

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

s_no   [ in ]

Specify the start cutting data group number.

·Series 16i/18i-L

1 to 10: cutting data group number

·Series 30i/31i-LB

When addition of the cutting condition data option is not provided.

1 to 10 cutting data group number

When addition of the cutting condition data option is provided.

1 to 30 cutting data group number

number   [ in/out ]

Pointer to the number of cutting data. Specify the number of cutting data to be read before functioncall, and the number of cutting data being read actually is stored after the function call.

pscd   [ out ]

Pointer to the IODBPSCD structure including the cutting data of the cutting condition file. The IODBPSCD structure is as follows.


·Series 16i/18i-L
typedef struct iodbpscd {
    short   slct;       /* Flag of valid data */
    long    feed;       /* Feedrate */
    short   power;      /* Cutting peak power */
    short   freq;       /* Cutting frequency */
    short   duty;       /* Cutting duty */
    short   g_press;    /* Assist gas pressure */
    short   g_kind;     /* Assist gas select */
    short   g_ready_t;  /* Gas setting time */
    short   displace;   /* Reference displace */
    long    supple;     /* Beam radius offset */
    short   edge_slt;   /* Edge cutting select */
    short   appr_slt;   /* Start-up select */
    short   pwr_ctrl;   /* Power control */
    short   reserve[4]; /* (reserve) */
} IODBPSCD ;

·Series 30i/31i-LB
typedef struct iodbpscd {
    short   slct;       /* Flag of valid data       */
    long    feed;       /* Feedrate                 */
    short   power;      /* Cutting peak power       */
    short   freq;       /* Cutting frequency        */
    short   duty;       /* Cutting duty             */
    short   g_press;    /* Assist gas pressure      */
    short   g_kind;     /* Assist gas select        */
    short   g_ready_t;  /* Gas setting time         */
    short   displace;   /* Reference displace       */
    long    supple;     /* Beam radius offset       */
    short   edge_slt;   /* Edge cutting select      */
    short   appr_slt;   /* Start-up select          */
    short   pwr_ctrl;   /* Power control            */
    long    displace2;  /* Reference displace       */
    char    gap_axis;   /* Gap control axis         */
    char    feed_dec;   /* Decimals places          */
    char    supple_dec; /* Decimals places          */
    char    dsp2_dec;   /* Decimals places          */
} IODBPSCD ;

slct
Flag of valid data is set.
·Series 16i/18i-L
bit 0:Feedrate
bit 1:Cutting peak power
bit 2:Cutting frequency
bit 3:Cutting duty
bit 4:Assist gas pressure
bit 5:Assist gas select
bit 6:Gas setting time
bit 7:Reference displace
bit 8:Beam radius offset
bit 9:Edge cutting select
bit10:Start-up select
bit11:Power control
bit12,..,15:(reserve)
·Series 30i/31i-LB
bit 0:Feedrate
bit 1:Cutting peak power
bit 2:Cutting frequency
bit 3:Cutting duty
bit 4:Assist gas pressure
bit 5:Assist gas select
bit 6:Gas setting time
bit 7:Reference displace
bit 8:Beam radius offset
bit 9:Edge cutting select
bit10:Start-up select
bit11:Power control
bit12:Reference displace2
bit13:Gap control axis
bit14,..,15:(reserve)
* When a bit is 0, it means the corresponding data has no meaning.
feed
Feedrate is set.
·Series 16i/18i-L
(Setting range: 0 to 240000, Unit: mm/min)
·Series 30i/31i-LB
(Setting range: 0 to 999999999, Unit:mm/min?inch/min((input unit)))
power
Cutting peak power for contouring is set.
(Setting range: 0 to 9999, Unit: W)
freq
Cutting frequency for contouring is set.
·Series 16i/18i-L
(Setting range: 5 to 2000, Unit: Hz)
·Series 30i/31i-LB
(Setting range: 1 to 32767, Unit:Hz)
duty
Cutting duty for contouring is set.
(Setting range: 0 to 100, Unit: %)
g_press
Assist gas pressure is set.
·Series 16i/18i-L
(Setting range: 0 to 255, Unit: 0.1Kg/cm2)
·Series 30i/31i-LB
(Setting range: 0 to 9999, Unit: 0.01MPa, 0.1Kg/cm2)
g_kind
Assist gas select is set.
·Series 16i/18i-L
(Setting range: 1 to 7, Unit: kind)
·Series 30i/31i-LB
(Setting range: 1 to 15, Unit: kind)
g_ready_t
Gas setting time is set.
(Setting range: 0 to 99, Unit: 0.1second)
displace
Reference displace is set.
(Setting range: -32767 to 32767, Unit: 0.001mm)
supple
Beam radius offset is set.
·Series 16i/18i-L
(Setting range: -9999 to 9999, Unit: 0.001mm)
·Series 30i/31i-LB
(Setting range: -999999999 ~ 999999999, Unit: mm, inch(input unit))
edge_slt
Edge cutting select is set.
·Series 16i/18i-L
(Setting range: 0, 201 to 205)
·Series 30i/31i-LB
When addition of the cutting condition data option is not provided.
(Setting range: 0, 201 to 205)
When addition of the cutting condition data option is provided.
(Setting range: 0, 201 to 210)
appr_slt
Start-up select is set.
·Series 16i/18i-L
(Setting range: 0, 201 to 205)
·Series 30i/31i-LB
When addition of the cutting condition data option is not provided.
(Setting range: 0, 201 to 205)
When addition of the cutting condition data option is provided.
(Setting range: 0, 201 to 210)
pwr_ctrl
Power control is set.
(Setting range: 0, 901 to 910)
displace2
·Series 30i/31i-LB only
Reference displace 2 is set.
(Setting range: -999999999 to 999999999, Unit: mm, inch(input unit))
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.
    gap_axis Setting of the gap control axis
    0The second gap control axis.
    1The first gap control axis.
    -1The gap control is invalid.
feed_dec
·Series 30i/31i-LB only
decimals places in command value of feed rate is set.
(Setting range: 0 to 9)
supple_dec
·Series 30i/31i-LB only
decimals places of beam diameter correction amount is set.
(Setting range: 0 to 9)
dsp2_dec
·Series 30i/31i-LB only
decimals places in Reference displace 2 is set.
(Setting range: 0 to 9)
The corresponding data is as follows.
    decimals places corresponding data
    feed_decfeed
    supple_decsupple
    dsp2_decdisplace2
reserve
·Series 16i/18i-L only
(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
EW_FUNC
(1)
Unavailable
This function cannot be used except 16i/18i-L , 30i/31i-LB.
EW_LENGTH
(2)
Data block length error
Number of data(number) is wrong.
EW_NUMBER
(3)
Data number error
Start number(s_no) is wrong.
EW_NOOPT
(6)
No option
The cutting condition setting function and 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

This function need the following CNC option.

    The cutting condition setting function is necessary.

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.

    See Also

    cnc_wrpscdproc  

    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_rdpscdproc

    Fanuc Focas Library | Laser | cnc_rddischarge

    Reads data related to electrical discharge at power compensation ends.... [read more]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | cnc_rdlcmmt

    Fanuc Focas Library | Laser | cnc_rdldsplc

    Reads the command data of reference displace.... [read more]
    Fanuc Focas Library | Laser | cnc_rdldsplc

    Fanuc Focas Library | Laser | cnc_rdldsplc2

    Reads the standard displacement. Each data is stored in the members within IODBDSPLC.... [read more]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | cnc_rdledgprc

    Fanuc Focas Library | Laser | cnc_rdlerrz

    Reads the error of Z-axis tracing.... [read more]
    Fanuc Focas Library | Laser | cnc_rdlerrz

    Fanuc Focas Library | Laser | cnc_rdlppfbdt

    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]
    Fanuc Focas Library | Laser | cnc_rdlppfbdt

    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]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | cnc_rdlpscdpwrctl

    Fanuc Focas Library | Laser | cnc_rdlpwrcpst

    Reads the power compensation coefficient.... [read more]
    Fanuc Focas Library | Laser | cnc_rdlpwrcpst

    Fanuc Focas Library | Laser | cnc_rdlpwrctrl

    Reads the on/off of laser power control.... [read more]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | cnc_rdlpwrdty

    Fanuc Focas Library | Laser | cnc_rdlpwrslt

    Reads the number of power devices (the number of effective discharge tubes).... [read more]
    Fanuc Focas Library | Laser | cnc_rdlpwrslt

    Fanuc Focas Library | Laser | cnc_rdmngtime

    Reads the management time data.... [read more]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | cnc_rdpscdpirc

    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]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | cnc_rdpwofsthis

    Fanuc Focas Library | Laser | cnc_wrlagslt

    Writes the assist gas selection of laser setting data.... [read more]
    Fanuc Focas Library | Laser | cnc_wrlagslt

    Fanuc Focas Library | Laser | cnc_wrlagst

    Writes the assist gas flow of laser setting data.... [read more]
    Fanuc Focas Library | Laser | cnc_wrlagst

    Fanuc Focas Library | Laser | cnc_wrldsplc

    Writes the command data of reference displace.... [read more]
    Fanuc Focas Library | Laser | cnc_wrldsplc

    Fanuc Focas Library | Laser | cnc_wrldsplc2

    Writes the standard displacement.... [read more]
    Fanuc Focas Library | Laser | cnc_wrldsplc2

    Fanuc Focas Library | Laser | cnc_wrledgprc

    Writes the laser power for contouring.... [read more]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | cnc_wrlppfbdt

    Fanuc Focas Library | Laser | cnc_wrlprcprc

    Writes the laser power for piercing.... [read more]
    Fanuc Focas Library | Laser | cnc_wrlprcprc

    Fanuc Focas Library | Laser | cnc_wrlpscdpwrctl

    Writes the Power control data .... [read more]
    Fanuc Focas Library | Laser | cnc_wrlpscdpwrctl

    Fanuc Focas Library | Laser | cnc_wrlpwrcpst

    Writes the power compensation coefficient.... [read more]
    Fanuc Focas Library | Laser | cnc_wrlpwrcpst

    Fanuc Focas Library | Laser | cnc_wrlpwrctrl

    Writes the on/off of laser power control.... [read more]
    Fanuc Focas Library | Laser | cnc_wrlpwrctrl

    Fanuc Focas Library | Laser | cnc_wrlpwrdty

    Writes the duty data for power control.... [read more]
    Fanuc Focas Library | Laser | 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]
    Fanuc Focas Library | Laser | cnc_wrlpwrslt

    Fanuc Focas Library | Laser | cnc_wrmngtime

    Writes the management time data.... [read more]
    Fanuc Focas Library | Laser | cnc_wrmngtime

    Fanuc Focas Library | Laser | cnc_wrpscdedge

    Writes the edge cutting data of the cutting condition file.... [read more]
    Fanuc Focas Library | Laser | cnc_wrpscdedge

    Fanuc Focas Library | Laser | cnc_wrpscdedge2

    Writes the edge cutting data in the cutting conditions file.... [read more]
    Fanuc Focas Library | Laser | cnc_wrpscdedge2

    Fanuc Focas Library | Laser | cnc_wrpscdpirc

    Writes the piercing data of the cutting condition file.... [read more]
    Fanuc Focas Library | Laser | cnc_wrpscdpirc

    Fanuc Focas Library | Laser | cnc_wrpscdproc

    Writes the cutting data of the cutting condition file.... [read more]
    Fanuc Focas Library | Laser | cnc_wrpscdproc

    Fanuc Focas Library | Laser | cnc_wrpscdslop

    Writes the slope control data of the cutting condition file.... [read more]
    Fanuc Focas Library | Laser | cnc_wrpscdslop

    Fanuc Focas Library | Laser | flist_Laser

    CNC: Function related to LASER... [read more]
    Fanuc Focas Library | Laser | flist_Laser
    Modified: 2023-12-05