TG Motion
version 421 - 4033/904 cnc 121
Real-time system for controlling servo drives and I/O modules
|
Holds changed G-code parts. More...
#include <TGM_CNC.h>
Public Attributes | |
double | dblFeed |
new feed | |
int32_t | options |
uint32_t | nEntriesInPart0 |
number of valid entries in the sParts0 array, valid range 0 - (CNC_CALC_MAX_STATIC_RETURNED_PARTS - 1) | |
SIMPLE_GM_PARAMS_BASE | sParts0 [CNC_CALC_MAX_STATIC_RETURNED_PARTS] |
int32_t | reserved2 |
reserved | |
uint32_t | nDynamicEntriesInPart1 |
number of entries in the dParts1 array | |
SIMPLE_GM_PARAMS_BASE * | dParts1 |
pointer to user given array for modified parts. The plug-in is responsible of freeing memory (if needed). | |
Holds changed G-code parts.
Fields of this structure are set by the plug-in and used by TG Motion. Not all the fields are necessary to be set, depending to return value of the calc function. Almost any number of new parts can be used, up to 8 in the array CNC_CALC_RETURN_VALUE::sParts0, followed by any number in the CNC_CALC_RETURN_VALUE::dParts1.
int32_t CNC_CALC_RETURN_VALUE::options |
bit-oriented additional options for modified parts:
CNC_CALC_DISABLE_AUTOMATIC_GCODEINDEX_UPDATE_BIT (0x01) - do not automatically update SIMPLE_GM_PARAMS_BASE::m_gCodeIndex
SIMPLE_GM_PARAMS_BASE CNC_CALC_RETURN_VALUE::sParts0[CNC_CALC_MAX_STATIC_RETURNED_PARTS] |
Pre-allocated array for modified parts. For M functions, add CNC_CALC_MFUNC_OFFSET to function number (SIMPLE_GM_PARAMS_BASE::m_func).