SMC_AddGCodeState (STRUCT)

TYPE SMC_AddGCodeState : STRUCT

InOut:

Name

Type

Comment

OriConv

SMC_ORI_CONVENTION

The orientation convention in use.

DCS

SMC_PosInfo

Describes the transformation from DCS to MCS.

  1. dX, dY, dZ describe the offset of the DCS relative to the MCS.
    (The vector from the origin of the MCS to the origin of the DCS,
    expressed in MCS coordinates)
  2. dA1, …, dA5 describe the offset of the additional axes P, Q, U, V, W.

  3. If OriConv = SMC_ORI_CONVENTION.ADDAXES, dA, dB, and dC describe
    an offset for each coordinate.
    If OriConv <> SMC_ORI_CONVENTION.ADDAXES, then the members dA, dB, dC
    describe the rotation from DCS to MCS.

GCode

SMC_MOVTYP

The active G-Code.

roundPath

BOOL

Whether SMC_RoundPath is active, G51

smoothPath

BOOL

Whether SMC_SmoothPath is active, G52

smoothRadius

LREAL

The smoothing/rounding distance set with the D-word of G51/G52.

extendedFlags

DWORD

The extended flags set with G38

extendedParams

ARRAY [0..(SMC_MAX_ADDITIONAL_PARAMS - 1)] OF LREAL

The extended parameters set with G38/G39

tool

SMC_Vector3D

The tool offset set with I/J/K of G43

toolRadiusCorrLeft

BOOL

Whether SMC_ToolRadiusCorr to the left is active (G41).

toolRadiusCorrRight

BOOL

Whether SMC_ToolRadiusCorr to the right is active (G42).

toolRadius

LREAL

The tool radius set with the D-word of G41/G42.

avoidLoop

BOOL

Whether SMC_AvoidLoop is active (G61)

smoothAddAxes

BOOL

Whether SMC_SmoothAddAxes is active (G71)

mode3D

BOOL

Whether 3D-Mode is active (G16 … G19)

ArcPlane

SMC_Matrix3

The plane used for arcs, the column are the X, Y, and Z-axis of the plane coordinate system, the Z-axis is orthogonal to the plane. Expressed in the DCS. Set with G15 … G19.