Class SiemensUifrWritingSyntax
- Namespace
- Hi.NcParsers.EvaluationSyntaxs.Siemens
- Assembly
- HiMech.dll
Consumes Sinumerik settable-frame translation writes
($P_UIFR[5,Z,TR]=R102-281.48, probing programs' workpiece
re-referencing idiom) by routing literal numeric assignments from
Parsing.Assignments into the SiemensFrameTable on
the runner's effective dependency list — the write is thereby fully
simulated: a subsequent G54/G505+ selection reads the updated
offset through the existing CoordinateOffset path (X/Y/Z), and
$P_UIFR reads see it via SiemensUifrVariableLookup.
Only literal numeric RHS values are consumed;
VariableEvaluatorSyntax normalizes expression RHS to
literals earlier on the same block. Only the TR component is
bridged — other components (RT, FI) stay in Assignments
and fall to the record-only SiemensSystemVariableSyntax,
which must run after this syntax. Writes to $P_UIFR[0,..]
(G500) are consumed but ignored, matching
SetAxisOffset(string, string, double).
If no SiemensFrameTable is registered, this syntax is a no-op (entries stay visible as unconsumed residue).
public class SiemensUifrWritingSyntax : ISituNcSyntax, INcSyntax, IMakeXmlSource
- Inheritance
-
SiemensUifrWritingSyntax
- Implements
- Inherited Members
- Extension Methods
Examples
#BeforeBuild:
{
"Parsing": { "Assignments": { "$P_UIFR[5,Z,TR]": "-281.48" } }
}
#AfterBuild:
{
}
Constructors
SiemensUifrWritingSyntax()
Default constructor.
public SiemensUifrWritingSyntax()
SiemensUifrWritingSyntax(XElement)
Loads from an XML element produced by MakeXmlSource(string, string, bool). No state to deserialise.
public SiemensUifrWritingSyntax(XElement src)
Parameters
srcXElement
Properties
Name
Syntax kind name (typically the concrete type name).
public string Name { get; }
Property Value
XName
XML element name for Generators registration.
public static string XName { get; }
Property Value
Methods
Build(LazyLinkedListNode<SyntaxPiece>, List<INcDependency>, NcDiagnosticProgress)
Build syntax arrangement into the
syntaxPieceNode in-place.
public void Build(LazyLinkedListNode<SyntaxPiece> syntaxPieceNode, List<INcDependency> ncDependencyList, NcDiagnosticProgress ncDiagnosticProgress)
Parameters
syntaxPieceNodeLazyLinkedListNode<SyntaxPiece>ncDependencyListList<INcDependency>ncDiagnosticProgressNcDiagnosticProgress
MakeXmlSource(string, string, bool)
Creates an XML representation of the object. This method may also generate additional resources such as related files.
public XElement MakeXmlSource(string baseDirectory, string relFile, bool exhibitionOnly)
Parameters
baseDirectorystringThe base directory for resolving relative paths
relFilestringThe relative file path for the XML source
exhibitionOnlyboolif true, the extended file creation is suppressed.
Returns
- XElement
An XML element representing the object's state
Remarks
For the demand of easy moving source folder (especially project folder) without configuration file path corruption, the relative file path is applied.
The baseDirectory is typically the folder at the nearest configuration file folder.
Since the folder can be moving with the configuration file.
Reg(XFactory)
Registers this type's deserializer with the given XFactory
(or Default when factory is
null). Idempotent.
public static void Reg(XFactory factory = null)
Parameters
factoryXFactory