Click or drag to resize

KM_Interpreter Class

Interpreter class representing the GCodeInterpreter.cpp object from the C++ Dynotion Code Use to control multiple axis motion from the NIST RS274 Interpreter
Inheritance Hierarchy
SystemObject
  KMotion_dotNetKM_Interpreter

Namespace: KMotion_dotNet
Assembly: KMotion_dotNet (in KMotion_dotNet.dll) Version: 1.0.1.0 (1.0.1.0)
Syntax
public class KM_Interpreter : IDisposable

The KM_Interpreter type exposes the following members.

Constructors
 NameDescription
Public methodKM_Interpreter Primary constructor for the KM_Interpreter object
Top
Properties
 NameDescription
Public propertyCanResume Enables Resuming after a Halt or Tool Change
Public propertyHandle CCoordMotion class instance pointer
Public propertyInitializeOnExecute Specifies whether or not the Interpreter should be intialized before execution
Public propertyInterpretThreadID The Worker Thread ID of the GCode Interpreter
Public propertyInvokeThreadID The Worker Thread ID of the GCode Interpreter Invoke Action
Public propertyIsAbort Returns true if the CoordMotion is aborting
Public propertyIsHalt Returns true if the CoordMotion is halted
Public propertyLoaded Flag to determine that this object has been properly initialized
Public propertyMaxErrorLength Maximum allowed return error string length
Public propertyReadToolFile Specifies whether or not the Interpreter should read the Tool file before execution
Public propertyResumeDoSafeFeedZ specifies if the Z should then be fed down to some height
Public propertyResumeFeedRate Specifies Rate at which feed rate should be restored to before continuing GCode
Public propertyResumeFeedSafeZ Specifies height Z should be fed down to
Public propertyResumeMoveToSafeZ Specifies whether or not the Z should be first moved up
Public propertyResumeRestoreFeedRate Specifies whether or not the specified feed rate should be restored
Public propertyResumeSafeRelAbs Specifies if the Z heights are Absolute or Relative
Public propertyResumeSafeSpindleCWCCW Specifies Spindle direction if it is to be re-started
Public propertyResumeSafeStartSpindle Specifies if the Spindle should be re-started
Public propertyResumeSafeZ Safe Z height to be raised to.
Public propertyResumeTraverseSafeX Position in X on Resume
Public propertyResumeTraverseSafeY Position in Y on Resume
Public propertyResumeTraverseXY Specifies whether it is OK to move back to an XY position
Public propertyResumeZFeedRate Specifies Rate at which Z feed rate should be set at
Public propertySetupFile File path for the EMC setup parameters
Public propertySetupParams Direct Access to the EMC Setup Parameters Use caution when setting any of these properties during run
Public propertyToolFile File path for the EMC style Tool File
Public propertyVarsFile File path for the EMC Vars file
Top
Methods
 NameDescription
