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

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_BASEdParts1
 pointer to user given array for modified parts. The plug-in is responsible of freeing memory (if needed).
 

Detailed Description

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.

Definition at line 3066 of file TGM_CNC.h.

Member Data Documentation

◆ options

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

Definition at line 3069 of file TGM_CNC.h.

◆ sParts0

Pre-allocated array for modified parts. For M functions, add CNC_CALC_MFUNC_OFFSET to function number (SIMPLE_GM_PARAMS_BASE::m_func).

Definition at line 3072 of file TGM_CNC.h.


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