NewsCNCnetPDMAbout usSupport
  

CNC_RDTOFSR | NCDATA

Description

Reads the tool offset value specified by "s_number","e_number","type". The offset value is stored in "IODBTO" with signed binary format.

The unit of offset value is the same as "Read tool offset value(cnc_rdtofs)". See the description of cnc_rdtofs function.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

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

FWLIBAPI short WINAPI cnc_rdtofsr(unsigned short FlibHndl, short s_number, short type, short e_number, short length, IODBTO *tofsr);

Arguments

FlibHndl   [ in ]

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

s_number   [ in ]

Specify the start tool offset number.
The available number of tool offset can be got by cnc_rdtofsinfo function.

e_number   [ in ]

Specify the end tool offset number.

type   [ in ]

Specify the tool offset type.(see the following table)

length   [ in ]

Specify the data block length.(see the following table)

tofsr   [ out ]

Pointer to the IODBTO structure including the tool offset value.
The IODBTO structure is as follows.


typedef struct iodbto {
    short datano_s;             /* start offset number */
    short type;                 /* offset type */
    short datano_e;             /* end offset number */
    union {
        long    m_ofs[N];       /* M series individual */
        long    m_ofs_a[N];     /* M series Memory A all */
        long    m_ofs_b[2*N];   /* M series Memory B all */
        long    m_ofs_c[4*N];   /* M series Memory C all */
        struct  {
            short   tip ;
            long    data[1] ;
        } m_ofs_at[N] ;         /* M series Memory A all with direction of imaginary tool nose */
        struct  {
            short   tip ;
            long    data[2] ;
        } m_ofs_bt[N] ;         /* M series Memory B all with direction of imaginary tool nose */
        struct  {
            short   tip ;
            long    data[4] ;
        } m_ofs_ct[N] ;         /* M series Memory C all with direction of imaginary tool nose */
        short   t_tip[N];       /* T series individual,direction of imaginary tool nose */
        long    t_ofs[N];       /* T series individual */
        struct  {
            short   tip;
            long    data[4];
        } t_ofs_a[N];           /* T series Memory A all */
        struct {
            short   tip;
            long    data[8];
        } t_ofs_b[N];           /* T series Memory B all */
        long    t_ofs_2g[3*N];  /* T series Second geometry all */
        struct  {
            long    data[2];
        } t_ofs_ex[N];          /* T series 4th/5th Axis Offset Function all */
    } u ;
} IODBTO ;      /* N is number of the offset value. */

