Table of Contents

Class StateActRunner

Namespace
Hi.Numerical.Acts
Assembly
HiMech.dll

Manages the state of numerical control operations during runtime.

public class StateActRunner
Inheritance
StateActRunner
Inherited Members
Extension Methods

Properties

ActualDateTime

Absolute controller timestamp (wall-clock DateTime) of the step, kept alongside ActualTimecode so the calendar date is not lost. null if not set.

public DateTime? ActualDateTime { get; set; }

Property Value

DateTime?

ActualTimecode

Actual accumulated worked time. Actual Program time. Actual End Timecode. null if not set.

public TimeSpan? ActualTimecode { get; set; }

Property Value

TimeSpan?

CommandedClFeedrate_mmdmin

public double CommandedClFeedrate_mmdmin { get; set; }

Property Value

double

CommandedClFeedrate_mmds

The controller's commanded feedrate of the CL point in mm/sec, as last processed: the F word after G94/G95/G93 conversion, or for a rapid the CL path over the act duration (ActRapid). It describes the point the controller moves, not the equipped tool's tip: under RTCP with a tool-length offset that does not match the equipped tool the tip sweeps while the CL point may stand still, so this value is not the real tool-tip feedrate (ActualTipFeedrate_mmds).

public double CommandedClFeedrate_mmds { get; set; }

Property Value

double

CoolantMode

Current coolant delivery mode as last-seen ActCooling. Updated by ProcAct(IAct).

public CoolantMode CoolantMode { get; set; }

Property Value

CoolantMode

Data

State external data.

public Dictionary<string, object> Data { get; set; }

Property Value

Dictionary<string, object>

EndTimecode

Ideal accumulated worked time by simulation. Ideal Program time. The value includes last action duration.

public TimeSpan EndTimecode { get; set; }

Property Value

TimeSpan

IsCoolantOn

Legacy convenience flag. True for Flood / Mist; false for Off / UnDefined.

public bool IsCoolantOn { get; set; }

Property Value

bool

IsRapid

Whether the last processed feedrate act was a rapid traverse (ActRapid): the motion acts that follow it, up to the next ActFeedrate, are G00 moves at CommandedClFeedrate_mmds. False before the first feedrate act and after ResetState().

public bool IsRapid { get; }

Property Value

bool

SpindleAngle_deg

Spindle rotation angle in degrees.

public double SpindleAngle_deg { get; set; }

Property Value

double

SpindleAngle_rad

Spindle rotation angle in radians.

public double SpindleAngle_rad { get; set; }

Property Value

double

SpindleDirection

Gets or sets the spindle rotation direction.

public SpindleDirection SpindleDirection { get; set; }

Property Value

SpindleDirection

SpindleSpeed_radds

Gets or sets the spindle speed in radians per second.

public double SpindleSpeed_radds { get; set; }

Property Value

double

SpindleSpeed_rpm

Gets or sets the spindle speed in revolutions per minute.

public double SpindleSpeed_rpm { get; set; }

Property Value

double

ToolId

Gets or sets the current tool identifier.

public int ToolId { get; set; }

Property Value

int

Methods

ProcAct(IAct)

filter the same effect action and run the effective action.

public IAct ProcAct(IAct act)

Parameters

act IAct

Returns

IAct

null if the input act is the same effect action. otherwise, return act.

ResetState()

Resets all state values to their defaults.

public void ResetState()