![]() |
TG Motion
version 421 - 4033/904 cnc 121
Real-time system for controlling servo drives and I/O modules
|
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) or actual position (ToolChainCore_GetPos) | |
P10DOUBLE | m_calcE |
absolute end position recalculated | |
P10DOUBLE | m_zero |
actual zero offset (G54 - G57) | |
P10DOUBLE | m_cc |
arc centre (m_cc.x m_cc.y m_cc.z) and radius (in m_cc.c variable), other m_cc variables not yet used | |
float | m_pars [MAX_FUNC_ADDRESSES] |
int32_t | m_func |
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 | |
Describes one G-code part.
Serves also for getting actual values of the system.
float SIMPLE_GM_PARAMS_WIN32::m_pars[MAX_FUNC_ADDRESSES] |
All addresses (26 letters of alphabet), as given in the text of CNC program or value is > 1e38 (address not included in the G-code function)
When calling as CALLBACK functions the following values are set:
m_func
)int32_t SIMPLE_GM_PARAMS_WIN32::m_func |
Number of G or M function. When calling ToolChainCore_GetPos numbers of M functions are raised by 10000. I.e. for m_func < 10000, the current function is G, for m_func > 10000, M function is running. Similar meaning is in m_pars[6] and m_pars[12], see above.
int32_t SIMPLE_GM_PARAMS_WIN32::m_planeTool |
int32_t SIMPLE_GM_PARAMS_WIN32::m_gCodeIndex |
int32_t SIMPLE_GM_PARAMS_WIN32::m_bFeedIsMin |