The combinations of the value specified in "type", the data block length "length", the kind of offset value to be read and the member in which the result is stored are as follows.

  • Machining Series(including Power Mate i, PMi-A)/Tool offset Memory A
  • type length Attribute Offset type Member to be stored in
    0 8+4*N individual Tool offset tofsr.u.m_ofs[i]
    -1 8+4*N all Tool offset tofsr.u.m_ofs_a[i]

  • Machining Series(Series 30i)/Tool offset Memory A
  • type length Attribute Offset type Member to be stored in
    0 8+4*N individual Tool offset tofsr.u.m_ofs[i]
    9 8+2*N individual Direction of imaginary tool nose tofsr.u.t_tip[i]
    -1 8+4*N all Tool offset tofsr.u.m_ofs_a[i]
    -4 8+8*N all Direction of imaginary tool nose tofsr.u.m_ofs_at[i].tip
    Tool offset tofsr.u.m_ofs_at[i].data[0]

  • Machining Series (including Power Mate i)/Tool offset Memory B
  • type length Attribute Offset type Member to be stored in
    0 8+4*N individual Tool geometry offset tofsr.u.m_ofs[i]
    1 8+4*N individual Tool wear offset tofsr.u.m_ofs[i]
    -2 8+8*N all Tool geometry offset tofsr.u.m_ofs_b[2*i+0]
    Tool wear offset tofsr.u.m_ofs_b[2*i+1]

  • Machining Series(Series 30i)/Tool offset Memory B
  • type length Attribute Offset type Member to be stored in
    0 8+4*N individual Tool geometry offset tofsr.u.m_ofs[i]
    1 8+4*N individual Tool wear offset tofsr.u.m_ofs[i]
    9 8+2*N individual Direction of imaginary tool nose tofsr.u.t_tip[i]
    -2 8+8*N all Tool geometry offset tofsr.u.m_ofs_b[2*i+0]
    Tool wear offset tofsr.u.m_ofs_b[2*i+1]
    -5 8+12*N all Direction of imaginary tool nose tofsr.u.m_ofs_bt[i].tip
    Tool geometry offset tofsr.u.m_ofs_bt[i].data[0]
    Tool wear offset tofsr.u.m_ofs_bt[i].data[1]

  • Machining Series (including Power Mate i)/Tool offset Memory C
  • type length Attribute Offset type Member to be stored in
    0 8+4*N individual Tool length/geometry tofsr.u.m_ofs[i]
    1 8+4*N individual Tool length/wear tofsr.u.m_ofs[i]
    2 8+4*N individual Cutter radius/geometry tofsr.u.m_ofs[i]
    3 8+4*N individual Cutter radius/wear tofsr.u.m_ofs[i]
    -3 8+16*N all Tool length/geometry tofsr.u.m_ofs_c[4*i+0]
    Tool length/wear tofsr.u.m_ofs_c[4*i+1]
    Cutter radius/geometry tofsr.u.m_ofs_c[4*i+2]
    Cutter radius/wear tofsr.u.m_ofs_c[4*i+3]

  • Machining Series(Series 30i)/Tool offset Memory C
  • ? When the tool offset for milling and turning function option is invalid.
    type length Attribute Offset type Member to be stored in
    0 8+4*N individual Tool length/geometry tofsr.u.m_ofs[i]
    1 8+4*N individual Tool length/wear tofsr.u.m_ofs[i]
    2 8+4*N individual Cutter radius/geometry tofsr.u.m_ofs[i]
    3 8+4*N individual Cutter radius/wear tofsr.u.m_ofs[i]
    9 8+2*N individual Direction of imaginary tool nose tofsr.u.t_tip[i]
    -3 8+16*N all Tool length/geometry tofsr.u.m_ofs_c[4*i+0]
    Tool length/wear tofsr.u.m_ofs_c[4*i+1]
    Cutter radius/geometry tofsr.u.m_ofs_c[4*i+2]
    Cutter radius/wear tofsr.u.m_ofs_c[4*i+3]
    -6 8+20*N all Direction of imaginary tool nose tofsr.u.m_ofs_ct[i].tip
    Tool length/geometry tofsr.u.m_ofs_ct[i].data[0]
    Tool length/wear tofsr.u.m_ofs_ct[i].data[1]
    Cutter radius/geometry tofsr.u.m_ofs_ct[i].data[2]
    Cutter radius/wear tofsr.u.m_ofs_ct[i].data[3]

    ? When the tool offset for milling and turning function option is valid.
    type length Attribute Offset type Member to be stored in
    08+2*NindividualDirection of imaginary tool nose tofsr.u.t_tip[i]
    18+4*NindividualX-axis geometry offset tofsr.u.t_ofs[i]
    28+4*NindividualY-axis geometry offset tofsr.u.t_ofs[i]
    38+4*NindividualTool length/geometrytofsr.u.t_ofs[i]
    48+4*NindividualCutter radius/geometrytofsr.u.t_ofs[i]
    58+4*NindividualX-axis wear offset tofsr.u.t_ofs[i]
    68+4*NindividualY-axis wear offset tofsr.u.t_ofs[i]
    78+4*NindividualTool length/weartofsr.u.t_ofs[i]
    88+4*NindividualCutter radius/weartofsr.u.t_ofs[i]
    -2 8+36*N all Direction of imaginary tool nosetofsr.u.t_ofs_b[i].tip
    X-axis geometry offset tofsr.u.t_ofs_b[i].data[0]
    Y-axis geometry offset tofsr.u.t_ofs_b[i].data[1]
    Tool length/geometrytofsr.u.t_ofs_b[i].data[2]
    Cutter radius/geometrytofsr.u.t_ofs_b[i].data[3]
    X-axis wear offset tofsr.u.t_ofs_b[i].data[4]
    Y-axis wear offset tofsr.u.t_ofs_b[i].data[5]
    Tool length/weartofsr.u.t_ofs_b[i].data[6]
    Cutter radius/weartofsr.u.t_ofs_b[i].data[7]

  • Lathe Series/Tool offset Memory A
  • type length Attribute Offset type Member to be stored in
    0 8+2*N individual Direction of imaginary tool nose tofsr.u.t_tip[i]
    1 8+4*N individual X-axis offset tofsr.u.t_ofs[i]
    2 8+4*N individual Y-axis offset tofsr.u.t_ofs[i]
    3 8+4*N individual Z-axis offset tofsr.u.t_ofs[i]
    4 8+4*N individual Nose radius offset tofsr.u.t_ofs[i]
    -1 8+20*N all Direction of imaginary tool nose tofsr.u.t_ofs_a[i].tip
    X-axis offset tofsr.u.t_ofs_a[i].data[0]
    Y-axis offset tofsr.u.t_ofs_a[i].data[1]
    Z-axis offset tofsr.u.t_ofs_a[i].data[2]
    Nose radius offset tofsr.u.t_ofs_a[i].data[3]

  • Lathe Series(Series 30i)/Tool offset Memory B
  • type length Attribute Offset type Member to be stored in
    0 8+2*N individual Direction of imaginary tool nose tofsr.u.t_tip[i]
    1 8+4*N individual X-axis geometry offset tofsr.u.t_ofs[i]
    2 8+4*N individual Y-axis geometry offset tofsr.u.t_ofs[i]
    3 8+4*N individual Z-axis geometry offset tofsr.u.t_ofs[i]
    4 8+4*N individual Nose radius geometry offset tofsr.u.t_ofs[i]
    5 8+4*N individual X-axis wear offset tofsr.u.t_ofs[i]
    6 8+4*N individual Y-axis wear offset tofsr.u.t_ofs[i]
    7 8+4*N individual Z-axis wear offset tofsr.u.t_ofs[i]
    8 8+4*N individual Nose radius wear offset tofsr.u.t_ofs[i]
    -2 8+36*N all Direction of imaginary tool nose tofsr.u.t_ofs_b[i].tip
    X-axis geometry offset tofsr.u.t_ofs_b[i].data[0]
    Y-axis geometry offset tofsr.u.t_ofs_b[i].data[1]
    Z-axis geometry offset tofsr.u.t_ofs_b[i].data[2]
    Nose radius geometry offset tofsr.u.t_ofs_b[i].data[3]
    X-axis wear offset tofsr.u.t_ofs_b[i].data[4]
    Y-axis wear offset tofsr.u.t_ofs_b[i].data[5]
    Z-axis wear offset tofsr.u.t_ofs_b[i].data[6]
    Nose radius wear offset tofsr.u.t_ofs_b[i].data[7]

  • Lathe Series/Second geometry
  • type length Attribute Offset type Member to be stored in
    100 8+4*N individual X-axis offset tofsr.u.t_ofs[i]
    101 8+4*N individual Y-axis offset tofsr.u.t_ofs[i]
    102 8+4*N individual Z-axis offset tofsr.u.t_ofs[i]
    -100 8+12*N all X-axis offset tofsr.u.t_ofs_2g[3*i+0]
    Y-axis offset tofsr.u.t_ofs_2g[3*i+1]
    Z-axis offset tofsr.u.t_ofs_2g[3*i+2]

  • Machining Series(Series 30i)/Corner R
  • type length Attribute Offset type Member to be stored in
    108+4*NindividualCorner R/geometrytofsr.u.m_ofs[i]
    118+4*NindividualCorner R/wear tofsr.u.m_ofs[i]
    -10 8+8*N all Corner R/geometrytofsr.u.m_ofs_cnr[2*i+0]
    Corner R/wear tofsr.u.m_ofs_cnr[2*i+1]

  • Lathe Series(Series 30i)/Without Geometory/wear offset(2nd coordinate)
  • type length Attribute Offset type Member to be stored in
    208+2*NindividualDirection of imaginary tool nosetofsr.u.t_tip[i]
    218+4*NindividualX-axis offset tofsr.u.t_ofs[i]
    228+4*NindividualY-axis offset tofsr.u.t_ofs[i]
    238+4*NindividualZ-axis offset tofsr.u.t_ofs[i]
    248+4*NindividualNose radius offset tofsr.u.t_ofs[i]
    -21 8+20*N all Direction of imaginary tool nosetofsr.u.t_ofs_a2[i].tip
    X-axis offset tofsr.u.t_ofs_a2[i].data[0]
    Y-axis offset tofsr.u.t_ofs_a2[i].data[1]
    Z-axis offset tofsr.u.t_ofs_a2[i].data[2]
    Nose radius offsettofsr.u.t_ofs_a2[i].data[3]

  • Lathe Series(Series 30i)/Geometry/ware offset(2nd coordinate)
  • type length Attribute Offset type Member to be stored in
    208+2*NindividualDirection of imaginary tool nose tofsr.u.t_tip[i]
    218+4*NindividualX-axis geometry offset tofsr.u.t_ofs[i]
    228+4*NindividualY-axis geometry offset tofsr.u.t_ofs[i]
    238+4*NindividualZ-axis geometry offset tofsr.u.t_ofs[i]
    248+4*NindividualNose radius geometry offsettofsr.u.t_ofs[i]
    258+4*NindividualX-axis wear offset tofsr.u.t_ofs[i]
    268+4*NindividualY-axis wear offset tofsr.u.t_ofs[i]
    278+4*NindividualZ-axis wear offset tofsr.u.t_ofs[i]
    288+4*NindividualNose radius wear offsettofsr.u.t_ofs[i]
    -22 8+36*N all Direction of imaginary tool nosetofsr.u.t_ofs_b2[i].tip
    X-axis geometry offset tofsr.u.t_ofs_b2[i].data[0]
    Y-axis geometry offset tofsr.u.t_ofs_b2[i].data[1]
    Z-axis geometry offset tofsr.u.t_ofs_b2[i].data[2]
    Nose radius geometry offsettofsr.u.t_ofs_b2[i].data[3]
    X-axis wear offset tofsr.u.t_ofs_b2[i].data[4]
    Y-axis wear offset tofsr.u.t_ofs_b2[i].data[5]
    Z-axis wear offset tofsr.u.t_ofs_b2[i].data[6]
    Nose radius wear offsettofsr.u.t_ofs_b2[i].data[7]

  • Lathe Series(Series 30i)/Second geometry(2nd Coordinate)
  • type length Attribute Offset type Member to be stored in
    1208+4*NindividualX-axis offsettofsr.u.t_ofs[i]
    1218+4*NindividualY-axis offsettofsr.u.t_ofs[i]
    1228+4*NindividualZ-axis offsettofsr.u.t_ofs[i]
    -120 8+12*N all X-axis offsettofsr.u.t_ofs_2g2[3*i+0]
    Y-axis offsettofsr.u.t_ofs_2g2[3*i+1]
    Z-axis offsettofsr.u.t_ofs_2g2[3*i+2]

  • Lathe Series(Series 30i)/4th/5th Axis Offset Function/Without Geometory/wear offset
  • type length Attribute Offset type Member to be stored in
    128+4*Nindividual4th axis offsettofsr.u.t_ofs[i]
    148+4*Nindividual5th axis offsettofsr.u.t_ofs[i]
    -128+4*Nall4th axis offsettofsr.u.t_ofs_ex[i].data[0]
    -148+4*Nall5th axis offsettofsr.u.t_ofs_ex[i].data[0]

  • Lathe Series(Series 30i)/4th/5th Axis Offset Function/Geometory/wear offset
  • type length Attribute Offset type Member to be stored in
    128+4*Nindividual4th axis geometory offsettofsr.u.t_ofs[i]
    138+4*Nindividual4th axis wear offsettofsr.u.t_ofs[i]
    148+4*Nindividual5th axis geometory offsettofsr.u.t_ofs[i]
    158+4*Nindividual5th axis wear offsettofsr.u.t_ofs[i]
    -13 8+8*N all 4th axis geometory offsettofsr.u.t_ofs_ex[i].data[0]
    4th axis wear offsettofsr.u.t_ofs_ex[i].data[1]
    -15 8+8*N all 5th axis geometory offsettofsr.u.t_ofs_ex[i].data[0]
    5th axis wear offsettofsr.u.t_ofs_ex[i].data[1]

