Table of Contents

Class NcSyntaxUtil

Namespace
Hi.Numerical.SoftParsers.Syntaxs
Assembly
HiMech.dll
public static class NcSyntaxUtil
Inheritance
NcSyntaxUtil
Inherited Members

Properties

AxisTagList

tag list for the motion axis tags.

public static List<string> AxisTagList { get; set; }

Property Value

List<string>

Remarks

Must be initialized before MixedNcSyntaxList to avoid static initialization cycle.

FanucCommentSyntax

public static SequencialNcSyntax FanucCommentSyntax { get; set; }

Property Value

SequencialNcSyntax

FloatTagList

tag list for the float number tags.

public static List<string> FloatTagList { get; set; }

Property Value

List<string>

Remarks

Must be initialized before MixedNcSyntaxList to avoid static initialization cycle.

HeidenhainCommentSyntax

public static SequencialNcSyntax HeidenhainCommentSyntax { get; set; }

Property Value

SequencialNcSyntax

MazakCommentSyntax

public static SequencialNcSyntax MazakCommentSyntax { get; set; }

Property Value

SequencialNcSyntax

MixedCommentSyntax

public static SequencialNcSyntax MixedCommentSyntax { get; set; }

Property Value

SequencialNcSyntax

MixedIndexNoteSyntax

public static SequencialNcSyntax MixedIndexNoteSyntax { get; set; }

Property Value

SequencialNcSyntax

MixedNcSyntaxList

public static List<INcSyntax> MixedNcSyntaxList { get; }

Property Value

List<INcSyntax>

SiemensCommentSyntax

public static SequencialNcSyntax SiemensCommentSyntax { get; set; }

Property Value

SequencialNcSyntax

SyntecCommentSyntax

public static SequencialNcSyntax SyntecCommentSyntax { get; set; }

Property Value

SequencialNcSyntax

Methods

GrabTagAssignment(ref string, IEnumerable<string>, string, IEnumerable<string>)

Get Tag Assignments with = sign. ex. Siemens: R1=100.5, Z=V1+V2, Z=V1 - V3 * V2 F200 Heidenhain: Q1 = Q2 + 100 Fanuc: #1=#2+#3

public static List<TagSetup> GrabTagAssignment(ref string unManagedText, IEnumerable<string> targetTags, string varPrefix, IEnumerable<string> terminateWords = null)

Parameters

unManagedText string

The NC text to parse and modify.

targetTags IEnumerable<string>

candidate target tags that to be setup value

varPrefix string

variable index code prefix.

terminateWords IEnumerable<string>

words that terminate expression (e.g., F, G, M, S). These are different from varPrefix - they signal end of expression, not variables.

Returns

List<TagSetup>

List of extracted tag assignments.

GrabTagSetup(ref string, IEnumerable<string>, string)

Get Tag Setups. Concatenated tag setup syntax. The syntax is for assignment with space or no splition assignment. The syntax is not for assignment sign (=) syntax. ex. Heidenhain: L X Q2 Y33.4 FQ1 Heidenhain: L X Q2 Y33.4 F+Q1 ISO: X100.3Y3.3 Fanuc Macro: X[#1+#2] Y[#1*2+100]

public static List<TagSetup> GrabTagSetup(ref string unManagedText, IEnumerable<string> targetTags, string varPrefix)

Parameters

unManagedText string

The NC text to parse and modify.

targetTags IEnumerable<string>

candidate target tags that to be setup value

varPrefix string

variable index code prefix. ex. Fanuc # for #123; Heidenhain Q for Q123.

Returns

List<TagSetup>

List of extracted tag setups.