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

Structure for transmitting information for the function ToolChainCore_GetLastError and for the callback functions AddOutputLogFunc, SetStatusBarTextFunc, MathWarningFunc. More...

#include <TGM_CNC.h>

Public Attributes

int32_t stringId
 
int32_t nLines
 
int32_t actLine
 
int32_t fileIdx
 
TGM_LPCSTR m_fullError
 
TGM_LPCSTR m_errorArguments
 

Detailed Description

Structure for transmitting information for the function ToolChainCore_GetLastError and for the callback functions AddOutputLogFunc, SetStatusBarTextFunc, MathWarningFunc.

Definition at line 1154 of file TGM_CNC.h.

Member Data Documentation

◆ stringId

int32_t CALLBACK_INFO::stringId

Text no. from textual .INI file, and also error no., can be -1, then only CALLBACK_INFO::nLines and CALLBACK_INFO::actLine items are valid

Definition at line 1156 of file TGM_CNC.h.

◆ nLines

int32_t CALLBACK_INFO::nLines

Total number of lines in G-code (if known, otherwise 0)

Definition at line 1158 of file TGM_CNC.h.

◆ actLine

int32_t CALLBACK_INFO::actLine

Current line where compilation is running or an error occurred, counted from 1, also can be 0, then the item is not used

Definition at line 1160 of file TGM_CNC.h.

◆ fileIdx

int32_t CALLBACK_INFO::fileIdx

Number of file with an error or which is being compiled. File name will be identified using function ToolChainCore_IdxToFile. Can be -1, then only CALLBACK_INFO::nLines and CALLBACK_INFO::actLine fields are valid

Definition at line 1162 of file TGM_CNC.h.

◆ m_fullError

TGM_LPCSTR CALLBACK_INFO::m_fullError

Only for ToolChainCore_GetLastError - pointer to the complete error text (ANSI string). String may be empty. The content needs to be copied to the local variable right after the calling ToolChainCore_GetLastError.

Definition at line 1165 of file TGM_CNC.h.

◆ m_errorArguments

TGM_LPCSTR CALLBACK_INFO::m_errorArguments

Only for ToolChainCore_GetLastError - pointer to ANSI string, which contains possible arguments of an error string, or an empty string. Individual arguments are separated by LF (0x10). The content needs to be copied to the local variable right after the calling ToolChainCore_GetLastError.

< Error message format:
<
< "Wrongly entered centre of circular interpolation XY\nStart X = %g Y = %g | End X = %g Y =
< %g\nDelta (%.7f) > 2*R (%.7f)"
<
< Complete error text (m_fullEror):
<
< "Wrongly entered centre of circular interpolation XY\nStart X = 20.123 Y = 30.653 | End X =
< 43.987 Y = -1.26\n Delta (46.990) > 2*R (30.000)"
<
< Arguments (m_errorArguments):
< "20.123
< 30.653
< 43.987
< -1.26
< 46.990
< 30.000"
<

Definition at line 1169 of file TGM_CNC.h.


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