N is number of offset to be read, i = 0,..,(N-1).

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_LENGTH
(2)
Data block length error
Size of ODBTOFS structure(length) is wrong.
EW_NUMBER
(3)
Data number error
Offset number(s_number, e_number) is wrong.
EW_ATTRIB
(4)
Data attribute error
Offset type(type) is wrong.

As for the other return codes or the details, see "Return status of Data window function"

CNC option

And this function is related to the following CNC option.

  • Series 15
  • M Tool offset extension (32)/99/200/499/999 sets
    Tool offset memory (A)/B/C
    Extended tool offset value (number of offset is half of the above sets.)
    T Tool offset extension (32)/64/160 sets
    Tool offset memory (A)/B
    Cutter radius compensation
    Extended tool offset value (number of offset is half of the above sets.)
    TT Tool offset extension (16)/32/80 sets(each path)
    Tool offset memory (A)/B
    Cutter radius compensation

  • Series 15i
  • M Tool offset extension (32)/99/200/499/999 sets
    Tool offset memory (A)/B/C

  • Series 16/18/21, 16i/18i/21i
  • M Tool offset extension (32)/64/99/200/400/499/999 sets
    Tool offset memory (A)/B/C
    T Tool offset extension (16)/32/64/99 sets
    Geometry/wear offset
    Cutter radius compensation
    Y-axis offset

  • Series 0i-A/B/C
  • M Tool offset extension 32/(400) sets
    Tool offset memory A/(C)
    T Tool offset extension 32/(64) sets
    Geometry/wear offset
    Cutter radius compensation
    Y axis offset

  • Series 0i-D/F
  • M Tool offset extension 32/(400) sets
    Tool offset memory A/(C)
    T Tool offset extension 32/(99) sets
    Geometry/wear offset
    Cutter radius compensation
    Y axis offset

  • Series 30i
  • M Tool offset extension (32)/64/99/200/400/499/999/2000 sets
    Tool offset memory (A)/B/C
    Cutter radius/nose radius offset
    Tool offset for Milling and Turning function
    T Tool offset extension (32)/64/99/200/400/499/999/2000 sets
    Geometry/wear offset
    Cutter radius/nose radius offset
    Y-axis offset
    Second geometry tool offset
    4th/5th Axis Offset Function
    The changing active offset
    Tool offset for Milling and Turning function

  • Power Motion i
  • Tool offset extension (32)/99/200 sets

    * ( ) : Basic

