TG Motion  version 421 - 4033/904 cnc 121
Real-time system for controlling servo drives and I/O modules
SIMPLE_GM_PARAMS_BASE Struct Reference

Describes one G-code part. More...

#include <TGM_CNC.h>

Public Attributes

P10DOUBLE m_s
 absolute initial position (original) of type P10DOUBLE
 
P10DOUBLE m_e
 absolute end position (original)
 
P10DOUBLE m_calcS
 absolute initial position recalculated (tool size compensation)
 
P10DOUBLE m_calcE
 absolute end position recalculated
 
P4CIRCLE m_cc
 arc centre (m_cc.x m_cc.y m_cc.z) and radius (in m_cc.c variable)
 
float m_pars [MAX_FUNC_ADDRESSES]
 the G-code or value is > 1e38 (address not included in the G-code function) More...
 
int32_t m_func
 Number of G or M function.
 
int32_t m_planeTool
 
uint32_t m_reserved
 Internal reseved value.
 
uint32_t m_editorLine
 Line in G-code.
 
int32_t m_fileIdx
 File index.
 
int32_t m_gCodeIndex
 
int32_t m_bFeedIsMin
 
float m_fp
 actual value of FP address (percent of F), usually 1.0
 

Detailed Description

Describes one G-code part.

Definition at line 941 of file TGM_CNC.h.

Member Data Documentation

◆ m_pars

float SIMPLE_GM_PARAMS_BASE::m_pars[MAX_FUNC_ADDRESSES]

the G-code or value is > 1e38 (address not included in the G-code function)

All addresses (26 letters of alphabet), as given in

Definition at line 949 of file TGM_CNC.h.

◆ m_planeTool

int32_t SIMPLE_GM_PARAMS_BASE::m_planeTool

Low 16bits: Plane of circular interpolation (17: XY, 18: XZ, 19: YZ, -18: ZX). Value -18 is used only for lathe. Upper 16bits: Tool number

Definition at line 952 of file TGM_CNC.h.

◆ m_gCodeIndex

int32_t SIMPLE_GM_PARAMS_BASE::m_gCodeIndex

Counter of the G or M function. Also referenced in the text as GCodeIndex. Usually even value, odd values are reserved for special inserted movements. Could be negative for special internal G-code markers. If positive, it is unique for each G-code part and it is monotonically increasing.

Definition at line 958 of file TGM_CNC.h.

◆ m_bFeedIsMin

int32_t SIMPLE_GM_PARAMS_BASE::m_bFeedIsMin

lower 16bits: Feed is mm/per min (1) or mm/revolution (0) upper 16bits: correction type 40, 41, 42

Definition at line 963 of file TGM_CNC.h.


The documentation for this struct was generated from the following file: