Class NcSyntaxUtil
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
Remarks
Must be initialized before MixedNcSyntaxList to avoid static initialization cycle.
FloatTagList
tag list for the float number tags.
public static List<string> FloatTagList { get; set; }
Property Value
Remarks
Must be initialized before MixedNcSyntaxList to avoid static initialization cycle.
MixedCommentSyntax
public static BundleSyntax MixedCommentSyntax { get; set; }
Property Value
MixedIndexNoteSyntax
public static BundleSyntax MixedIndexNoteSyntax { get; set; }
Property Value
MixedNcSyntaxList
public static List<INcSyntax> MixedNcSyntaxList { get; }
Property Value
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
unManagedTextstringThe NC text to parse and modify.
targetTagsIEnumerable<string>candidate target tags that to be setup value
varPrefixstringvariable index code prefix.
terminateWordsIEnumerable<string>words that terminate expression (e.g., F, G, M, S). These are different from varPrefix - they signal end of expression, not variables.
Returns
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
unManagedTextstringThe NC text to parse and modify.
targetTagsIEnumerable<string>candidate target tags that to be setup value
varPrefixstringvariable index code prefix. ex. Fanuc # for #123; Heidenhain Q for Q123.