NewsCNCnetPDMAbout usSupport
  

CNC_RDGCODE | MISC

Description

Reads the information of CNC about the commanded G code. Various information is stored in each member of ODBGCD.

The readable data are modal G code and one shot G code.

This function cannot be used for Series 16/18/21, 15, 16i/18i/21i, 0i-A/B/C, and Power Mate i, so use cnc_modal function instead of cnc_rdgcode function.

MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

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

FWLIBAPI short WINAPI cnc_rdgcode(unsigned short FlibHndl, short type, short block, short *num_gcd, ODBGCD *g_code );

Arguments

FlibHndl   [ in ]

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

type   [ in ]

Specify the group of G code.

  • Series 15i
  • 0 to 18,24,25,27 : Read data of modal G code one by one.
    -1 : Read all data of modal G code at a time.
    100 to 103 : Read data of one shot G code one by one.
    -2 : Read all data of one shot G code at a time.

  • Series 30i, 0i-D/F, PMi-A
  • 0 to 36 : Read data of modal G code one by one.
    -1 : Read all data of modal G code at a time.
    100 to 103 : Read data of one shot G code one by one.
    -2 : Read all data of one shot G code at a time.
    block   [ in ]

    Specify the block to be read.

    0:previous block
    1:active block
    2:next block
    num_gcd   [ in/out ]

    Pointer to the number of G code data to be read. Specify the number of G code data to be read before function call, and the number of G code data which was/were read actually is stored after the function call.

    g_code   [ out ]

    Specify the address of the array of ODBGCD structure including the G code data. The number of array must be 1 for reading data one by one. The number of array must be the number of G code to be read (*num_gcd) for reading all data at a time.

    The ODBGCD structure is as follows.
    
    typedef struct odbgcd {
        short group ;           /* G code group */
        short flag ;            /* additional information */
        char  code[8] ;         /* G code */
    } ODBGCD ;
    

    Refer to the following explanation about the ODBGCD structure.

    (1) Reading modal G code

    • Reading data one by one
    • Specify 1 for "num_gcd". Specify G code group in the following table for "type". Specify the block to be read for "block". Then G code which is selected in the objective block specified by "block" is set in the ODBGCD structure.

      • Series 15i
      • type G code type G code type G code
        0G00 7 G43 13 G54
        G01 G43.1 G54.1
        G02 G44 G54.2
        G02.1 G49 G55
        G02.2 8G73 G56
        G02.3 G74 G57
        G02.4 G76 G58
        G03 G80 G59
        G03.1 G81 14 G61
        G03.2 G82 G62
        G03.3 G83 G63
        G03.4 G84 G64
        G06.1 G84.2 15 G68
        G06.2 G84.3 G69
        G33 G85 16 G15
        G60 G86 G16
        1 G17 G87 17 G50.1
        G18 G88 G51.1
        G19 G89 18 G40.1
        2 G90 9 G98 G41.1
        G91 G99 G42.1
        3 G22 10G50 24 G25
        G23 G51 G26
        4 G93 11G66 25 G12.1
        G94 G66.1 G13.1
        G95 G67 27 G80.5
        5 G20 12G96 G81.5
        G21 G97
        6 G40
        G41
        G41.2
        G41.3
        G42
        G42.2

      • Series 30i, 0i-D/F, PMi-A
      • M Series T Series
        type G code G code
        SystemA
        G code
        SystemB
        G code
        SystemC
        0 G0 G0 G0 G0
        G1 G1 G1 G1
        G2 G2 G2 G2
        G3 G3 G3 G3
        G33 G32 G33 G33
        G75 G90 G77 G20
        G77 G92 G78 G21
        G78 G94 G79 G24
        G79      
          G34 G34 G34
        G2.2      
        G3.2      
        G2.3      
        G3.3      
        G6.2 G35 G35 G35
        G2.4 G36 G36 G36
        G3.4      
          G6.2 G6.2 G6.2
          G2.4 G2.4 G2.4
          G3.4 G3.4 G3.4
          G2.2 G2.2 G2.2
          G3.2 G3.2 G3.2
        G35 G2.3 G2.3 G2.3
        G36 G3.3 G3.3 G3.3
        G34 G6.1 G6.1 G6.1
        G32.2      
        G2.1 G2.1 G2.1 G2.1
        G3.1 G3.1 G3.1 G3.1
        1 G17 G97 G97 G97
          G96 G96 G96
        G19      
        G18      
        G17.1      
        2 G90   G90 G90
        G91   G91 G91
        3 G23 G69 G69 G69
        G22 G68 G68 G68
        4 G94 G98 G94 G94
        G95 G99 G95 G95
        G93 G93 G93 G93
        G93.2      
        G93.3 G93.3 G93.3 G93.3
        5 G20(G70) G20 G20 G70
        G21(G71) G21 G21 G71
        6 G40 G40 G40 G40
        G41 G41 G41 G41
        G42 G42 G42 G42
        G41.2 G41.2 G41.2 G41.2
        G42.2 G42.2 G42.2 G42.2
        G41.3 G41.3 G41.3 G41.3
        G41.4 G41.4 G41.4 G41.4
        G42.4 G42.4 G42.4 G42.4
        G41.5 G41.5 G41.5 G41.5
        G42.5 G42.5 G42.5 G42.5
        G41.6 G40.3 G40.3 G40.3
        G42.6 G41.6 G41.6 G41.6
          G42.6 G42.6 G42.6
          G46.8 G46.8 G46.8
        7 G49(G49.1) G25 G25 G25
        G43 G26 G26 G26
        G44      
        G43.1      
        G43.4      
        G43.5      
        G43.2      
        G43.3      
        G43.8      
        G43.9      
        G43.7(G44.7)      
        G44.1      
        8 G80 G23 G23 G23
        G81 G22 G22 G22
        G82      
        G83      
        G84      
        G85      
        G86      
        G87      
        G88      
        G89      
        G73      
        G74      
        G76      
        G84.2      
        G84.3      
        G81.2      
        9 G98 G80 G80 G80
        G99 G83 G83 G83
          G84 G84 G84
          G85 G85 G85
          G86 G86 G86
          G87 G87 G87
          G88 G88 G88
          G89 G89 G89
          G81 G81 G81
          G82 G82 G82
          G83.1 G83.1 G83.1
          G84.2 G84.2 G84.2
          G83.5 G83.5 G83.5
          G87.5 G87.5 G87.5
          G83.6 G83.6 G83.6
          G87.6 G87.6 G87.6
          G86.1 G86.1 G86.1
          G84.1 G84.1 G84.1
        10 G50   G98 G98
        G51   G99 G99
        11 G67 G67 G67 G67
        G66 G66 G66 G66
        G66.1 G66.1 G66.1 G66.1
        12 G97      
        G96      
        13 G54(G54.1) G54(G54.1) G54(G54.1) G54(G54.1)
        G55 G55 G55 G55
        G56 G56 G56 G56
        G57 G57 G57 G57
        G58 G58 G58 G58
        G59 G59 G59 G59
        14 G64 G64 G64 G64
        G61 G61 G61 G61
        G62 G62 G62 G62
        G63 G63 G63 G63
        15 G69 G17 G17 G17
        G68      
        G68.2      
        G68.3      
        G68.4 G18 G18 G18
          G19 G19 G19
          G17.1 G17.1 G17.1
        16 G15 G69.1 G69.1 G69.1
        G16 G68.1 G68.1 G68.1
          G68.2 G68.2 G68.2
          G68.3 G68.3 G68.3
          G68.4 G68.4 G68.4
        17 G40.1(G150)   G50 G50
        G41.1(G151)   G51 G51
        G42.1(G152)      
        18 G25 G40.1 G40.1 G40.1
        G26 G41.1 G41.1 G41.1
          G42.1 G42.1 G42.1
        19 G160 G50.2(G250) G50.2(G250) G50.2(G250)
        G161 G51.2(G251) G51.2(G251) G51.2(G251)
        20 G13.1(G113) G13.1(G113) G13.1(G113) G13.1(G113)
        G12.1(G112) G12.1(G112) G12.1(G112) G12.1(G112)
        21 G50.1 G50.1 G50.1 G50.1
        G51.1 G51.1 G51.1 G51.1
        22 G54.2 G49(G49.1) G49(G49.1) G49(G49.1)
          G43 G43 G43
          G44 G44 G44
          G43.1 G43.1 G43.1
          G43.4 G43.4 G43.4
          G43.5 G43.5 G43.5
          G43.7(G44.7) G43.7(G44.7) G43.7(G44.7)
          G43.8 G43.8 G43.8
          G43.9 G43.9 G43.9
          G44.1 G44.1 G44.1
        23 G80.5 G15 G15 G15
        G81.5 G16 G16 G16
        24   G5.5 G5.5 G5.5
          G5.6 G5.6 G5.6
        25   G54.4 G54.4 G54.4
        26 G49.9 G80.5 G80.5 G80.5
        G44.9 G81.5 G81.5 G81.5
        27   G80.4(G80.8) G80.4(G80.8) G80.4(G80.8)
          G81.4(G81.4) G81.4(G81.4) G81.4(G81.4)
        28   G8.9 G8.9 G8.9
          G8.8 G8.8 G8.8
        29 G54.3 G5.7 G5.7 G5.7
          G5.8 G5.8 G5.8
        30 G50.2 G10.3 G10.3 G10.3
        G51.2 G10.4 G10.4 G10.4
          G10.5 G10.5 G10.5
        31 G5.5      
        G5.6      
        32 G54.4      
        33 G80.4(G80.8)      
        G81.4(G81.8)      
        34 G13      
        G12      
        35 G8.9      
        G8.8      
        36 G5.7      
        G5.8      

      The following data are set in the ODBGCD structure.

      group
      The group number which was specified by "type" is stored.
      flag
      The following flag is stored.
      #3 = 1:command differ from the previous block (only Series 30i, 0i-D/F, PMi-A)
      #7 = 1:There is a command in the present block.
      code
      G code is stored as a character string (ASCII).

      For example, the following result is gotten by calling this function during executing N100's block of the next machining program.

      
      N090 G18 ;
      N100 G01 Z100. ;
      N110 G17 G02 X10. Y-20. R12. ;
      
      typeblockcode flag Modal status
      0 1 G01\0 0x0080 G01 is commanded.
      0 2 G02\0 0x0080 G02 is commanded.
      1 1 G18\0 0x0000 G18 mode. (not commanded)
      1 2 G17\0 0x0080 G17 is commanded.

    • Reading all data at a time
    • Specify the number of G code to be read for "num_gcd". Specify -1 for "type". Specify the block to be read for "block". Then G code which is selected in the objective block specified by "block" is set in the ODBGCD structure. Specify the maximun group number for "num_gcd" in order to read all groups of G code. The number of G code which were read actually is stored in "num_gcd" after the function call.

    (2) Reading one shot G code

    • Reading data one by one
    • Specify 1 for "num_gcd". Specify G code group in the following table for "type". Specify the block to be read for "block". Then one shot G code which is commanded in the objective block specified by "block" is set in the ODBGCD structure. When no one shot G code is commanded in the objective block specified by "block", zero is set in "num_gcd".

      When no one shot G code is commanded in the objective block specified by "block", zero is set in "num_gcd".

      • Series 15i
      • typeG code typeG code
        100 G04 101 G09
        G05.1 102 G53
        G07 103 G38
        G07.1 G45
        G10 G46
        G10.1 G47
        G10.6 G48
        G10.9
        G11
        G12.2
        G13.2
        G27
        G28
        G29
        G30
        G30.1
        G31
        G31.1
        G31.2
        G31.3
        G31.4
        G31.8
        G31.9
        G37
        G39
        G52
        G60
        G65
        G72.1
        G72.2
        G81.1
        G92
        G92.1

      • Series 30i, 0i-D/F, PMi-A
      • M Series T Series
        type G code G code
        SystemA
        G code
        SystemB
        G code
        SystemC
        100 G4 G4 G4 G4
        G10 G27 G27 G27
          G28 G28 G28
          G29 G29 G29
        G27 G30 G30 G30
        G28 G50 G92 G92
        G29 G70 G70 G72
        G30 G71 G71 G73
          G72 G72 G74
        G39 G73 G73 G75
          G74 G74 G76
          G75 G75 G77
          G76 G76 G78
          G10 G10 G10
        G92 G37.1 G37.1 G37.1
          G37(G37.2) G37(G37.2) G37(G37.2)
        G31(G31.1) G31 G31 G31
        G60 G65 G65 G65
        G65      
          G5 G5 G5
        G5 G11 G11 G11
        G11 G7.1(G107) G7.1(G107) G7.1(G107)
        G52 G52 G52 G52
               
        G37 G30.1 G30.1 G30.1
        G7.1(G107) G10.6 G10.6 G10.6
        G30.1 G50.3 G92.1 G92.1
        G10.6 G8 G8 G8
        G72.1 G100 G110 G101
        G72.2 G39 G39 G39
        G92.1 G60 G60 G60
        G8      
          G31.8 G31.8 G31.8
        G70.7      
        G71.7      
        G72.7      
        G73.7      
        G74.7      
        G75.7      
        G76.7      
          G37.3 G37.3 G37.3
          G31.9 G31.9 G31.9
          G10.9 G10.9 G10.9
        G81.1 G7 G7 G7
          G73.1 G73.1 G73.1
          G73.2 G73.2 G73.2
        G5.1 G81.1 G81.1 G81.1
        G7 G5.4 G5.4 G5.4
        G31.8      
        G31.9      
        G12.4 G82.4 G82.4 G82.4
        G13.4 G83.4 G83.4 G83.4
        G5.4 G84.4 G84.4 G84.4
        G10.9 G5.1 G5.1 G5.1
        G31.2 G72.1 G72.1 G72.1
        G31.3 G72.2 G72.2 G72.2
        G31.4      
        G91.1      
        G28.2      
        G30.2      
        G50.4 G50.4 G50.4 G50.4
        G50.5 G50.5 G50.5 G50.5
        G50.6 G50.6 G50.6 G50.6
        G51.4 G51.4 G51.4 G51.4
        G51.5 G51.5 G51.5 G51.5
        G51.6 G51.6 G51.6 G51.6
        G37.1 G91.1 G91.1 G91.1
        G37.2 G28.2 G28.2 G28.2
        G37.3 G30.2 G30.2 G30.2
        101 G9(G65.4) G9(G65.4) G9(G65.4) G9(G65.4)
        G96.1 G96.1 G96.1 G96.1
        G96.2 G96.2 G96.2 G96.2
        G96.3 G96.3 G96.3 G96.3
        G96.4 G96.4 G96.4 G96.4
        G22.2 G22.2 G22.2 G22.2
        G52.1 G52.1 G52.1 G52.1
        G52.2 G52.2 G52.2 G52.2
        G52.3 G52.3 G52.3 G52.3
        G0.1 G0.1 G0.1 G0.1
        G5.9 G5.9 G5.9 G5.9
        102 G53 G53 G53 G53
        G53.1 G53.1 G53.1 G53.1
        G53.6 G53.6 G53.6 G53.6
        G53.2 G53.2 G53.2 G53.2
        G53.7 G53.7 G53.7 G53.7
        103 G38 G38 G38 G38
        G45 G41.8 G41.8 G41.8;
        G46 G42.8 G42.8 G42.8
        G47      
        G48      
        G10.8 G10.8 G10.8 G10.8
          G91.2 G91.2 G91.2

      The following data are set in the ODBGCD structure.

      group
      The group number which was specified by "type" is stored.
      flag
      The following flag is stored.
      #3= 1 :command differ from the previous block (only Series 30i, 0i-D/F, PMi-A)
      #4= 1 :There is a command of a decimal point.
      #5= 1 :Negative
      #6= 1 :1 digit
      #7= (always)1:There is a command in the present block.
      code
      For example, the following result is gotten by calling this function during executing N100's block of the next machining program.

    • Reading all data at a time
    • Specify the number of one shot G code to be read for "num_gcd". Specify -2 for "type". Specify the block to be read for "block". Then one shot G code which is commanded in the objective block specified by "block" is set in the ODBGCD structure. Specify 4 for "num_gcd" in order to read all groups of one shot G code. The number of G code which were read actually is stored in "num_gcd" after the function call.

    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
    The number of G code data to be read (*num_gcd) is wrong.
    EW_NUMBER
    (3)
    Data number error
    The specification of G code group (type) is wrong.
    EW_ATTRIB
    (4)
    Data attribute error
    The specification of block (block) is wrong.

    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.

      However, in case of Series 0i-D/F, 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 not related to CNC parameter.

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

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


    Power Mate i-DX
    Power Mate i-HX
    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_modal   cnc_rdcommand  

    Privacy notice

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

    https://www.inventcom.net/fanuc-focas-library/misc/cnc_rdgcode

    Fanuc Focas Library | Misc | cnc_adcnv

    Reads the A/D conversion data. The A/D conversion data is stored in data of ODBAD.... [read more]
    Fanuc Focas Library | Misc | cnc_adcnv

    Fanuc Focas Library | Misc | cnc_alarm

    Reads the alarm status of CNC. Various information is stored in data of ODBALM. This function is used for watching CNC's alarm... [read more]
    Fanuc Focas Library | Misc | cnc_alarm

    Fanuc Focas Library | Misc | cnc_alarm2

    Reads the alarm status of CNC. This function is the improved version of the... [read more]
    Fanuc Focas Library | Misc | cnc_alarm2

    Fanuc Focas Library | Misc | cnc_cexesramsize

    Reads the maximum size of the SRAM variable area for C language executor. The maximum size is read by the unit of byte.... [read more]
    Fanuc Focas Library | Misc | cnc_cexesramsize

    Fanuc Focas Library | Misc | cnc_chgprotbit

    Sets the state of various NC data protection (protection pattern data). The protection pattern data is bit pattern data which collects flags corresponding to... [read more]
    Fanuc Focas Library | Misc | cnc_chgprotbit

    Fanuc Focas Library | Misc | cnc_clralm

    Clears the CNC alarm state specified by id.... [read more]
    Fanuc Focas Library | Misc | cnc_clralm

    Fanuc Focas Library | Misc | cnc_diagnosr

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

    Fanuc Focas Library | Misc | cnc_diagnoss

    Reads the diagnosis specified by number,axis (only for the diagnosis with axis). The data format depends on each diagnosis. The format of Byte/Word/2-Word... [read more]
    Fanuc Focas Library | Misc | cnc_diagnoss

    Fanuc Focas Library | Misc | cnc_fromget

    Reads the F-ROM data from CNC. After F-ROM data reading, execute... [read more]
    Fanuc Focas Library | Misc | cnc_fromget

    Fanuc Focas Library | Misc | cnc_fromgetend

    Indicates the termination of reading the F-ROM data from CNC.... [read more]
    Fanuc Focas Library | Misc | cnc_fromgetend

    Fanuc Focas Library | Misc | cnc_fromgetstart

    Indicates the start of reading the F-ROM data from CNC. However, the system control software cannot be... [read more]
    Fanuc Focas Library | Misc | cnc_fromgetstart

    Fanuc Focas Library | Misc | cnc_fromput

    Writes the F-ROM data to CNC. After F-ROM data writing, execute... [read more]
    Fanuc Focas Library | Misc | cnc_fromput

    Fanuc Focas Library | Misc | cnc_fromputend

    Indicates the termination of writing the F-ROM data to CNC. This function waits until the termination of writing process of the F-ROM data on CNC.... [read more]
    Fanuc Focas Library | Misc | cnc_fromputend

    Fanuc Focas Library | Misc | cnc_fromputstart

    Indicates the start of writing the F-ROM data to CNC. The data which can be written in F-ROM is system data (CNC Control software... [read more]
    Fanuc Focas Library | Misc | cnc_fromputstart

    Fanuc Focas Library | Misc | cnc_fromremove

    Deletes the System data from F-ROM on CNC. However, the system control software cannot be deleted in the Ethernet version.... [read more]
    Fanuc Focas Library | Misc | cnc_fromremove

    Fanuc Focas Library | Misc | cnc_getdtailerr

    Gets the detailed error information after the function has been executed. The detailed error information is stored in err_no, err_dtno of... [read more]
    Fanuc Focas Library | Misc | cnc_getdtailerr

    Fanuc Focas Library | Misc | cnc_getfigure

    Reads the maximum valid figures and the number of decimal places under the input/output unit, which is related to various data of CNC. The... [read more]
    Fanuc Focas Library | Misc | cnc_getfigure

    Fanuc Focas Library | Misc | cnc_getfrominfo

    Reads the various information of F-ROM on CNC. The various information is stored in each member of ODBFINFORM.... [read more]
    Fanuc Focas Library | Misc | cnc_getfrominfo

    Fanuc Focas Library | Misc | cnc_getlanguage

    The display language of NC is acquired.... [read more]
    Fanuc Focas Library | Misc | cnc_getlanguage

    Fanuc Focas Library | Misc | cnc_getlockstat

    Gets the present state of various NC data protection.... [read more]
    Fanuc Focas Library | Misc | cnc_getlockstat

    Fanuc Focas Library | Misc | cnc_getpath

    Reads the current selected path number which is the target path of the Data window functions.... [read more]
    Fanuc Focas Library | Misc | cnc_getpath

    Fanuc Focas Library | Misc | cnc_getsraminfo

    Reads the various information of S-RAM on CNC. The various information is stored in each member of ODBSINFO.... [read more]
    Fanuc Focas Library | Misc | cnc_getsraminfo

    Fanuc Focas Library | Misc | cnc_gettimer

    Gets the date or time data from the calendar timer device of the CNC unit.... [read more]
    Fanuc Focas Library | Misc | cnc_gettimer

    Fanuc Focas Library | Misc | cnc_modal

    Reads the modal information of CNC. Various information is stored in each member of ODBMDL. The readable modal data are modal G code or commanded data... [read more]
    Fanuc Focas Library | Misc | cnc_modal

    Fanuc Focas Library | Misc | cnc_rd3dcdcnv

    Reads the mode and data of the 3-dimensional coordinate conversion. These are stored in each member of ODB3DCD structure. The... [read more]
    Fanuc Focas Library | Misc | cnc_rd3dcdcnv

    Fanuc Focas Library | Misc | cnc_rd3dtofs

    Reads the mode and vector of the 3-dimensional tool compensation. These are stored in each member of ODB3DTO structure. The places of decimal... [read more]
    Fanuc Focas Library | Misc | cnc_rd3dtofs

    Fanuc Focas Library | Misc | cnc_rdalminfo

    Reads the detailed information of currently arising CNC alarms. Various information is stored in data of ALMINFO. This function is... [read more]
    Fanuc Focas Library | Misc | cnc_rdalminfo

    Fanuc Focas Library | Misc | cnc_rdalmmsg

    Reads the currently arising CNC alarm messages. All alarm messages can be read at once. Differing from... [read more]
    Fanuc Focas Library | Misc | cnc_rdalmmsg

    Fanuc Focas Library | Misc | cnc_rdalmmsg2

    Reads the currently arising CNC alarm messages. All alarm messages can be read at once. Differing from... [read more]
    Fanuc Focas Library | Misc | cnc_rdalmmsg2

    Fanuc Focas Library | Misc | cnc_rdbrstrinfo

    Reads the data of block restart. These are stored in each member of ODBBRS structure. The destination and the distance to go of block restart are valid... [read more]
    Fanuc Focas Library | Misc | cnc_rdbrstrinfo

    Fanuc Focas Library | Misc | cnc_rdcdrotate

    Reads the mode and data of the coordinate rotation. These are stored in each member of ODBROT structure. The places of decimal points can be got by... [read more]
    Fanuc Focas Library | Misc | cnc_rdcdrotate

    Fanuc Focas Library | Misc | cnc_rdcexesram

    Reads the SRAM variable area for C language executor specified by offset, length. When this function accesses this area, exclusive control with the C... [read more]
    Fanuc Focas Library | Misc | cnc_rdcexesram

    Fanuc Focas Library | Misc | cnc_rdcncid

    Reads the CNC ID number. The CNC ID numbers are stored in cncid with unsigned binary format.... [read more]
    Fanuc Focas Library | Misc | cnc_rdcncid

    Fanuc Focas Library | Misc | cnc_rdcommand

    Reads the commanded data of CNC. Various information is stored in each member of ODBCMD. The readable data are the modal data except G code, and the... [read more]
    Fanuc Focas Library | Misc | cnc_rdcommand

    Fanuc Focas Library | Misc | cnc_rdcoordnum

    Reads the number of the additional workpiece coordinate systems of the workpiece coordinate systems.... [read more]
    Fanuc Focas Library | Misc | cnc_rdcoordnum

    Fanuc Focas Library | Misc | cnc_rddiaginfo

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

    Fanuc Focas Library | Misc | cnc_rddiagnum

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

    Fanuc Focas Library | Misc | cnc_rddiag_ext

    Reads the random number diagnosis data. The diagnosis data numbers are specified by the array of long type (prm_no[]). And the number of the array is specified... [read more]
    Fanuc Focas Library | Misc | cnc_rddiag_ext

    Fanuc Focas Library | Misc | cnc_rdetherinfo

    Reads the Ethernet board inforamtion in CNC.... [read more]
    Fanuc Focas Library | Misc | cnc_rdetherinfo

    Fanuc Focas Library | Misc | cnc_rdfixcycle

    Reads the mode and data of the canned cycle. These are stored in each member of ODBFIX structure. The places of decimal points can be got by... [read more]
    Fanuc Focas Library | Misc | cnc_rdfixcycle

    Fanuc Focas Library | Misc | cnc_rdlenofs

    Reads the mode and vector of the tool length compensation. These are stored in each member of ODBLOFS structure. The places of decimal... [read more]
    Fanuc Focas Library | Misc | cnc_rdlenofs

    Fanuc Focas Library | Misc | cnc_rdmdlconfig

    Reads the module configuration of CNC system. These information are stored in each member of ODBMDLC. Reading the data which depends on the path... [read more]
    Fanuc Focas Library | Misc | cnc_rdmdlconfig

    Fanuc Focas Library | Misc | cnc_rdmdlconfig2

    Reads the module configuration of CNC system.... [read more]
    Fanuc Focas Library | Misc | cnc_rdmdlconfig2

    Fanuc Focas Library | Misc | cnc_rdmenuswitch

    Reads the menu switch signals.... [read more]
    Fanuc Focas Library | Misc | cnc_rdmenuswitch

    Fanuc Focas Library | Misc | cnc_rdmirimage

    Reads the mode of the programmable mirror image and the absolute position of center of mirror image. These are stored in each member of ODBMIR... [read more]
    Fanuc Focas Library | Misc | cnc_rdmirimage

    Fanuc Focas Library | Misc | cnc_rdopmsg

    Reads the contents of the operator's message in CNC. The operator's message is stored in data of OPMSG.... [read more]
    Fanuc Focas Library | Misc | cnc_rdopmsg

    Fanuc Focas Library | Misc | cnc_rdopmsg2

    Reads the contents of the operator's message in CNC. The operator's message is stored in data of OPMSG2. This function can be used in... [read more]
    Fanuc Focas Library | Misc | cnc_rdopmsg2

    Fanuc Focas Library | Misc | cnc_rdopmsg3

    Reads the contents of the operator's message in CNC. The operator's message is stored in data of opmsg.... [read more]
    Fanuc Focas Library | Misc | cnc_rdopmsg3

    Fanuc Focas Library | Misc | cnc_rdopnlgnrl

    Reads the general output signal image of software operator's panel.... [read more]
    Fanuc Focas Library | Misc | cnc_rdopnlgnrl

    Fanuc Focas Library | Misc | cnc_rdopnlgsname

    Reads the general signal name of software operator's panel.... [read more]
    Fanuc Focas Library | Misc | cnc_rdopnlgsname

    Fanuc Focas Library | Misc | cnc_rdopnlsgnl

    Reads the output signal image of software operator's panel.... [read more]
    Fanuc Focas Library | Misc | cnc_rdopnlsgnl

    Fanuc Focas Library | Misc | cnc_rdpm_cncitem

    Reads the item name relating the cnc specified by the item index.... [read more]
    Fanuc Focas Library | Misc | cnc_rdpm_cncitem

    Fanuc Focas Library | Misc | cnc_rdpm_item

    Reads all data specified by the item index. The acquired data is as follows. - Name - Life count... [read more]
    Fanuc Focas Library | Misc | cnc_rdpm_item

    Fanuc Focas Library | Misc | cnc_rdpm_mcnitem

    Reads the item name relating the machine specified by the item index.... [read more]
    Fanuc Focas Library | Misc | cnc_rdpm_mcnitem

    Fanuc Focas Library | Misc | cnc_rdposofs

    Reads the mode and vector of the tool position compensation. These are stored in each member of ODBPOFS structure. The... [read more]
    Fanuc Focas Library | Misc | cnc_rdposofs

    Fanuc Focas Library | Misc | cnc_rdprstrinfo

    Reads the program restart information. The program restart information is stored in each member of ODBPRS.... [read more]
    Fanuc Focas Library | Misc | cnc_rdprstrinfo

    Fanuc Focas Library | Misc | cnc_rdradofs

    Reads the mode and vector of the cutter compensation(tool nose radius compensation). These are stored in each member of... [read more]
    Fanuc Focas Library | Misc | cnc_rdradofs

    Fanuc Focas Library | Misc | cnc_rdrepeatval

    Get the counter of the subprogram call and the repeat for fixed cycle. In case of subprogram call, the remainder counter is acquired.... [read more]
    Fanuc Focas Library | Misc | cnc_rdrepeatval

    Fanuc Focas Library | Misc | cnc_rdrepeatval_ext

    Get the counter of the subprogram call and the repeat for fixed cycle. The total repetition number and the remainder counter are... [read more]
    Fanuc Focas Library | Misc | cnc_rdrepeatval_ext

    Fanuc Focas Library | Misc | cnc_rdscaling

    Reads the mode and data of the scaling. These are stored in each member of ODBSCL structure. The places of... [read more]
    Fanuc Focas Library | Misc | cnc_rdscaling

    Fanuc Focas Library | Misc | cnc_rdsyshard

    Reads the hardware configuration of CNC. These information are stored in each member of ODBSYSH. The 25... [read more]
    Fanuc Focas Library | Misc | cnc_rdsyshard

    Fanuc Focas Library | Misc | cnc_rdsyssoft

    Reads the series/version of CNC system software. These information are stored in each member of ODBSYSS. Reading the data which depends on the path needs... [read more]
    Fanuc Focas Library | Misc | cnc_rdsyssoft

    Fanuc Focas Library | Misc | cnc_rdsyssoft2

    Reads the series/version of CNC system software. These information are stored in each member of ODBSYSS2. This function can read data which... [read more]
    Fanuc Focas Library | Misc | cnc_rdsyssoft2

    Fanuc Focas Library | Misc | cnc_rdsyssoft3

    Reads the series/version of CNC system software. These information are stored in each member of ODBSYSS3. This function can read the series/version... [read more]
    Fanuc Focas Library | Misc | cnc_rdsyssoft3

    Fanuc Focas Library | Misc | cnc_rdtimer

    Gets cutting time, cycle time, and other timer data of CNC.... [read more]
    Fanuc Focas Library | Misc | cnc_rdtimer

    Fanuc Focas Library | Misc | cnc_reset

    Executes the external reset of CNC.... [read more]
    Fanuc Focas Library | Misc | cnc_reset

    Fanuc Focas Library | Misc | cnc_reset2

    CNC is reset. When this function is executed, reset is executed to all paths or the path selected bt CNC... [read more]
    Fanuc Focas Library | Misc | cnc_reset2

    Fanuc Focas Library | Misc | cnc_rstrseqsrch

    Searches the sequence number for program restart.... [read more]
    Fanuc Focas Library | Misc | cnc_rstrseqsrch

    Fanuc Focas Library | Misc | cnc_rstrseqsrch2

    Searches the sequence number for program restart.... [read more]
    Fanuc Focas Library | Misc | cnc_rstrseqsrch2

    Fanuc Focas Library | Misc | cnc_setpath

    Selects the path number which is the target path in the multi-path system or system with loader control. All Data window library functions input... [read more]
    Fanuc Focas Library | Misc | cnc_setpath

    Fanuc Focas Library | Misc | cnc_settimer

    Sets the date or time data to the calendar timer device of the CNC unit.... [read more]
    Fanuc Focas Library | Misc | cnc_settimer

    Fanuc Focas Library | Misc | cnc_sramget

    Reads the S-RAM data from CNC. The SRAM data which was read by this function should be restored by using the Boot function.(The SRAM... [read more]
    Fanuc Focas Library | Misc | cnc_sramget

    Fanuc Focas Library | Misc | cnc_sramgetend

    Indicates the termination of reading the S-RAM data from CNC.... [read more]
    Fanuc Focas Library | Misc | cnc_sramgetend

    Fanuc Focas Library | Misc | cnc_sramgetstart

    Indicates the start of reading the S-RAM data from CNC.... [read more]
    Fanuc Focas Library | Misc | cnc_sramgetstart

    Fanuc Focas Library | Misc | cnc_statinfo

    Reads the status information of CNC. The various information is stored in each member of ODBST.... [read more]
    Fanuc Focas Library | Misc | cnc_statinfo

    Fanuc Focas Library | Misc | cnc_statinfo2

    Reads the status information of CNC. The various information is stored in each member of ODBST2.... [read more]
    Fanuc Focas Library | Misc | cnc_statinfo2

    Fanuc Focas Library | Misc | cnc_sysconfig

    Reads the CNC system configuration information. Various information is stored in each member of ODBSYSC. This function cannot be... [read more]
    Fanuc Focas Library | Misc | cnc_sysconfig

    Fanuc Focas Library | Misc | cnc_sysinfo

    Reads system information such as kind of CNC system, Machining(M) or Turning(T), series and version of CNC system software and number of the controlled axes.... [read more]
    Fanuc Focas Library | Misc | cnc_sysinfo

    Fanuc Focas Library | Misc | cnc_sysinfo_ex

    Reads system information such as distinction of Machining(M) or Turning(T), number of path and number of the controlled axes.... [read more]
    Fanuc Focas Library | Misc | cnc_sysinfo_ex

    Fanuc Focas Library | Misc | cnc_wrcexesram

    Writes the SRAM variable area for C language executor specified by offset, length. When this function accesses this area, exclusive control with the... [read more]
    Fanuc Focas Library | Misc | cnc_wrcexesram

    Fanuc Focas Library | Misc | cnc_wrmenuswitch

    Writes the menu switch signals.... [read more]
    Fanuc Focas Library | Misc | cnc_wrmenuswitch

    Fanuc Focas Library | Misc | cnc_wropnlgnrl

    Writes the general output signal of software operator's panel.... [read more]
    Fanuc Focas Library | Misc | cnc_wropnlgnrl

    Fanuc Focas Library | Misc | cnc_wropnlgsname

    Writes the general signal name of software operator's panel.... [read more]
    Fanuc Focas Library | Misc | cnc_wropnlgsname

    Fanuc Focas Library | Misc | cnc_wropnlsgnl

    Writes the output signal of software operator's panel.... [read more]
    Fanuc Focas Library | Misc | cnc_wropnlsgnl

    Fanuc Focas Library | Misc | cnc_wrpm_item

    Writes all data specified by the item index. The acquired data is as follows. - Name - Life count... [read more]
    Fanuc Focas Library | Misc | cnc_wrpm_item

    Fanuc Focas Library | Misc | cnc_wrpm_mcnitem

    Writes the item name relating the machine specified by the item index.... [read more]
    Fanuc Focas Library | Misc | cnc_wrpm_mcnitem

    Fanuc Focas Library | Misc | cnc_wrtimer

    Sets cutting time, cycle time, and other timer data of CNC.... [read more]
    Fanuc Focas Library | Misc | cnc_wrtimer

    Fanuc Focas Library | Misc | flist_Misc

    CNC: Function related to others... [read more]
    Fanuc Focas Library | Misc | flist_Misc
    Modified: 2023-12-05