News CNCnetPDM About us Support  
       
  

CNC_MODAL | MISC

TOP

Description

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 such as M,S,T,F.

The union type which stores the data depends on the type of modal data (type). Therefore, in case of accessing data, use the union corresponding to the type.

This function cannot be used for Series 15i, so use cnc_rdgcode function and cnc_rdcommand function instead of cnc_modal function.

In Series 30i, 0i-D/F and PMi-A, the modal data that were assigned for Series 16i can be got by this function.
As for the data that are added at Series 30i, 0i-D/F and PMi-A, please use cnc_rdgcode and cnc_rdcommand functions.
MTConnect Fanuc Adapter

Universal Fanuc Driver

Fanuc Focas Library CD

Declaration

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

FWLIBAPI short WINAPI cnc_modal(unsigned short FlibHndl, short type, short block, ODBMDL *modal);

Arguments

FlibHndl   [ in ]
Specify the library handle. See "Library handle" for details.
type   [ in ]

Type of data is stored. (refer to the following)

  • Series 15
  • -4 : Read all data of 1 shot G code at a time.
    -3 : Read all data concerning axis other than G code at a time.
    -2 : Read all data other than G code at a time.
    -1 : Read all data of G code at a time.
    0 to 17 : Read the data of G code one by one.
    100 to 126 : Read the data other than G code one by one.
    200 to 223 : Read the data concerning axis other than G code one by one.
    300 to 303 : 1 shot Read the data of G code one by one.

  • Series 16/18/21, 16i/18i/21i, 0i-A/B/C, Power Mate i (In case of HSSB connection)
  • -4 : Read all data of 1 shot G code at a time.
    -3 : Read all data concerning axis other than G code at a time. (except 16i/18i-W)
    -2 : Read all data other than G code at a time.
    -1 : Read all data of G code at a time. (type = 1 to 20, 31 to 34 (Only Series 16L) )
    0 to 20,
    31 to 34 (Only Series 16L)
    : Read the data of G code one by one.
    100 to 126 : Read the data other than G code one by one.
    200 to 207 : Read the data concerning axis other than G code one by one.
    300 : Read the data of 1 shot G code one by one.

  • Series 16i/18i/21i, 0i-A/B/C, Power Mate i (In case of Ethernet connection)
  • -5 : Read all data of G code at a time. (type = 1 to 34)
    -4 : Read all data of 1 shot G code at a time.
    -3 : Read all data concerning axis other than G code at a time. (except 16i/18i-W)
    -2 : Read all data other than G code at a time.
    -1 : Read all data of G code at a time. (type = 1 to 20, 31 to 34 (Only Series 16L) )
    0 to 24,
    31 to 34 (Only Series 16L)
    : Read the data of G code one by one.
    100 to 126 : Read the data other than G code one by one.
    200 to 207 : Read the data concerning axis other than G code one by one.
    300 : Read the data of 1 shot G code one by one.

  • Series 30i, 0i-D/F, PMi-A
  • -4 : Read all data of 1 shot G code at a time.
    -3 : Read all data concerning axis other than G code at a time. (Only the axis number in a path is 8 axes or less.)
    -2 : Read all data other than G code at a time.
    -1 : Read all data of G code at a time. (type = 0 to 20)
    0 to 20 : Read the data of G code one by one.
    100 to 126 : Read the data other than G code one by one.
    200 to 207 : Read the data concerning axis other than G code one by one.
    300 : Read the data of 1 shot G code one by one.
    block   [ in ]

    Assigned block in stored.

  • Series 15
  • 0 : previous block
    1 : active block
    2 : next block

  • Series 16/18/21, 16i/18i/21i, 0i, 30i, Power Mate i, PMi-A
  • 0 : active block
    1 : next block
    2 : block after next block (30i, 0i-D/F, PMi-A:unsupport)

  • Series 16i/18i-W
  • 0 : active block
    1 : next block
    2 : block after next block
    3 : previous block
    modal   [ out ]

    Pointer to the ODBMDL structure including the modal data.

    The ODBMDL structure is as follows.
    
    typedef struct odbmdl {
         short datano;              /* Kind of modal data */
         short type;                /* Objective block */
         union {
              char  g_data;         /* Modal data of G code */
              char  g_rdata[35];    /* Modal data of G code */
              char  g_1shot[4];    /* Modal data of 1 shot G code*/
              struct {
                    long    aux_data;
                            /* Modal data other than G code */
                    char    flag1;          /* Flag 1 */
                    char    flag2;          /* Flag 2 */
              }aux;
              struct {
                    long    aux_data;
                            /* Modal data other than G code */
                    char    flag1;          /* Flag 1 */
                    char    flag2;          /* Flag 2 */
              }raux1[27];
              struct {
                    long    aux_data;
                            /* Modal data other than G code */
                    char    flag1;          /* Flag 1 */
                    char    flag2;          /* Flag 2 */
              }raux2[MAX_AXIS];
         }modal;    /* MAX_AXIS : max. controlled axes. */
    } ODBMDL ;
    
    datano
    Kind of modal data is stored.
    type
    Target block to be read is stored.
    g_data
    Use for an individual reading G code (and 1 shot G code). Modal G code in the corresponding G code group is stored.
    g_rdata
    Use for reading G code at a time. Modal G code in the all G code group is stored.
    g_1shot
    Use for reading 1 shot G code at a time. (In case of individual reading, use "g_data".)
    aux
    Use for an individual reading other than G code (include axis data).
    raux1
    Use for reading other than G code at a time.
    raux2
    Use for reading concerning axis other than G code at a time.
    aux_data
    Modal data other than G code is stored.
    flag1
    Supplementary information is stored.
    flag2
    Supplementary information is stored.

    (1) Reading modal G code.

    • Series 15 (only HSSB)
      Specify G code group number in following table for "type".
    • M series T series
      type g_data G code G code
      System A
      G code
      System B
      G code
      System C
      0 0 G00 G00 G00 G00
      1 G01 G01 G01 G01
      2 G02 G02 G02 G02
      3 G03 G03 G03 G03
      4 G33 G32 G33 G33
      5 G34 G34 G34 G34
      6 G35 G35 G35 G35
      7 G36 G36 G36 G36
      8   G90 G77 G20
      9   G92 G78 G21
      10   G94 G79 G24
      11   G32.2 G32.2 G32.2
      12 G02.3   G02.3  
      13 G03.3   G03.3  
      14 G02.1      
      15 G03.1      
      16 G60      
      17 G02.2 G02.2 G02.2 G02.2
      18 G03.2 G03.2 G03.2 G03.2
      19 G06.1 G06.1 G06.1 G06.1
      20 G02.4      
      21 G03.4      
      22 G06.2 G06.2 G06.2 G06.2
      1 0 G17 G97 G97 G97
      1 G18 G96 G96 G96
      2 G19      
      3 G17.1      
      2 0 G91 G91 G91 G91
      1 G90 G90 G90 G90
      3 0 G22 G22 G22 G22
      1 G23 G23 G23 G23
      4 0 G94 G98 G94 G94
      1 G95 G99 G95 G95
      2 G93 G93 G93 G93
      5 0 G21 G21 G21 G71
      1 G20 G20 G20 G70
      6 0 G40 G40 G40 G40
      1 G41 G41 G41 G41
      2 G42 G42 G42 G42
      3 G40.3 G40.3 G40.3 G40.3
      4 G41.2      
      5 G42.2      
      6 G41.3      
      7 0 G49 G49 G49 G49
      1 G43 G43 G43 G43
      2 G44 G44 G44 G44
      3 G43.1 G43.1 G43.1 G43.1
      4 G43.2      
      5 G43.3      
      6 G43.4      
      8 0 G80 G80 G80 G80
      1 G81 G81 G81 G81
      2 G82 G82 G82 G82
      3 G83 G83 G83 G83
      4 G84 G84 G84 G84
      5 G85 G85 G85 G85
      6 G86 G86 G86 G86
      7 G87 G87 G87 G87
      8 G88 G88 G88 G88
      9 G89 G89 G89 G89
      10 G73 G83.1 G83.1 G83.1
      11 G74 G84.1 G84.1 G84.1
      12 G76 G86.1 G84.1 G84.1
      13 G81      
      14 G84.2 G84.2 G84.2 G84.2
      15 G84.3 G84.3 G84.3 G84.3
      16 G85   Multi axis only      
      17 G81.4 Multi axis only      
      18 G85.4 Multi axis only      
      9 0 G98 G98 G98 G98
      1 G99 G99 G99 G99
      2 G82      
      3 G83      
      4 G86 Multi axis only      
      5 G87 Multi axis only      
      10 0 G50 G50 G50 G50
      1 G51 G51 G51 G51
      11 0 G67 G67 G67 G67
      1 G66 G66 G66 G66
      2 G66.1 G66.1 G66.1 G66.1
      12 0 G97 G69 G69 G69
      1 G96 G68 G68 G68
      13 0 G54 G54 G54 G54
      1 G55 G55 G55 G55
      2 G56 G56 G56 G56
      3 G57 G57 G57 G57
      4 G58 G58 G58 G58
      5 G59 G59 G59 G59
      6 to 53 G54.1      
      14 0 G64 G64 G64 G64
      1 G61 G61 G61 G61
      2 G62 G62 G62 G62
      3 G63 G63 G63 G63
      4 G62.1 G62.1 G62.1 G62.1
      15 0 G69 G17 G17 G17
      1 G68 G18 G18 G18
      2   G19 G19 G19
      16 0 G15 G15 G15 G15
      1 G16 G16 G16 G16
      17 0 G50.1 G50.1 G50.1 G50.1
      1 G51.1 G51.1 G51.1 G51.1

    • Series 16/18/21, 16i/18i/21i, 0i-A/B/C, Power Mate i
      Specify G code group number in following table for "type". (M series includes Punch press, Power Mate i.)
    • M series T series Laser
      type g_data G code G code
      System A
      G code
      System B
      G code
      System C
      G code
      0 0 G00 G00 G00 G00 G00
      1 G01 G01 G01 G01 G01
      2 G02 G02 G02 G02 G02
      3 G03 G03 G03 G03 G03
      4 G33 G32 G33 G33  
      5 G75 G90 G77 G20  
      6 G77 G92 G78 G21  
      7 G78 G94 G79 G24  
      8 G79        
      9   G34 G34 G34  
      10 G02.2        
      11 G03.2        
      12 G02.3        
      13 G03.3        
      14 G06.2 G35 G35 G35  
      15 G02.4 G36 G36 G36  
      16 G03.4        
      17   G06.2 G06.2 G06.2  
      18   G02.4 G02.4 G02.4  
      19   G03.4 G03.4 G03.4  
      20   G02.2 G02.2 G02.2 G12
      21   G03.2 G03.2 G03.2  
      22   G02.3 G02.3 G02.3  
      23   G03.3 G03.3 G03.3  
      24   G06.1 G06.1 G06.1  
      25   G32.2 G32.2 G32.2  
      1 0 G17 G97 G97 G97 G17
      1   G96 G96 G96  
      4 G19       G19
      8 G18       G18
      10 G17.1        
      2 0 G90   G90 G90 G90
      1 G91   G91 G91 G91
      3 0 G23 G69 G69 G69 G23
      1 G22 G68 G68 G68 G22
      4 0 G94 G98 G94 G94  
      1 G95 G99 G95 G95  
      2 G93 G93 G93 G93  
      5 0 G20 G20 G20 G70 G20
      1 G21 G21 G21 G71 G21
      6 0 G40 G40 G40 G40 G40
      1 G41 G41 G41 G41 G41
      2 G42 G42 G42 G42 G42
      3 G41.2 G41.2 G41.2 G41.2  
      4 G42.2 G42.2 G42.2 G42.2  
      5 G41.3 G41.3 G41.3 G41.3  
      6 G41.4 G41.4 G41.4 G41.4  
      7 G42.4 G42.4 G42.4 G42.4  
      8 G41.5 G41.5 G41.5 G41.5  
      9 G42.5 G42.5 G42.5 G42.5  
      10   G40.3 G40.3 G40.3  
      7 0 G49 G25 G25 G25 G49
      1 G43 G26 G26 G26 G43
      2 G44       G44
      3 G43.1        
      4 G43.4        
      5 G43.5        
      6 G43.2        
      7 G43.3        
      8 G43.6        
      8 0 G80 G23 G23 G23  
      1 G81 G22 G22 G22  
      2 G82        
      3 G83        
      4 G84        
      5 G85        
      6 G86        
      7 G87        
      8 G88        
      9 G89        
      10 G73        
      11 G74        
      12 G76        
      13 G84.2        
      14 G84.3        
      15 G81.2        
      9 0 G98 G80 G80 G80  
      1 G99 G83 G83 G83  
      2   G84 G84 G84  
      3   G85 G85 G85  
      4   G86 G86 G86  
      5   G87 G87 G87  
      6   G88 G88 G88  
      7   G89 G89 G89  
      10 0 G50   G98 G98 G50
      1 G51   G99 G99 G51
      11 0 G67 G67 G67 G67 G67
      1 G66 G66 G66 G66 G66
      2 G66.1 G66.1 G66.1 G66.1  
      12 0 G97 G49 G49 G49  
      1 G96 G43 G43 G43  
      13 0 G54(G54.1) G54 G54 G54 G54
      1 G55 G55 G55 G55 G55
      2 G56 G56 G56 G56 G56
      3 G57 G57 G57 G57 G57
      4 G58 G58 G58 G58 G58
      5 G59 G59 G59 G59 G59
      14 0 G64 G64 G64 G64 G64
      1 G61 G61 G61 G61 G61
      2 G62 G62 G62 G62 G62
      3 G63 G63 G63 G63  
      15 0 G69 G17 G17 G17 G85
      1 G68       G84
      2 G68.2        
      4   G18 G18 G18  
      8   G19 G19 G19  
      10   G17.1 G17.1 G17.1  
      16 0 G15 G69.1 G69.1 G69.1 G15
      1 G16 G68.1 G68.1 G68.1 G16
      2   G68.2 G68.2 G68.2  
      17 0 G40.1(G150)   G50 G50 G40.1
      1 G41.1(G151)   G51 G51 G41.1
      2 G42.1(G152)       G42.1
      18 0 G25        
      1 G26        
      19 0 G160 G50.2 G50.2 G50.2  
      1 G161 G51.2 G51.2 G51.2  
      20 0 G13.1(G113) G13.1 G13.1 G13.1 G13.1
      1 G12.1(G112) G12.1 G12.1 G12.1 G12.1
      21 0 G50.1 G50.1 G50.1 G50.1  
      1 G51.1 G51.1 G51.1 G51.1  
      22 0 G54.2 G49.1 G49.1 G49.1  
      2   G44 G44 G44  
      3   G43.1 G43.1 G43.1  
      4   G43.4 G43.4 G43.4  
      5   G43.5 G43.5 G43.5  
      23 0 G80.5 G15 G15 G15  
      1 G81.5 G16 G16 G16  
      31 0         G14
      1         G13
      32 0         G69
      1         G68
      33 0         G99
      1         G98
      34 0         G34
      1         G33

    • Series 30i, 0i-D/F, PMi-A
      Specify G code group number in following table for "type".
    • M series T series
      type g_data G code G code
      System A
      G code
      System B
      G code
      System C
      0 0 G00 G00 G00 G00
      1 G01 G01 G01 G01
      2 G02 G02 G02 G02
      3 G03 G03 G03 G03
      4 G33 G32 G33 G33
      5 G75 G90 G77 G20
      6 G77 G92 G78 G21
      7 G78 G94 G79 G24
      8 G79      
      9   G34 G34 G34
      10 G02.2      
      11 G03.2      
      12 G02.3      
      13 G03.3      
      14 G06.2 G35 G35 G35
      15 G02.4 G36 G36 G36
      16 G03.4      
      17   G06.2 G06.2 G06.2
      18   G02.4 G02.4 G02.4
      19   G03.4 G03.4 G03.4
      20   G02.2 G02.2 G02.2
      21   G03.2 G03.2 G03.2
      22 G35 G02.3 G02.3 G02.3
      23 G36 G03.3 G03.3 G03.3
      24 G34 G06.1 G06.1 G06.1
      25   G32.2 G32.2 G32.2
      1 0 G17 G97 G97 G97
      1   G96 G96 G96
      4 G19      
      8 G18      
      10 G17.1      
      2 0 G90   G90 G90
      1 G91   G91 G91
      3 0 G23 G69 G69 G69
      1 G22 G68 G68 G68
      4 0 G94 G98 G94 G94
      1 G95 G99 G95 G95
      2 G93 G93 G93 G93
      3 G93.2 G93 G93 G93
      5 0 G20(G70) G20 G20 G70
      1 G21(G71) G21 G21 G71
      6 0 G40 G40 G40 G40
      1 G41 G41 G41 G41
      2 G42 G42 G42 G42
      3 G41.2 G41.2 G41.2 G41.2
      4 G42.2 G42.2 G42.2 G42.2
      5 G41.3 G41.3 G41.3 G41.3
      6 G41.4 G41.4 G41.4 G41.4
      7 G42.4 G42.4 G42.4 G42.4
      8 G41.5 G41.5 G41.5 G41.5
      9 G42.5 G42.5 G42.5 G42.5
      10 G41.6 G40.3 G40.3 G40.3
      11 G42.6 G41.6 G41.6 G41.6
      12   G42.6 G42.6 G42.6
      7 0 G49(G49.1) G25 G25 G25
      1 G43 G26 G26 G26
      2 G44      
      3 G43.1      
      4 G43.4      
      5 G43.5      
      6 G43.2      
      7 G43.3      
      8 0 G80 G23 G23 G23
      1 G81 G22 G22 G22
      2 G82      
      3 G83      
      4 G84      
      5 G85      
      6 G86      
      7 G87      
      8 G88      
      9 G89      
      10 G73      
      11 G74      
      12 G76      
      13 G84.2      
      14 G84.3      
      15 G81.2      
      9 0 G98 G80 G80 G80
      1 G99 G83 G83 G83
      2   G84 G84 G84
      3   G85 G85 G85
      4   G86 G86 G86
      5   G87 G87 G87
      6   G88 G88 G88
      7   G89 G89 G89
      10 0 G50   G98 G98
      1 G51   G99 G99
      11 0 G67 G67 G67 G67
      1 G66 G66 G66 G66
      2 G66.1 G66.1 G66.1 G66.1
      12 0 G97 G49 G49 G49
      1 G96 G43 G43 G43
      13 0 G54(G54.1) G54 G54 G54
      1 G55 G55 G55 G55
      2 G56 G56 G56 G56
      3 G57 G57 G57 G57
      4 G58 G58 G58 G58
      5 G59 G59 G59 G59
      14 0 G64 G64 G64 G64
      1 G61 G61 G61 G61
      2 G62 G62 G62 G62
      3 G63 G63 G63 G63
      15 0 G69 G17 G17 G17
      1 G68      
      2 G68.2      
      3 G68.3      
      4   G18 G18 G18
      8   G19 G19 G19
      10   G17.1 G17.1 G17.1
      16 0 G15 G69.1 G69.1 G69.1
      1 G16 G68.1 G68.1 G68.1
      2   G68.2 G68.2 G68.2
      17 0 G40.1(G150)   G50 G50
      1 G41.1(G151)   G51 G51
      2 G42.1(G152)      
      18 0 G25      
      1 G26      
      19 0 G160 G50.2 G50.2 G50.2
      1 G161 G51.2 G51.2 G51.2
      20 0 G13.1(G113) G13.1(G113) G13.1(G113) G13.1(G113)
      1 G12.1(G112) G12.1(G112) G12.1(G112) G12.1(G112)

    • Series 16i/18i-W
      Specify G code group number in following table for "type".
    • type g_data G code
      0 0 G00
      1 G01
      2 G02
      3 G03
      1 0 G17
      1 G18
      2 G19
      2 0 G90
      1 G91
      3 0 G23
      1 G22
      4 0 G94
      1 G95
      5 0 G20
      1 G21
      6 0 G40
      1 G41
      2 G42
      7 0 G50
      1 G51
      2 G52
      8 0 G60
      1 G61
      2 G62
      3 G63
      9 0 G49
      1 G48
      10 0 G66
      1 G67
      11 0 G47
      1 G46
      12 0 G68
      1 G69

    The numerical value of "g_data" mentioned in the above table is stored in the bit 0,..,bit 6 of "g_data" with binary format. Whether this G code is commanded in the target block specified by "block" or not is stored in the bit 7 of "g_data".

    For example, the following result is gotten by calling this function during executing N100's block of the next machining program. (for M of Series 16i/18i/21i, 0i-A/B/C, Power Mate i)

    
    N090 G18 ;
    N100 G1 Z100. ;
    N110 G17 G2 X10. Y-20. R12. ;
    
    type block g_data Modal status
    0 0 0x81 G1 is commanded.
    0 1 0x82 G2 is commanded.
    1 0 0x08 G18 mode. (not commanded)
    1 1 0x80 G17 is commanded.

    To read all "type" concerning G code at a time, -1 is specified. The array of g_data is stored in g_rdata.

    (2) Reading modal data other than G code.

    • Series 15
    • type Address
      100 B (2nd auxiliary function)
      101 D
      102 E
      103 F
      104 H
      105 L
      106 M
      107 S
      108 T
      109 R
      110 P
      111 Q
      112 A
      113 C
      114 I
      115 J
      116 K
      117 N
      118 O
      119 U
      120 V
      121 W
      122 X
      123 Y
      124 Z
      125 M (2nd M code)
      126 M (3rd M code)
      type Address
      200 1st axis
      201 2nd axis
        :     :
      209 10th axis
      210 11th axis
        :     :
      214 15th axis
      215 16th axis
        :     :
      222 23th axis
      223 24th axis
    • When MAX_AXIS=15, type=215,..,223 are not used.
    • When MAX_AXIS=10, type=210,..,223 are not used.
    • To read "type" concerning 100's at a time, -2 is specified. The data is stored in the user define type of ODBMDL4.
      To read "type" concerning 200's at a time, -3 is specified. The data is stored in the user define type of ODBMDL5.

    • Series 16/18/21, 16i/18i/21i, 0i-A/B/C, Power Mate i
    • type Address
      100 B (2nd auxiliary function)
      101 D
      102 - (reserved)
      103 F
      104 H [M]
      105 L
      106 M
      107 S
      108 T
      109 R [M]
      110 P [M]
      111 Q [M]
      112 A
      113 C
      114 I
      115 J
      116 K
      117 N
      118 O
      119 U
      120 V
      121 W
      122 X
      123 Y
      124 Z
      125 M (2nd M code)
      126 M (3rd M code)
      type Address
      200 1st axis
      201 2nd axis
      202 3rd axis
      203 4th axis
      204 5th axis
      205 6th axis
      206 7th axis
      207 8th axis

    [M] is read as a modal data on M series and a commanded data on T series.

    To read "type" concerning 100's at a time, -2 is specified. The data is stored in the array of raux1.

    To read "type" concerning 200's at a time, -3 is specified. The data is stored in the array of raux2.

    • The command of a decimal point in 'FLAG1' and the number of places of decimals in 'FLAG2' are valid in the case of 'F code'.
      And, when the command in the present block is '1', the command of a decimal point in 'FLAG1' is only effective.
      So, the number of places of decimal is always effective.
    • The number of input place of M,S,T,B is digits granted by NC parameter.
    • M code : parameter No.3030
      S code : parameter No.3031
      T code : parameter No.3032
      B code : parameter No.3033

    • Series 30i, 0i-D/F, PMi-A
    • type Address
      100 B (2nd auxiliary function)
      101 D
      102 - (reserved)
      103 F
      104 H [M]
      105 L
      106 M
      107 S
      108 T
      109 R [M]
      110 P [M]
      111 Q [M]
      112 A
      113 C
      114 I
      115 J
      116 K
      117 N
      118 O
      119 U
      120 V
      121 W
      122 X
      123 Y
      124 Z
      125 M (2nd M code)
      126 M (3rd M code)
      type Address
      200 1st axis
      201 2nd axis
      202 3rd axis
      203 4th axis
      204 5th axis
      205 6th axis
      206 7th axis
      207 8th axis

    [M] is read as a modal data on M series and a commanded data on T series.

    To read "type" concerning 100's at a time, -2 is specified. The data is stored in the array of raux1.

    To read "type" concerning 200's at a time, -3 is specified. The data is stored in the array of raux2.

    • Sometimes the number of places of decimals is 'not zero' without the command of a decimal point.
    • The number of input place of M,S,T,B is digits granted by NC parameter.
    • M code : parameter No.3030
      S code : parameter No.3031
      T code : parameter No.3032
      B code : parameter No.3033

    • Series 16i/18i-W
    • type Address
      100 B
      101 D
      102 - (reserved)
      103 F
      104 H
      105 L
      106 M
      107 S
      108 T
      109 R
      110 P
      111 Q
      112 A
      113 C
      114 I
      115 J
      116 K
      117 N
      118 O
      119 U
      120 V
      121 W
      122 X
      123 Y
      124 Z

    To read "type" concerning 100's at a time, -2 is specified.

    The data is stored in the array of raux1.

    • The command of a decimal point in 'FLAG1' and the number of places of decimals in 'FLAG2' are valid in the case of 'F code'.
      And, when the command in the present block is '1', the command of a decimal point in 'FLAG1' is only effective.
      So, the number of places of decimal is always effective.

    (3) Read modal data of one shot G code

    • Series 15 (only HSSB)
    • M series T series
      type g_data G code G code
      System A
      G code
      System B
      G code
      System C
      300 0 G04 G04 G04 G04
      1 G10 G10 G10 G10
      2 G10.1 G10.1 G10.1 G10.1
      3 G27 G27 G27 G27
      4 G28 G28 G28 G28
      5 G29 G29 G29 G29
      6 G30 G30 G30 G30
      7 G30.1 G30.1 G30.1 G30.1
      8 (*) G31
      (G31.1)
      G31
      (G31.1)
      G31
      (G31.1)
      G31
      (G31.1)
      9 G31.2 G31.2 G31.2 G31.2
      10 G31.3 G31.3 G31.3 G31.3
      11        
      12 (*) G37
      (G37.1)
      G37
      (G37.1)
      G37
      (G37.1)
      G37
      (G37.1)
      13   G37.2 G37.2 G37.2
      14   G37.3 G37.3 G37.3
      15 G39 G39 G39 G39
      16 G52 G52 G52 G52
      17 G60 G60 G60 G60
      18 G65 G65 G65 G65
      19 G92 G92 G92 G92
      20   G70 G70 G70
      21   G71 G71 G71
      22   G72 G72 G72
      23   G73 G73 G73
      24   G74 G74 G74
      25   G75 G75 G75
      26   G76 G76 G76
      27        
      28        
      29        
      30        
      31        
      32        
      33        
      34        
      35 G11 G11 G11 G11
      36 G07 G07 G07 G07
      37   G10.2 G10.2 G10.2
      38        
      39        
      40 G10.3 G10.3 G10.3 G10.3
      41 G11.3 G11.3 G11.3 G11.3
      42 G65.3 G65.3 G65.3 G65.3
      43        
      44 G05.1 G05.1 G05.1 G05.1
      45        
      46        
      47 G07.1 G07.1 G07.1 G07.1
      48        
      49        
      50 G81.1      
      51 G72.2      
      52 G10.6      
      53 G92.1 G50.3 G92.1 G92.1
      54 G72.2      
      55 G05.2      
      56 G12.2      
      57 G13.2      
      58   G10.7 G10.7 G10.7
      59        
      60        
      61        
      62        
      63        
      64        
      65        
      66        
      67 G31.9      
      68 G10.9      
      69        
      70        
      71        
      72        
      301 0 G09 G09 G09 G09
      1        
      2        
      302 0        
      1        
      2 G53 G53 G53 G53
      303 0 G38      
      1 G45      
      2 G46      
      3 G47      
      4 G48      
      (*) G31 and G31.1 are the same function.
      G37 and G37.1 are the same function.
    • Series 16/18/21, 16i/18i/21i, 0i-A/B/C, Power Mate i
    • M series T series Laser
      type g_data G code G code
      System A
      G code
      System B
      G code
      System C
      G code
      300 0 G04 G04 G04 G04 G04
      1 G10 G27 G27 G27 G10
      2   G28 G28 G28  
      3   G29 G29 G29  
      4 G27 G30 G30 G30 G27
      5 G28 G50 G92 G92 G28
      6 G29 G70 G70 G72 G29
      7 G30 G71 G71 G73 G30
      8 G38 G72 G72 G74  
      9 G39 G73 G73 G75  
      10 G45 G74 G74 G76 G45
      11 G46 G75 G75 G77 G46
      12 G47 G76 G76 G78 G47
      13 G48 G10 G10 G10 G48
      14 G92 G37.1 G37.1 G37.1 G92
      15 G09 G37 G37 G37 G09
      16 G31(G31.1) G31 G31 G31 G31
      17 G60 G65 G65 G65 G60
      18 G65    G65
      19   G05 G05 G05  
      20 G05 G11 G11 G11 G05
      21 G11 G07.1 G07.1 G07.1 G11
      22 G52 G52 G52 G52 G52
      23 G53 G53 G53 G53 G53
      24 G37 G30.1 G30.1 G30.1  
      25 G07.1(G107)G10.6G10.6G10.6G07.1
      26 G30.1 G50.3 G92.1 G92.1 G30.1
      27 G10.6 G08 G08 G08  
      28 G72.1    G72.1
      29 G72.2 G39 G39 G39 G72.2
      30 G92.1 G60 G60 G60 G92.1
      31 G08    G08
      32      G71
      80      G24
      81      G32
      100 G81.1 G07 G07 G07  
      101   G09 G09 G09  
      102   G73.1 G73.1 G73.1  
      103   G73.2 G73.2 G73.2  
      104 G05.1 G74.1 G74.1 G74.1  
      105 G07     
      106 G31.8 G80.4 G80.4 G80.4  
      107 G31.9 G81.4 G81.4 G81.4  
      108 G12.4 G82.4 G82.4 G82.4  
      109 G13.4 G83.4 G83.4 G83.4  
      110 G05.4 G84.4 G84.4 G84.4  
      111 G10.9 G05.1 G05.1 G05.1  
      112 G31.2 G72.1 G72.1 G72.1  
      113 G31.3 G72.2 G72.2 G72.2  
      114 G31.4     
      115 G53.1     
      116   G38 G38 G38  
      117 G28.2     
      118 G30.2     
      126   G28.2 G28.2 G28.2  
      127   G30.2 G30.2 G30.2  
    • Series 30i, 0i-D/F, PMi-A
    • M series T series
      type g_data G code G code
      System A
      G code
      System B
      G code
      System C
      300 0 G04 G04 G04 G04
      1 G10 G27 G27 G27
      2   G28 G28 G28
      3   G29 G29 G29
      4 G27 G30 G30 G30
      5 G28 G50 G92 G92
      6 G29 G70 G70 G72
      7 G30 G71 G71 G73
      8   G72 G72 G74
      9 G39 G73 G73 G75
      10   G74 G74 G76
      11   G75 G75 G77
      12   G76 G76 G78
      13   G10 G10 G10
      14 G92 G37.1 G37.1 G37.1
      15   G37(G37.2) G37(G37.2) G37(G37.2)
      16 G31(G31.1) G31 G31 G31
      17 G60 G65 G65 G65
      18 G65      
      19   G05 G05 G05
      20 G05 G11 G11 G11
      21 G11 G07.1(G107) G07.1(G107) G07.1(G107)
      22 G52 G52 G52 G52
      23   G53 G53 G53
      24 G37 G30.1 G30.1 G30.1
      25 G07.1(G107) G10.6 G10.6 G10.6
      26 G30.1 G50.3 G92.1 G92.1
      27 G10.6 G08 G08 G08
      28 G72.1 G100 G110 G101
      29 G72.2 G39 G39 G39
      30 G92.1 G60 G60 G60
      31 G08      
      96   G31.8 G31.8 G31.8
      97   G37.3 G37.3 G37.3
      99   G10.9 G10.9 G10.9
      100 G81.1 G07 G07 G07
      102   G73.1 G73.1 G73.1
      103   G73.2 G73.2 G73.2
      104 G05.1 G74.1 G74.1 G74.1
      105 G07 G05.4 G05.4 G05.4
      106 G31.8 G80.4 G80.4 G80.4
      107 G31.9 G81.4 G81.4 G81.4
      108 G12.4 G82.4 G82.4 G82.4
      109 G13.4 G83.4 G83.4 G83.4
      110 G05.4 G84.4 G84.4 G84.4
      111 G10.9 G05.1 G05.1 G05.1
      112 G31.2 G72.1 G72.1 G72.1
      113 G31.3 G72.2 G72.2 G72.2
      114 G31.4      
      116 G91.1      
      119   G43.6 G43.6 G43.6
      120   G50.4 G50.4 G50.4
      121   G50.5 G50.5 G50.5
      122   G50.6 G50.6 G50.6
      123   G51.4 G51.4 G51.4
      124   G51.5 G51.5 G51.5
      125 G37.1 G51.6 G91.1 G91.1
      126 G37.2      
      127 G37.3      
    • Series 16i/18i-W
    • type g_data G code
      300 0 G04
      1 G10
      2 G11
      3 G09
      4 G27
      5 G28
      6 G29
      7 G30
      13 G93
      14 G92
      15 G31
      16 G70
      17 G71
      18 G72
      19 G73
      20 G74
      21 G75
      22 G76
      23 G77
      24 G78
      25 G79
      26 G65
      27 G32
      28 G33
      31 G53
      32 G80
      33 G81
      34 G86
      35 G87
      36 G88
      37 G89

    The numerical value of "g_1shot" mentioned in the above table is stored in the bit 0,..,bit 6 of each array in "g_1shot" with binary format. Whether this G code is commanded in the objective block specified by "block" or not is stored in the bit 7 of "

    To read "type" concerning 1 shot G code at a time, -4 is specified.
    In case of Series 15, the data of type=300,..,303 is stored in g_1shot[0],..,g_1shot[3].
    In case of Series 16/18/21/0i, 30i, Power Mate i and PMi-A, the data of type=300 is stored in g_1shot[0].

    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_NUMBER
    (3)
    Data number error
    The specification of modal data (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 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 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)H O O O H X 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) - - O O 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_rdgcode   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_modal

    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_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_rdgcode

    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... [read more]
    Fanuc Focas Library | Misc | cnc_rdgcode

    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