![]() |
TG Motion
version 502 - 4034/906 cnc 126
|
Constants declared as enumerations
|
strong |
Axes numbers, together with special axis types. Assignment of the axes to array indexes is fixed, i.e. the first axis (index 0) is always X axis, etc... Special axes are used internally and have no relationship to array indexes.
|
strong |
StatusCNC return codes.
Enumerator | |
---|---|
OFFLINE_M02 | -2: remote device not connected (TGMmini, TGM_REMOTE) |
INVALID_00 | 0: Initial state, no G-code loaded |
COMPILING_01 | 1: Compile is in progress |
COMPILE_FINISHED_M01 | -1: Compile finished (with success or error) |
SIMULATING_10 | 10: Simulation is in progress |
SIMULATION_END_M10 | -10: Simulation finished (OK or NOK) |
SIMULATION_BREAK_M11 | -11: Simulation broken by ToolChainCore_StopCNCEx |
TEST_20 | 20: Test is in progress |
TEST_END_M20 | -20: Test finished (OK or NOK) |
TEST_BREAK_M21 | -21: Test broken by ToolChainCore_StopCNCEx |
TRAJECTORY_START_M30 | -30: System is on start of trajectory |
TRAJECTORY_BREAK_M31 | -31: Stop on trajectory (interrupted by ToolChainCore_StopCNCEx or after connect or when the backward buffer is empty) |
TRAJECTORY_END_M32 | -32: End of trajectory, system stops |
TRAJECTORY_BREAK_M0_M33 | -33: Stop on trajectory by M0 function |
FORWARD_30 | 30: Normal forward movement on trajectory |
FORWARD_NO_MFUNC_31 | 31: Forward movement without M functions (which are skipped) |
BACKWARD_32 | 32: Backward movement on trajectory |
FORWARD_SKIP_FIRST_M_33 | 33: Forward movement. If the first part is M function, it is skipped. Following M functions are executed normally. |
CONNECTING_40 | 40: Calculation of connection point |
CONNECT_MOVE_41 | 41: Movement to connection point is in progress |
HAND_MOVE_50 | 50: Moving to any position (ToolChainCore_GoToPosition) |
OUT_OF_TRAJECTORY_M50 | -50: System is stopped and positioned out of trajectory |
CALCULATING_60 | 60: Internal calculation is in progress |
START_M_FUNCS_70 | 70: Extra initial M functions are sending |
STOP_M_FUNCS_80 | 80: Extra final M function are sending |
CONNECT_INS_M_FUNCS_90 | 90: Extra connection M functions are sending |
NONSENSE | -1234: Invalid nonsense value |
|
strong |
Connection modes (ToolChainCore_ConnectCNCEx_Plane)
Enumerator | |
---|---|
BY_COORD | 0: go to the nearest point of given position and stop |
BY_LINE_START | 1: go to the begin (starting point) of G-code part located at given line
|
BY_LINE_END | 2: go to the end (ending point) of G-code part located at given line
|
BY_COORD_GO | 10: go to the nearest point of given position and continue. |
BY_LINE_START_GO | 11: go to the begin (starting point) of G-code part located at give line
|
BY_LINE_END_GO | 12: go to the end (ending point) of G-code part located at give line
|
BY_M_FUNC_COUNT | 20: move to given n-th M function. The n-th repetition is counted absolute from beginning of the G-code.
|
BY_M_FUNC_COUNT_REL | 21: move to given n-th M function. The n-th repetition is counted relatively from actual G-code line number.
|
BY_GCODE_INDEX | 30: go to the begin (starting point) of the G-code part determined by its G-code index
|
BY_GCODE_INDEX_ACTUAL_COORD | 31: go to the nearest point of the G-code part determined by its G-code index
|
BY_GCODE_INDEX_END | 32: go to the end (ending point) of the G-code part determined by its G-code index
|
BY_COORD_GO_BUFFERED | 40: go to the nearest point of given position and continue. |
BY_LINE_START_GO_BUFFERED | 41: go to the begin (starting point) of G-code part located at given line
|
BY_LINE_END_GO_BUFFERED | 42: go to the end (ending point) of G-code part located at give line
|
BY_GCODE_INDEX_ACTUAL_COORD_GO_BUFFERED | 44: go to the nearest point of the G-code part determined by its G-code index
|
BY_COORD_ON_TRAJECTORY_WITH_GCODE_INDEX_GO_BUFFERED | 46: go to the exact point on trajectory given by coords and G-code index and continue movement. |
|
strong |
Values for ToolChainCore_ResetStatusCNC function.
Enumerator | |
---|---|
TO_INVALID_00 | Clear compiled data, free memory and set CNC status to cnc_status::INVALID_00. |
TO_OUT_OF_TYRAJECTORY_01 | Set CNC status to cnc_status::OUT_OF_TRAJECTORY_M50. |
|
strong |
Specifies wanted status after successful connect for ToolChainCore_ConnectCNCEx_Plane.
Enumerator | |
---|---|
KEEP_00 | keep the status calculated by system |
FORCE_OUT_OF_TRAJECTORY_02 | set the status to cnc_status::OUT_OF_TRAJECTORY_M50 |