Public methodAbort Abort Intpreter Execution
Public methodChangeFixtureNumber Set the current fixture
Public methodConvertAbsoluteToInterpreterCoord Convert Absolute to Interpreter Coordinates
Public methodConvertAbsoluteToMachine Convert Absolute to Machine Coordinates
Public methodConvertAbsToUserUnitsA Takes ABS "A" value and translates to Iterpreter User Units
Public methodConvertAbsToUserUnitsB Takes ABS "B" value and translates to Iterpreter User Units
Public methodConvertAbsToUserUnitsC Takes ABS "C" value and translates to Iterpreter User Units
Public methodConvertAbsToUserUnitsX Takes ABS "X" value and translates to Iterpreter User Units
Public methodConvertAbsToUserUnitsY Takes ABS "Y" value and translates to Iterpreter User Units
Public methodConvertAbsToUserUnitsZ Takes ABS "Z" value and translates to Iterpreter User Units
Public methodDispose Releases the object resources
Public methodDoExecute Internal Use only?
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExecutePC Calling this spawns a Windows PC Application by the specified name
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Protected methodGet_CanResume Get KM_Interpreter possible to resume after a halt
Public methodGet_InterpretWin32ThreadID Return the current Thread ID as a Win32 Identifier useful in comparing Thead IDs with Interpreter Worker Thread
Protected methodGet_ResumeDoSafeFeedZ Get KM_Interpreter Safe Resume Z Feed to be performed
Protected methodGet_ResumeFeedRate Get KM_Interpreter Safe Resume Feed Rate to be used
Protected methodGet_ResumeFeedSafeZ Get KM_Interpreter Safe Resume Z Feed Rate to be used
Protected methodGet_ResumeMoveToSafeZ Get KM_Interpreter Safe Z Motion to be performed or not
Protected methodGet_ResumeRestoreFeedRate Get KM_Interpreter Safe Resume Feed Rate to be restored or not
Protected methodGet_ResumeSafeRelAbs Get KM_Interpreter Safe Z Motion Relative vs Absolute setting 1=abs 0=rel
Protected methodGet_ResumeSafeSpindleCWCCW Get KM_Interpreter Safe Resume Start Spindle Direction to be performed
Protected methodGet_ResumeSafeStartSpindle Get KM_Interpreter Safe Resume Start Spindle to be performed
Protected methodGet_ResumeSafeZ Get KM_Interpreter Safe Z height for Resume sequence
Protected methodGet_ResumeTraverseSafeX Get KM_Interpreter XY Traverse Safe Motion to be performed
Protected methodGet_ResumeTraverseSafeY Get KM_Interpreter Traverse Safe Motion Y Position
Protected methodGet_ResumeTraverseXY Get KM_Interpreter XY Traverse Motion to be performed
Protected methodGet_ResumeZFeedRate Get KM_Interpreter Safe Resume Z Feed Rate to be used
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetIsAbort KM_Interpreter Abort Condition
Protected methodGetIsHalt KM_Interpreter Halt Condition
Public methodGetMcodeAction Gets an MCode Action definition
Public methodGetOrigin Gets the Origin offset
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodHalt Halt Intpreter Execution
Public methodInchesToUserUnits Takes in an inch value and returns the value in Interpreter's current units
Public methodInitializeInterpreter Resets the interpreter params to the inital state
Public methodInterpret(String) Interpret an entire File
Public methodInterpret(String, Int32, Int32, Int32) Interpret a File with the functionality to only interpret a portion of the file (useful for resuming execution after a program stoppage)
Public methodInvokeAction Invokes a preset "Action" Will need clarification on how to setup these Actions
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodReadAndSynchCurInterpreterPosition Syncronizes the Interpreter Position to the current Axes Positions
Public methodReadCurInterpreterPosition Syncronizes the Interpreter Position to the current Axes Positions
Public methodReadCurMachinePosition Read Hardware and convert to Absolute Machine Coordinates
Protected methodSet_CanResume Set KM_Interpreter possible to resume after a halt
Protected methodSet_ResumeDoSafeFeedZ Set KM_Interpreter Safe Resume Z Feed to be performed
Protected methodSet_ResumeFeedRate Set KM_Interpreter Safe Resume Feed Rate to be used
Protected methodSet_ResumeFeedSafeZ Set KM_Interpreter Safe Resume Z Feed Rate to be used
Protected methodSet_ResumeMoveToSafeZ Set KM_Interpreter Safe Z Motion to be performed
Protected methodSet_ResumeRestoreFeedRate Set KM_Interpreter Safe Resume Feed Rate to be restored or not
Protected methodSet_ResumeSafeRelAbs Set KM_Interpreter Safe Z Motion Relative vs Absolute setting 1=abs 0=rel
Protected methodSet_ResumeSafeSpindleCWCCW Set KM_Interpreter Safe Resume Start Spindle Direction to be performed
Protected methodSet_ResumeSafeStartSpindle Set KM_Interpreter Safe Resume Start Spindle to be performed
Protected methodSet_ResumeSafeZ Set KM_Interpreter Safe Z height for Resume sequence
Protected methodSet_ResumeTraverseSafeX Set KM_Interpreter Traverse Safe Motion X Position
Protected methodSet_ResumeTraverseSafeY Set KM_Interpreter Traverse Safe Motion Y Position
Protected methodSet_ResumeTraverseXY Set KM_Interpreter XY Traverse Safe Motion to be performed
Protected methodSet_ResumeZFeedRate Set KM_Interpreter Safe Resume Z Feed Rate to be used
Public methodSetMcodeAction Sets an MCode Action definition
Public methodSetOrigin Sets the origin offset
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodUserUnitsToInches Takes in a value as Interpreter's current units and returns the value in Inches
Top
Events
 NameDescription
Public eventInterpreterCompleted Event handler to signal that Interpreter has completed
Public eventInterpreterStatusUpdated Event handler to signal that Interpreter Status has been updated
Public eventInterpreterUserCallbackRequested Event handler to signal that a User Callback has been issued Blocks interpretation until handled by subscriber(s)
Public eventInterpreterUserMCodeCallbackRequested Event handler to signal that a User MCode Callback has been issued Blocks interpretation until handled by subscriber(s)
Top
Fields
 NameDescription
Protected field_ErrorLength Maximum allowed return error string length
Protected field_InstanceHandle CCoordMotion class instance pointer
Protected field_Loaded Flag to determine that this object has been properly initialized
Protected field_SetupParams Direct Access to the EMC Setup Parameters Use caution when setting any of these properties during run
Protected fieldInterpreterCompletedHandler Internal Interpreter Complete callback handler for the GCodeInterpreter.cpp class this delegate for the callback prevents the Garbage Collector from releasing the unmanaged function pointer from being destroyed
Protected fieldInterpreterStatusUpdatedHandler Internal Interpreter Status callback handler for the GCodeInterpreter.cpp class this delegate for the callback prevents the Garbage Collector from releasing the unmanaged function pointer from being destroyed
Protected fieldInterpreterUserCallbackRequestedHandler Internal Interpreter UserCallback callback handler for the GCodeInterpreter.cpp class this delegate for the callback prevents the Garbage Collector from releasing the unmanaged function pointer from being destroyed
Protected fieldInterpreterUserMCodeCallbackRequestedHandler Internal Interpreter UserMcodeCallback callback handler for the GCodeInterpreter.cpp class this delegate for the callback prevents the Garbage Collector from releasing the unmanaged function pointer from being destroyed
Top
See Also