Table of Contents

Class GenericSyntaxKit

Namespace
Hi.NcParsers.Syntaxs
Assembly
HiMech.dll

Generic/ISO standard syntax kit. Involve G code. Contains syntax definitions for common G codes used across multiple NC systems.

public class GenericSyntaxKit
Inheritance
GenericSyntaxKit
Inherited Members
Extension Methods

Constructors

GenericSyntaxKit(string)

Creates a kit with the given variable-address prefix.

public GenericSyntaxKit(string varPrefix)

Parameters

varPrefix string

Single-character or short prefix used by parameterized syntaxes.

Properties

CannedCycleCodes

Cycle codes captured by CannedCycleSyntax. Defaults to CannedCycleCodes; brands whose vocabulary conflicts override it (e.g. Siemens excludes G74 — reference-point return there, not a tapping cycle).

public List<string> CannedCycleCodes { get; set; }

Property Value

List<string>

CannedCycleSyntax

Canned drilling/boring/tapping cycle syntax (G73/G74/G81/G82/G83/G84/G85/G86/G89). Captures all cycle parameters (X, Y, Z, R, Q, F, the repeat count K, and the bottom dwell P in milliseconds, the unit of G04 P) into the cycle sub-section (e.g., Parsing.G83) so that cycle syntaxes can read them as a unit and store them for modal lookback. Terminates at G/M only.

public ParameterizedFlagSyntax CannedCycleSyntax { get; }

Property Value

ParameterizedFlagSyntax

DwellCodes

Dwell codes captured by G4Syntax. Both spellings by default (DwellCodes) — real programs write G04 as often as G4, and the un-captured spelling used to fall through to the flag/axis syntaxes (where a Fanuc G04 X0.5 dwell time became a ghost X motion word).

public List<string> DwellCodes { get; set; }

Property Value

List<string>

DwellMillisecondsPrefixes

Argument prefixes captured into the dwell sub-section as a milliseconds word (MillisecondsParamPrefixes): the Fanuc-family P, whose whole number is the least input increment and whose decimal point follows the brand's DwellWordConfig (Syntec seconds, Fanuc and Mazak an alarm). Siemens has no such word and clears the list.

public List<string> DwellMillisecondsPrefixes { get; set; }

Property Value

List<string>

DwellParamPrefixes

Argument prefixes captured into the dwell sub-section by G4Syntax as plain numbers: the Fanuc-family X/U seconds and the legacy S spindle-revolutions capture; the Siemens preset overrides with F (seconds) + S (revolutions). The milliseconds word is DwellMillisecondsPrefixes.

public List<string> DwellParamPrefixes { get; set; }

Property Value

List<string>

G28Syntax

G28 Reference point return syntax.

public ParameterizedFlagSyntax G28Syntax { get; }

Property Value

ParameterizedFlagSyntax

G41G42Syntax

G41/G42 Cutter radius compensation syntax. TerminateWords intentionally only M: D (offset id) commonly appears after move axes or other G modifiers in the same block (e.g., G41 X10. D1, G54 G41 D1). Using G/X/Y/Z would truncate scope before D and lose the offset id.

public ParameterizedFlagSyntax G41G42Syntax { get; }

Property Value

ParameterizedFlagSyntax

G43G44Syntax

G43/G44 Tool length compensation syntax (ISO standard). G43.4 (TCPM) is Fanuc-specific — see G43p4Syntax. TerminateWords intentionally only M: H (offset id) commonly appears after move axes or other G modifiers in the same block (e.g., G43Z5.H01, G43 G54 H1). Using G/X/Y/Z would truncate scope before H and lose the offset id.

public ParameterizedFlagSyntax G43G44Syntax { get; }

Property Value

ParameterizedFlagSyntax

G4Syntax

G4 Dwell/Pause syntax. Captures DwellCodes plus their DwellParamPrefixes and DwellMillisecondsPrefixes arguments into a Parsing.G4/Parsing.G04 sub-section, consumed by DwellSyntax.

public ParameterizedFlagSyntax G4Syntax { get; }

Property Value

ParameterizedFlagSyntax

G52Syntax

G52 Local coordinate system syntax.

public ParameterizedFlagSyntax G52Syntax { get; }

Property Value

ParameterizedFlagSyntax

G68Syntax

G68 Coordinate rotation syntax. X/Y/Z (center), I/J/K (axis), R (angle) stored as doubles.

public ParameterizedFlagSyntax G68Syntax { get; }

Property Value

ParameterizedFlagSyntax

G68p2Syntax

G68.2 Tilted work plane syntax. X/Y/Z (origin), I/J/K (euler angles) stored as doubles. A/B/C post-processor hints are parsed by FloatTagValueSyntax and consumed by IsoG68p2TiltSyntax from Parsing.

public ParameterizedFlagSyntax G68p2Syntax { get; }

Property Value

ParameterizedFlagSyntax

ParameterizedFlagSyntaxList

Common ISO-style G-code parameterized syntaxes using VarPrefix.

public List<ParameterizedFlagSyntax> ParameterizedFlagSyntaxList { get; }

Property Value

List<ParameterizedFlagSyntax>

VarPrefix

Variable index prefix for this kit (e.g. Fanuc #, Heidenhain Q).

public string VarPrefix { get; set; }

Property Value

string