For HSSB connection,

    The extended driver/library function is necessary.

For Ethernet connection,

    The Ethernet function and the extended driver/library function are necessary.

    However, in case of Series 16i/18i/21i-B, 0i-B/C/D/F, Series 30i and PMi-A, the required CNC option is as follows.

    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 15/15i
  • 6002#0,#1, 6004#0, 6007#0

  • Series 16/18/21, 16i/18i/21i, 0i-A/B/C
  • 1004#0,#1

  • Series 0i-D, PMi-A
  • 5042#1,#0
    5009#5(M Series)
    5024

  • Series 0i-F
  • 5042#1,#0
    5009#5(M Series)
    5024
    8132#1=1 (must be set)

  • Series 30i
  • 5042#3,#2,#1,#0
    5009#5(M Series)
    5024

  • Power Mate i
  • 1004#0(In case of Power Mate i-H)
    1004#1(In case of Power Mate i-D)

    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)H O O O H O H H H O O O O O O O O
    T (Turning) H O O O H - H H H O O O O O O O O
    LC (Loader) - - - - - - H H H H H H H H H - -

    0i-D0i-F16i18i30i-A30i-B
    P (Punch press)O O O O - O
    L (Laser) - - O - - O
    W (Wire) - - E E O O


    Power Mate i-DO
    Power Mate i-HO
    Power Motion i-AO

    "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_rdtofs   cnc_wrtofs   cnc_wrtofsr   cnc_rdtofsinfo  

    Example(C Language)

     
    The following program reads all offset values of Lathe-Series(Memory B/64 sets)
    and displays them.
    
    #include "fwlib32.h"
    #define MAXTOOL 64
    
    short example( void )
    {
        IODBTO *tofsr ;
        short ret, idx ;
        tofsr = (IODBTO *)malloc( 8+36*MAXTOOL ) ;
        ret = cnc_rdtofsr( h, 1, -2, MAXTOOL, 8+36*MAXTOOL, tofsr ) ;
        if ( !ret ) {
            printf( "No  X:wear  Z:wear  Y:wear  X:geom  "
                    "Z:geom  Y:geom  R:wear  R:geom T\n" ) ;
            printf( "---+-------+-------+-------+-------+"
                    "-------+-------+-------+------+-\n" ) ;
            for ( idx = 0 ; idx < MAXTOOL ; idx++ ) {
                printf( "%02d%8ld%8ld%8ld%8ld%8ld%8ld%8ld%8ld%2d\n",
                        idx, tofsr->u.t_ofs_b[idx].data[4],
                        tofsr->u.t_ofs_b[idx].data[5],
                        tofsr->u.t_ofs_b[idx].data[6],
                        tofsr->u.t_ofs_b[idx].data[0],
                        tofsr->u.t_ofs_b[idx].data[1],
                        tofsr->u.t_ofs_b[idx].data[2],
                        tofsr->u.t_ofs_b[idx].data[7],
                        tofsr->u.t_ofs_b[idx].data[3],
                        tofsr->u.t_ofs_b[idx].tip ) ;
            }
        }
        free( tofsr ) ;
        return ( ret ) ;
    }
     

    Example(C#)

    
    The following program reads all offset values of Lathe-Series(Memory B/64 sets)
    and displays them.
    
    class example
    {
        public const short MAXTOOL = 64;
        
        public short sample()
        {
            Focas1.T_OFS_B fsrData = new Focas1.T_OFS_B();
            short ret, idx;
    
            byte[] bytes = new byte[8 + 36 * MAXTOOL];
            IntPtr ptrData = Marshal.AllocCoTaskMem(Marshal.SizeOf(fsrData));
    
            ret = Focas1.cnc_rdtofsr(h, 1, -2, MAXTOOL, 8 + 36 * MAXTOOL, bytes);
            if (ret == Focas1.EW_OK)
            {
                Console.WriteLine("No  X:wear  Z:wear  Y:wear  X:geom  Z:geom  Y:geom  R:wear  R:geom T");
                Console.WriteLine("---+-------+-------+-------+-------+-------+-------+-------+------+-");
                for (idx = 0; idx < MAXTOOL; idx++)
                {
                    int pos = 8 + idx * Marshal.SizeOf(fsrData);
                    Marshal.Copy(bytes, pos, ptrData, Marshal.SizeOf(fsrData));
                    Marshal.PtrToStructure(ptrData, fsrData);
    
                    Console.WriteLine("{0:d2}{1,8}{2,8}{3,8}{4,8}{5,8}{6,8}{7,8}{8,8}{9,2}",
                            idx, fsrData.data[4],
                            fsrData.data[5],
                            fsrData.data[6],
                            fsrData.data[0],
                            fsrData.data[1],
                            fsrData.data[2],
                            fsrData.data[7],
                            fsrData.data[3],
                            fsrData.tip);
                }
            }
            Marshal.FreeCoTaskMem(ptrData);
            return (ret);
        }
    }

    Privacy notice

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

    https://www.inventcom.net/fanuc-focas-library/ncdata/cnc_rdtofsr

    Fanuc Focas Library | Ncdata | cnc_getmactype

    Gets the type of custom macro variable which is used by... [read more]
    Fanuc Focas Library | Ncdata | cnc_getmactype

    Fanuc Focas Library | Ncdata | cnc_getpmactype

    Gets the type of P code macro variable which is used by... [read more]
    Fanuc Focas Library | Ncdata | cnc_getpmactype

    Fanuc Focas Library | Ncdata | cnc_hpccactfine

    Reads fine level for high-speed and high-precision machining.... [read more]
    Fanuc Focas Library | Ncdata | cnc_hpccactfine

    Fanuc Focas Library | Ncdata | cnc_hpccatset

    Commands CNC to set the setting data for high-speed and high-precision machining automatically.... [read more]
    Fanuc Focas Library | Ncdata | cnc_hpccatset

    Fanuc Focas Library | Ncdata | cnc_hpccattune

    Commands CNC to tune up the tuning data for high-speed and high-precision machining automatically.... [read more]
    Fanuc Focas Library | Ncdata | cnc_hpccattune

    Fanuc Focas Library | Ncdata | cnc_hpccselfine

    Selects fine level for high-speed and high-precision machining.... [read more]
    Fanuc Focas Library | Ncdata | cnc_hpccselfine

    Fanuc Focas Library | Ncdata | cnc_rdactfixofs

    Reads the active fixture offset number and the active fixture offset value specified by axis. The offset number is stored in type of IODBZOFS with binary... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdactfixofs

    Fanuc Focas Library | Ncdata | cnc_rdbaxis

    Reads the command data for B axis(current command, next command). The unit of command data is as follows. Series 16/18/21, 16i/18i/21i... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdbaxis

    Fanuc Focas Library | Ncdata | cnc_rdbtofsinfo

    Reads the memory type of tool offset for B axis, the available number and the auxiliary function number which means offset cancel.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdbtofsinfo

    Fanuc Focas Library | Ncdata | cnc_rdbtofsr

    Reads the tool offset value for B axis specified by s_number, e_number, type. The offset value is stored in IODBBTO with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdbtofsr

    Fanuc Focas Library | Ncdata | cnc_rdexecmcode

    Reads specified number of executing or executed M codes, starting from the M code group with specified number.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdexecmcode

    Fanuc Focas Library | Ncdata | cnc_rdfixofs

    Reads the fixture offset value specified by s_number, e_number, axis. The offset value is stored in data array of IODBZOR with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdfixofs

    Fanuc Focas Library | Ncdata | cnc_rdhpccset

    Reads setting data for High-speed and high-precision machining. The data is stored in each member of IODBHPST. This function is not... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdhpccset

    Fanuc Focas Library | Ncdata | cnc_rdhpcctuac

    Reads tuning data(acc./dec. input) for high-speed and high-precision machining. The data is stored in each member of IODBHPAC. This... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdhpcctuac

    Fanuc Focas Library | Ncdata | cnc_rdhpcctupr

    Reads tuning data(parameter input) for high-speed and high-precision machining. The data is stored in each member of IODBHPPR. This function is not... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdhpcctupr

    Fanuc Focas Library | Ncdata | cnc_rdhsparam

    The CNC parameter shown by parameter information is read at high speed. The parameter can be read according to parameter information acquired... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdhsparam

    Fanuc Focas Library | Ncdata | cnc_rdhsprminfo

    Get information for high-speed read of parameter. Got parameter information is effective until the reboot of CNC. Moreover, got... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdhsprminfo

    Fanuc Focas Library | Ncdata | cnc_rdintchk

    Reads the coordinate value of interference check area specified by s_number, e_number, type. The coordinate value is stored in data... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdintchk

    Fanuc Focas Library | Ncdata | cnc_rdintinfo

    Reads the available number of interference check data. It is stored in (*intinf) with binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdintinfo

    Fanuc Focas Library | Ncdata | cnc_rdmacro

    Reads the custom macro variable specified by number. The data is stored in ODBM with signed binary format. The kinds of custom macro variable are as... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdmacro

    Fanuc Focas Library | Ncdata | cnc_rdmacroinfo

    Reads the available number of the local macro variable and the common macro variable. Those are stored in use_no1, use_no2 of ODBMVINF with signed binary... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdmacroinfo

    Fanuc Focas Library | Ncdata | cnc_rdmacror

    Reads the custom macro variable specified by datano_s, datano_e. The data is stored in IODBMR with signed binary format. The kinds of custom macro... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdmacror

    Fanuc Focas Library | Ncdata | cnc_rdmacror2

    Reads the custom macro variables specified by the starting number, s_no, and number of variables, *num. The data is stored in data with double format. It... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdmacror2

    Fanuc Focas Library | Ncdata | cnc_rdmacror3

    Reads the custom macro variables specified by the starting number, s_no, and number of variables, *num. In this function, when you read the... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdmacror3

    Fanuc Focas Library | Ncdata | cnc_rdmgrpdata

    Reads specified number of M code group data starting from the specified number.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdmgrpdata

    Fanuc Focas Library | Ncdata | cnc_rdparainfo

    Reads the CNC parameter information specified by s_number and read_no. The CNC parameter is basically non-continuous, and the attribute like the... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdparainfo

    Fanuc Focas Library | Ncdata | cnc_rdparainfo3

    Reads the CNC parameter information specified by s_number and *read_no. The CNC parameter is basically non-continuous, and the attribute like the... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdparainfo3

    Fanuc Focas Library | Ncdata | cnc_rdparam

    Reads the parameter specified by number,axis(only for the parameter with axis). The data format depends on each parameter. The format of... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdparam

    Fanuc Focas Library | Ncdata | cnc_rdparam3

    Reads the parameter specified by number,axis(only for the parameter with axis). In this function, the acquired... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdparam3

    Fanuc Focas Library | Ncdata | cnc_rdparam_ext

    Reads the random number parameters. The parameter numbers are specified by the array of long type (prm_no[]). And the number of the array is specified by... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdparam_ext

    Fanuc Focas Library | Ncdata | cnc_rdparanum

    Reads minimum, maximum, total number of the CNC parameter. The distribution of the parameter is different in each CNC model, and the new parameter may be... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdparanum

    Fanuc Focas Library | Ncdata | cnc_rdparar

    Reads the parameter specified by *s_number,*e_number,axis(only for the parameter with axis). The data format depends on each parameter. The format of... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdparar

    Fanuc Focas Library | Ncdata | cnc_rdpitchinfo

    Reads the available number of pitch error compensation data. It is stored in *use_no with signed binary format. In case of Series 16i/18i-W, the data... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdpitchinfo

    Fanuc Focas Library | Ncdata | cnc_rdpitchr

    Reads the pitch error compensation data specified by s_number, e_number. The data is stored in data array of IODBPI with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdpitchr

    Fanuc Focas Library | Ncdata | cnc_rdpmacro

    Reads the P code macro variable (variable for the macro-executor) specified by number. The data is stored in ODBPM with signed binary format. It is... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdpmacro

    Fanuc Focas Library | Ncdata | cnc_rdpmacroinfo

    Reads the available number of the P code macro variables (variable for the macro-executor) and the type of it. Those are stored in ODBPMINF with signed binary... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdpmacroinfo

    Fanuc Focas Library | Ncdata | cnc_rdpmacroinfo2

    Reads the available number of the P code macro variables (variable for the macro-executor) and the type of it. Those are stored in ODBPMINF2 with signed binary... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdpmacroinfo2

    Fanuc Focas Library | Ncdata | cnc_rdpmacror

    Reads the P code macro variables(variable for the macro-executor) specified by s_number, e_number. The data is stored in IODBPR... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdpmacror

    Fanuc Focas Library | Ncdata | cnc_rdpmacror2

    Reads the P code macro variables(variables for the macro-executor) specified by the starting number, stnum, and number of variables, *num. The data is... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdpmacror2

    Fanuc Focas Library | Ncdata | cnc_rdrotvolc

    Read the 3-dimensional rotary error compensation data by specified range.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdrotvolc

    Fanuc Focas Library | Ncdata | cnc_rdrstrmcode

    Reads specified number of executing or executed M codes, starting from the M code group with specified number.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdrstrmcode

    Fanuc Focas Library | Ncdata | cnc_rdset

    Reads the setting data specified by number,axis(only for the setting data with axis). The data format depends on each setting data. The format of... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdset

    Fanuc Focas Library | Ncdata | cnc_rdsetinfo

    Reads the CNC setting data information specified by s_number and read_no. The CNC setting data is basically non-continuous, and the attribute like... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdsetinfo

    Fanuc Focas Library | Ncdata | cnc_rdsetnum

    Reads minimum, maximum, total number of the CNC setting data. The distribution of the setting data is different in each CNC model, and the new setting... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdsetnum

    Fanuc Focas Library | Ncdata | cnc_rdsetr

    Reads the setting data specified by s_number,e_number,axis(only for the setting data with axis). The data format depends on each... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdsetr

    Fanuc Focas Library | Ncdata | cnc_rdtofs

    Reads the tool offset value specified by number, type. The offset value is stored in data of ODBTOFS with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdtofs

    Fanuc Focas Library | Ncdata | cnc_rdtofsinfo

    Reads the memory type of tool offset, and the available number of it. Those are stored in ofs_type and use_no of ODBTLINF with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdtofsinfo

    Fanuc Focas Library | Ncdata | cnc_rdtofsinfo2

    Reads the memory type of tool offset, the available number of it and available type of tool offset. Those are stored in ofs_type, use_no and... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdtofsinfo2

    Fanuc Focas Library | Ncdata | cnc_rdvolc

    Reads the 3-dimensional error compensation data by specified range.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdvolc

    Fanuc Focas Library | Ncdata | cnc_rdvolccomp

    The compensation amount at the current position of 3-dimensional error compensation axis is acquired.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdvolccomp

    Fanuc Focas Library | Ncdata | cnc_rdwkcdsfms

    Reads the work coordinate shift measured value specified by axis. The work coordinate shift measured value are stored in data array of IODBWCSF with signed... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdwkcdsfms

    Fanuc Focas Library | Ncdata | cnc_rdwkcdshft

    Reads the work coordinate shift value specified by axis. The work coordinate shift value are stored in data array of IODBWCSF with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdwkcdshft

    Fanuc Focas Library | Ncdata | cnc_rdzofs

    Reads the work zero offset value specified by number, axis. The offset value is stored in data[0] of IODBZOFS with signed binary... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdzofs

    Fanuc Focas Library | Ncdata | cnc_rdzofsinfo

    Reads the available number of work zero offset. It is stored in *use_no with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdzofsinfo

    Fanuc Focas Library | Ncdata | cnc_rdzofsr

    Reads the work zero offset value specified by s_number, e_number, axis. The offset value is stored in data array of IODBZOR with signed binary... [read more]
    Fanuc Focas Library | Ncdata | cnc_rdzofsr

    Fanuc Focas Library | Ncdata | cnc_setmactype

    Changes the type of custom macro variable which is used by... [read more]
    Fanuc Focas Library | Ncdata | cnc_setmactype

    Fanuc Focas Library | Ncdata | cnc_setpmactype

    Changes the type of P code macro variable which is used by... [read more]
    Fanuc Focas Library | Ncdata | cnc_setpmactype

    Fanuc Focas Library | Ncdata | cnc_tofs_rnge

    Reads the effective setting range of tool offset value specified by number, type. The effective setting range is stored in... [read more]
    Fanuc Focas Library | Ncdata | cnc_tofs_rnge

    Fanuc Focas Library | Ncdata | cnc_wksft_rnge

    Reads the effective setting range of work coordinate shift value specified by axis. The effective setting range is stored in data_min, data_max... [read more]
    Fanuc Focas Library | Ncdata | cnc_wksft_rnge

    Fanuc Focas Library | Ncdata | cnc_wrbtofsr

    Writes the tool offset value for B axis specified by datano_s, datano_e,type. The offset value must be stored in IODBBTO with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrbtofsr

    Fanuc Focas Library | Ncdata | cnc_wrfixofs

    Writes the fixture offset value specified by datano_s, datano_e, type. The offset value must be stored in data array of IODBZOR... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrfixofs

    Fanuc Focas Library | Ncdata | cnc_wrhpccset

    Writes setting data for high-speed and high-precision machining. This function is not supported on Series 15i. The function which writes CNC... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrhpccset

    Fanuc Focas Library | Ncdata | cnc_wrhpcctuac

    Writes tuning data(acc./dec. input) for high-speed and high-precision machining. This function is not supported on Series 15i. The function which writes... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrhpcctuac

    Fanuc Focas Library | Ncdata | cnc_wrhpcctupr

    Writes tuning data(parameter input) for high-speed and high-precision machining. This function is not supported on Series 15i. The function... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrhpcctupr

    Fanuc Focas Library | Ncdata | cnc_wrintchk

    Writes the coordinate value of interference check area specified by datano_s,datano_e,type. The coordinate value... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrintchk

    Fanuc Focas Library | Ncdata | cnc_wrmacro

    Writes the custom macro variable specified by number. The data must be stored in mcr_val, dec_val with signed binary format. The kind of custom... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrmacro

    Fanuc Focas Library | Ncdata | cnc_wrmacror

    Writes the custom macro variable specified by datano_s, datano_e. The data must be stored in IODBMR with signed binary format. The kind of custom... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrmacror

    Fanuc Focas Library | Ncdata | cnc_wrmacror2

    Writes the custom macro variables specified by the starting number, s_no, and number of variables, *num. The data is stored in data with double format. It... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrmacror2

    Fanuc Focas Library | Ncdata | cnc_wrmgrpdata

    Writes specified number of M code group data starting from the specified number.... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrmgrpdata

    Fanuc Focas Library | Ncdata | cnc_wrparam

    Writes the parameter specified by datano,type(only for the parameter with axis). The data format depends on each parameter. The format of Byte/Word/2-Word... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrparam

    Fanuc Focas Library | Ncdata | cnc_wrparas

    Writes all parameters stored in param. The data format depends on each parameter. The format of Byte/Word/2-Word parameter is generally signed binary.... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrparas

    Fanuc Focas Library | Ncdata | cnc_wrpitchr

    Writes the pitch error compensation data specified by datano_s, datano_e. The data must be stored in data array of IODBPI with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrpitchr

    Fanuc Focas Library | Ncdata | cnc_wrpmacro

    Writes the P code macro variable (variable for the macro-executor) specified by number. The data must be stored in mcr_val,dec_val with signed binary... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrpmacro

    Fanuc Focas Library | Ncdata | cnc_wrpmacror

    Writes the P code macro variable (variable for the macro-executor) specified by datano_s, datano_e. The data must be stored in IODBPR with signed binary... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrpmacror

    Fanuc Focas Library | Ncdata | cnc_wrpmacror2

    Writes the P code macro variables(variables for the macro-executor) specified by the starting number, stnum, and number of variables, *num. The data is... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrpmacror2

    Fanuc Focas Library | Ncdata | cnc_wrrotvolc

    Write the 3-dimensional rotary error compensation data by specified range.... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrrotvolc

    Fanuc Focas Library | Ncdata | cnc_wrset

    Writes the setting data specified by datano,type(only for the setting data with axis). The data format depends on each setting data. The format of... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrset

    Fanuc Focas Library | Ncdata | cnc_wrsets

    Writes all setting data stored in set. The data format depends on each setting data. The format of Byte/Word/2-Word setting data is generally signed binary.... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrsets

    Fanuc Focas Library | Ncdata | cnc_wrtofs

    Writes the tool offset value specified by number, type. The offset value must be stored in data with signed binary format. The unit of offset... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrtofs

    Fanuc Focas Library | Ncdata | cnc_wrtofsr

    Writes the tool offset value specified by datano_s,datano_e,type. The offset value must be stored in IODBTO with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrtofsr

    Fanuc Focas Library | Ncdata | cnc_wrvolc

    Writes the 3-dimensional error compensation data by specified range.... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrvolc

    Fanuc Focas Library | Ncdata | cnc_wrwkcdsfms

    Writes the work coordinate shift measured value specified by type. The work coordinate shift measured value must be stored in data... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrwkcdsfms

    Fanuc Focas Library | Ncdata | cnc_wrwkcdshft

    Writes the work coordinate shift value specified by type. The work coordinate shift value must be stored in data array of... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrwkcdshft

    Fanuc Focas Library | Ncdata | cnc_wrzofs

    Writes the work zero offset value specified by datano, type. The offset value must be stored in data[0] of IODBZOFS with signed binary format.... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrzofs

    Fanuc Focas Library | Ncdata | cnc_wrzofsr

    Writes the work zero offset value specified by datano_s, datano_e, type. The offset value must be stored in data array of IODBZOR... [read more]
    Fanuc Focas Library | Ncdata | cnc_wrzofsr

    Fanuc Focas Library | Ncdata | cnc_zofs_rnge

    Reads the effective setting range of work zero offset value specified by number, axis. The effective setting range is stored in... [read more]
    Fanuc Focas Library | Ncdata | cnc_zofs_rnge

    Fanuc Focas Library | Ncdata | flist_Ncdata

    CNC: Function related to CNC file data... [read more]
    Fanuc Focas Library | Ncdata | flist_Ncdata
    Modified: 2023-12-05