Class FanucPositionVariableLookup
- Namespace
- Hi.NcParsers.Dependencys.Fanuc
- Assembly
- HiMech.dll
Fanuc-style position system variables read from the previous block's runtime-state JSON sections:
#5001-#5003Block-end position X/Y/Z (workpiece) → previous block's ProgramXyz.#5021-#5023Current machine position X/Y/Z → previous block's MachineCoordinateState.#5041-#5043Current absolute position X/Y/Z → previous block's ProgramXyz.
Stateless. Configured on
VariableEvaluatorSyntax.RuntimeVariableLookups rather than
NcDependencyList because the read needs the block node for
Previous access — there is no
long-lived dependency object that owns this data.
public sealed class FanucPositionVariableLookup : IRuntimeVariableLookup
- Inheritance
-
FanucPositionVariableLookup
- Implements
- Inherited Members
- Extension Methods
Fields
AbsoluteXyzBase
Inclusive lower bound of the absolute XYZ position range (#5041).
public const int AbsoluteXyzBase = 5041
Field Value
BlockEndXyzBase
Inclusive lower bound of the block-end XYZ position range (#5001).
public const int BlockEndXyzBase = 5001
Field Value
MachineCoordXyzBase
Inclusive lower bound of the machine-coordinate XYZ position range (#5021).
public const int MachineCoordXyzBase = 5021
Field Value
Methods
Get(string, LazyLinkedListNode<SyntaxPiece>, IReadOnlyList<INcDependency>)
Returns the value of the variable identified by key
in the context of node and
dependencies, or null if the key is outside
this lookup's range or the value is vacant.
public double? Get(string key, LazyLinkedListNode<SyntaxPiece> node, IReadOnlyList<INcDependency> dependencies)
Parameters
keystringnodeLazyLinkedListNode<SyntaxPiece>dependenciesIReadOnlyList<INcDependency>