SMC_AddGCodeState (STRUCT)¶
TYPE SMC_AddGCodeState : STRUCT
- InOut:
Name
Type
Comment
OriConvThe orientation convention in use.
DCSDescribes the transformation from DCS to MCS.
- 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)
dA1, …, dA5 describe the offset of the additional axes P, Q, U, V, W.
- If OriConv = SMC_ORI_CONVENTION.ADDAXES, dA, dB, and dC describean offset for each coordinate.If OriConv <> SMC_ORI_CONVENTION.ADDAXES, then the members dA, dB, dCdescribe the rotation from DCS to MCS.
GCodeThe active G-Code.
roundPathBOOLWhether SMC_RoundPath is active, G51
smoothPathBOOLWhether SMC_SmoothPath is active, G52
smoothRadiusLREALThe smoothing/rounding distance set with the D-word of G51/G52.
extendedFlagsDWORDThe extended flags set with G38
extendedParamsARRAY [0..(SMC_MAX_ADDITIONAL_PARAMS - 1)] OF LREAL
The extended parameters set with G38/G39
toolSMC_Vector3DThe tool offset set with I/J/K of G43
toolRadiusCorrLeftBOOLWhether SMC_ToolRadiusCorr to the left is active (G41).
toolRadiusCorrRightBOOLWhether SMC_ToolRadiusCorr to the right is active (G42).
toolRadiusLREALThe tool radius set with the D-word of G41/G42.
avoidLoopBOOLWhether SMC_AvoidLoop is active (G61)
smoothAddAxesBOOLWhether SMC_SmoothAddAxes is active (G71)
mode3DBOOLWhether 3D-Mode is active (G16 … G19)
ArcPlaneSMC_Matrix3The 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.