C# 클래스 KFlopWebNC.Model.DeviceInteropHandler

파일 보기 프로젝트 열기: parhansson/KMotionX 1 사용 예제들

공개 메소드들

메소드 설명
CheckAllEnabled ( ) : void
CheckEnabledA ( ) : void

Query command to determine whether the A axis is enabled

CheckEnabledB ( ) : void

Query command to determine whether the B axis is enabled

CheckEnabledC ( ) : void

Query command to determine whether the C axis is enabled

CheckEnabledX ( ) : void

Query command to determine whether the X axis is enabled

CheckEnabledY ( ) : void

Query command to determine whether the Y axis is enabled

CheckEnabledZ ( ) : void

Query command to determine whether the Z axis is enabled

CreateA ( int channel, double movespeed, double jogspeed ) : void
CreateB ( int channel, double movespeed, double jogspeed ) : void
CreateC ( int channel, double movespeed, double jogspeed ) : void
CreateX ( int channel, double movespeed, double jogspeed ) : void
CreateY ( int channel, double movespeed, double jogspeed ) : void
CreateZ ( int channel, double movespeed, double jogspeed ) : void
CyclePause ( ) : void

Command dispatcher for pausing/unpausing the interpreter

CycleStart ( ) : void

Command dispatcher for interpreting a gcode file

DeviceInteropHandler ( ZoomBrowser browser ) : System
ExecuteMDI ( ) : void

Command dispatcher to execute a single RS274 command

GetCommandOptions ( ) : string

Helper method to generate MCode Actions for an HTML select element

GetEditorForCommand ( CommandData command, bool showindex, bool editname ) : string

Generates the specific editor for a Mcode Action command based on its type

InitAxis ( ) : void

This method will create/update individual axis objects based on the Interpreter axis settings

InitInterpreterData ( ) : void

This will update the Interpreter TP params, axis, offset, tools and MCode Actions from the data file

JogANegative ( ) : void

Command dispatcher to jog the A axis in negative direction

JogAPositive ( ) : void

Command dispatcher to jog the A axis in positive direction

JogBNegative ( ) : void

Command dispatcher to jog the B axis in negative direction

JogBPositive ( ) : void

Command dispatcher to jog the B axis in positive direction

JogCNegative ( ) : void

Command dispatcher to jog the C axis in negative direction

JogCPositive ( ) : void

Command dispatcher to jog the C axis in positive direction

JogXNegative ( ) : void

Command dispatcher to jog the X axis in negative direction

JogXPositive ( ) : void

Command dispatcher to jog the X axis in positive direction

JogYNegative ( ) : void

Command dispatcher to jog the Y axis in negative direction

JogYPositive ( ) : void

Command dispatcher to jog the Y axis in positive direction

JogZNegative ( ) : void

Command dispatcher to jog the Z axis in negative direction

JogZPositive ( ) : void

Command dispatcher to jog the Z axis in positive direction

LoadCommandEditor ( int start, int count ) : void

Transfers command data from the data file to the HTML within the supplied range of elements

LoadGcodeFile ( ) : void

Command dispatcher to open a file dialog and select the gcode file

LoadInterpreterAxisEditor ( ) : void

Updates the axis editor HTML from the data file

LoadInterpreterTPEditor ( ) : void

Updates the trajectory planner editor HTML from the data file

LoadOffsetEditor ( int start, int count ) : void

Transfers offset data from the data file to the HTML within the supplied range of elements

LoadToolEditor ( int start, int count ) : void

Transfers tool data from the data file to the HTML within the supplied range of elements

MoveA ( double position ) : void

Moves the A axis to a commanded position

MoveB ( double position ) : void

Moves the B axis to a commanded position

MoveC ( double position ) : void

Moves the C axis to a commanded position

MoveX ( double position ) : void

Moves the X axis to a commanded position

MoveY ( double position ) : void

Moves the Y axis to a commanded position

MoveZ ( double position ) : void

Moves the Z axis to a commanded position

NavigateToPage ( string pagename ) : void
RefreshInterpreterState ( ) : void

Forces an update of the interpreter display settings

ResetGcodeDisplay ( ) : void

Discovers the maximum display lines and loads the Gcode file into the display buffer

RewindProgram ( ) : void

Command dispatcher 'rewind' the interpreter file

RunFromLine ( ) : void

Command dispatcher to execute the gcode from a specific line

RunUserCommand ( int command ) : void

Command dispatcher to invoke a command via the interpreter buffer

SaveCommandEditor ( int start, int count ) : void

Updates the data file commands from the HTML document within the supplied range

SaveInterpreterAxisEditor ( ) : void

Updates the data file axis settings from the HTML document

SaveInterpreterData ( ) : void

Persists Interpreter data to the file

SaveInterpreterTPEditor ( ) : void

Updates the data file trajectory planner from the HTML document

SaveOffsetEditor ( int start, int count ) : void

Updates the data file offsets from the HTML document within the supplied range

SaveToolEditor ( int start, int count ) : void

Updates the data file tools from the HTML document within the supplied range

SetAxis ( string axisname, int channel, double movespeed, double jogspeed ) : void
SetCommandFileName ( int commandindex ) : void

Opens a file dialog and inserts the selection into the command's filename property

SetFeedRate ( double percent ) : void

Command dispatcher to set the Interpreter's feed rate override

SetJogPercentA ( double percent ) : void

Command dispatcher to update the A axis feedrate percentage

SetJogPercentB ( double percent ) : void

Command dispatcher to update the B axis feedrate percentage

SetJogPercentC ( double percent ) : void

Command dispatcher to update the C axis feedrate percentage

SetJogPercentX ( double percent ) : void

Command dispatcher to update the X axis feedrate percentage

SetJogPercentY ( double percent ) : void

Command dispatcher to update the Y axis feedrate percentage

SetJogPercentZ ( double percent ) : void

Command dispatcher to update the Z axis feedrate percentage

StartMonitor ( ) : void

Starts the monitor thread

StopA ( ) : void

Command dispatcher to stop A axis motion

StopB ( ) : void

Command dispatcher to stop B axis motion

StopC ( ) : void

Command dispatcher to stop C axis motion

StopInterpreter ( ) : void

Command dispatcher for halting the interpreter

StopMonitor ( ) : void

Stops the monitor thread

StopX ( ) : void

Command dispatcher to stop X axis motion

StopY ( ) : void

Command dispatcher to stop Y axis motion

StopZ ( ) : void

Command dispatcher to stop Z axis motion

ToggleBlockDelete ( ) : void

Command dispatcher to toggle whether the interpreter will skip escaped blocks

ToggleEnableA ( ) : void

Command dispatcher to enable/disable A

ToggleEnableB ( ) : void

Command dispatcher to enable/disable B

ToggleEnableC ( ) : void

Command dispatcher to enable/disable C

ToggleEnableX ( ) : void

Command dispatcher to enable/disable X

ToggleEnableY ( ) : void

Command dispatcher to enable/disable Y

ToggleEnableZ ( ) : void

Command dispatcher to enable/disable Z

ToggleSimulate ( ) : void

Command dispatcher to toggle whether the interpreter should simulate the file

UpdateAxisData ( ) : void

Updates the axis positions

UpdateBoadVersion ( ) : void

Updates the HTML element designated to display the kflop version

UpdateCommandButtonText ( int start, int count ) : void

Updates the button text for user commands within the supplied range of elements

UpdateConnectionStatus ( ) : void

Updates the HTML element designated to display the connection status

UpdateDocument ( Action action ) : void
UpdateFeedRate ( ) : void

Forces an update to the element designated

UpdateGcodeDisplay ( ) : void

Updates the designated gcode display dv with the current gcode being executed

UpdateJogRates ( ) : void

Forces the text of designated elements to display the jog override percentage for each axis

UpdateSecondaryControls ( ) : void

Updates the secondary controls that do not need to be updated as frequently

ZeroA ( ) : void

Command dispatcher to reset the A axis dest to 0.0

ZeroB ( ) : void

Command dispatcher to reset the B axis dest to 0.0

ZeroC ( ) : void

Command dispatcher to reset the C axis dest to 0.0

ZeroX ( ) : void

Command dispatcher to reset the X axis dest to 0.0

ZeroY ( ) : void

Command dispatcher to reset the Y axis dest to 0.0

ZeroZ ( ) : void

Command dispatcher to reset the Z axis dest to 0.0

_StatusMonitor_DoWork ( object sender, DoWorkEventArgs e ) : void

Updates the status objects from the board

비공개 메소드들

메소드 설명
InitDevice ( ) : void
Interpreter_InterpreterCompleted ( int status, int lineno, int sequence_number, string err ) : void
Interpreter_InterpreterStatusUpdated ( int lineno, string msg ) : void
Interpreter_InterpreterUserCallbackRequested ( string msg ) : void
Interpreter_InterpreterUserMCodeCallbackRequested ( int code ) : int
Interpreter_Interpreter_CoordMotionArcFeed ( bool ZeroLenAsFullCircles, double DesiredFeedRate_in_per_sec, int plane, double first_end, double second_end, double first_axis, double second_axis, int rotation, double axis_end_point, double first_start, double second_start, double axis_start_point, int sequence_number, int ID ) : void
Interpreter_Interpreter_CoordMotionStraightFeed ( double DesiredFeedRate_in_per_sec, double x, double y, double z, int sequence_number, int ID ) : void
Interpreter_Interpreter_CoordMotionStraightTraverse ( double x, double y, double z, int sequence_number ) : void
LoadUI ( ) : void
ValidateFolders ( ) : void
_Controller_ErrorReceived ( string message ) : void
_Controller_MessageUpdated ( string message ) : int
_GuiHost_DocumentCompleted ( object sender, WebBrowserDocumentCompletedEventArgs e ) : void
_GuiHost_DocumentTitleChanged ( object sender, EventArgs e ) : void
_GuiHost_Navigated ( object sender, WebBrowserNavigatedEventArgs e ) : void
_GuiHost_Navigating ( object sender, WebBrowserNavigatingEventArgs e ) : void

메소드 상세

CheckAllEnabled() 공개 메소드

public CheckAllEnabled ( ) : void
리턴 void

CheckEnabledA() 공개 메소드

Query command to determine whether the A axis is enabled
public CheckEnabledA ( ) : void
리턴 void

CheckEnabledB() 공개 메소드

Query command to determine whether the B axis is enabled
public CheckEnabledB ( ) : void
리턴 void

CheckEnabledC() 공개 메소드

Query command to determine whether the C axis is enabled
public CheckEnabledC ( ) : void
리턴 void

CheckEnabledX() 공개 메소드

Query command to determine whether the X axis is enabled
public CheckEnabledX ( ) : void
리턴 void

CheckEnabledY() 공개 메소드

Query command to determine whether the Y axis is enabled
public CheckEnabledY ( ) : void
리턴 void

CheckEnabledZ() 공개 메소드

Query command to determine whether the Z axis is enabled
public CheckEnabledZ ( ) : void
리턴 void

CreateA() 공개 메소드

public CreateA ( int channel, double movespeed, double jogspeed ) : void
channel int
movespeed double
jogspeed double
리턴 void

CreateB() 공개 메소드

public CreateB ( int channel, double movespeed, double jogspeed ) : void
channel int
movespeed double
jogspeed double
리턴 void

CreateC() 공개 메소드

public CreateC ( int channel, double movespeed, double jogspeed ) : void
channel int
movespeed double
jogspeed double
리턴 void

CreateX() 공개 메소드

public CreateX ( int channel, double movespeed, double jogspeed ) : void
channel int
movespeed double
jogspeed double
리턴 void

CreateY() 공개 메소드

public CreateY ( int channel, double movespeed, double jogspeed ) : void
channel int
movespeed double
jogspeed double
리턴 void

CreateZ() 공개 메소드

public CreateZ ( int channel, double movespeed, double jogspeed ) : void
channel int
movespeed double
jogspeed double
리턴 void

CyclePause() 공개 메소드

Command dispatcher for pausing/unpausing the interpreter
public CyclePause ( ) : void
리턴 void

CycleStart() 공개 메소드

Command dispatcher for interpreting a gcode file
public CycleStart ( ) : void
리턴 void

DeviceInteropHandler() 공개 메소드

public DeviceInteropHandler ( ZoomBrowser browser ) : System
browser ZoomBrowser
리턴 System

ExecuteMDI() 공개 메소드

Command dispatcher to execute a single RS274 command
public ExecuteMDI ( ) : void
리턴 void

GetCommandOptions() 공개 메소드

Helper method to generate MCode Actions for an HTML select element
public GetCommandOptions ( ) : string
리턴 string

GetEditorForCommand() 공개 메소드

Generates the specific editor for a Mcode Action command based on its type
public GetEditorForCommand ( CommandData command, bool showindex, bool editname ) : string
command CommandData command source to generate editor for
showindex bool flag to determine whether or not to create a p element displaying the command index
editname bool flag to determine whether the command name text is editable or not
리턴 string

InitAxis() 공개 메소드

This method will create/update individual axis objects based on the Interpreter axis settings
public InitAxis ( ) : void
리턴 void

InitInterpreterData() 공개 메소드

This will update the Interpreter TP params, axis, offset, tools and MCode Actions from the data file
public InitInterpreterData ( ) : void
리턴 void

JogANegative() 공개 메소드

Command dispatcher to jog the A axis in negative direction
public JogANegative ( ) : void
리턴 void

JogAPositive() 공개 메소드

Command dispatcher to jog the A axis in positive direction
public JogAPositive ( ) : void
리턴 void

JogBNegative() 공개 메소드

Command dispatcher to jog the B axis in negative direction
public JogBNegative ( ) : void
리턴 void

JogBPositive() 공개 메소드

Command dispatcher to jog the B axis in positive direction
public JogBPositive ( ) : void
리턴 void

JogCNegative() 공개 메소드

Command dispatcher to jog the C axis in negative direction
public JogCNegative ( ) : void
리턴 void

JogCPositive() 공개 메소드

Command dispatcher to jog the C axis in positive direction
public JogCPositive ( ) : void
리턴 void

JogXNegative() 공개 메소드

Command dispatcher to jog the X axis in negative direction
public JogXNegative ( ) : void
리턴 void

JogXPositive() 공개 메소드

Command dispatcher to jog the X axis in positive direction
public JogXPositive ( ) : void
리턴 void

JogYNegative() 공개 메소드

Command dispatcher to jog the Y axis in negative direction
public JogYNegative ( ) : void
리턴 void

JogYPositive() 공개 메소드

Command dispatcher to jog the Y axis in positive direction
public JogYPositive ( ) : void
리턴 void

JogZNegative() 공개 메소드

Command dispatcher to jog the Z axis in negative direction
public JogZNegative ( ) : void
리턴 void

JogZPositive() 공개 메소드

Command dispatcher to jog the Z axis in positive direction
public JogZPositive ( ) : void
리턴 void

LoadCommandEditor() 공개 메소드

Transfers command data from the data file to the HTML within the supplied range of elements
public LoadCommandEditor ( int start, int count ) : void
start int beginning command to load
count int last command to update
리턴 void

LoadGcodeFile() 공개 메소드

Command dispatcher to open a file dialog and select the gcode file
public LoadGcodeFile ( ) : void
리턴 void

LoadInterpreterAxisEditor() 공개 메소드

Updates the axis editor HTML from the data file
public LoadInterpreterAxisEditor ( ) : void
리턴 void

LoadInterpreterTPEditor() 공개 메소드

Updates the trajectory planner editor HTML from the data file
public LoadInterpreterTPEditor ( ) : void
리턴 void

LoadOffsetEditor() 공개 메소드

Transfers offset data from the data file to the HTML within the supplied range of elements
public LoadOffsetEditor ( int start, int count ) : void
start int beginning offset to load
count int last offset to load
리턴 void

LoadToolEditor() 공개 메소드

Transfers tool data from the data file to the HTML within the supplied range of elements
public LoadToolEditor ( int start, int count ) : void
start int beginning tool to load
count int last tool to load
리턴 void

MoveA() 공개 메소드

Moves the A axis to a commanded position
public MoveA ( double position ) : void
position double new position to move axis to
리턴 void

MoveB() 공개 메소드

Moves the B axis to a commanded position
public MoveB ( double position ) : void
position double new position to move axis to
리턴 void

MoveC() 공개 메소드

Moves the C axis to a commanded position
public MoveC ( double position ) : void
position double new position to move axis to
리턴 void

MoveX() 공개 메소드

Moves the X axis to a commanded position
public MoveX ( double position ) : void
position double new position to move axis to
리턴 void

MoveY() 공개 메소드

Moves the Y axis to a commanded position
public MoveY ( double position ) : void
position double new position to move axis to
리턴 void

MoveZ() 공개 메소드

Moves the Z axis to a commanded position
public MoveZ ( double position ) : void
position double new position to move axis to
리턴 void

NavigateToPage() 공개 메소드

public NavigateToPage ( string pagename ) : void
pagename string
리턴 void

RefreshInterpreterState() 공개 메소드

Forces an update of the interpreter display settings
public RefreshInterpreterState ( ) : void
리턴 void

ResetGcodeDisplay() 공개 메소드

Discovers the maximum display lines and loads the Gcode file into the display buffer
public ResetGcodeDisplay ( ) : void
리턴 void

RewindProgram() 공개 메소드

Command dispatcher 'rewind' the interpreter file
public RewindProgram ( ) : void
리턴 void

RunFromLine() 공개 메소드

Command dispatcher to execute the gcode from a specific line
public RunFromLine ( ) : void
리턴 void

RunUserCommand() 공개 메소드

Command dispatcher to invoke a command via the interpreter buffer
public RunUserCommand ( int command ) : void
command int command to to run contained in the Mcode Action list
리턴 void

SaveCommandEditor() 공개 메소드

Updates the data file commands from the HTML document within the supplied range
public SaveCommandEditor ( int start, int count ) : void
start int beginning command to save
count int last command to update
리턴 void

SaveInterpreterAxisEditor() 공개 메소드

Updates the data file axis settings from the HTML document
public SaveInterpreterAxisEditor ( ) : void
리턴 void

SaveInterpreterData() 공개 메소드

Persists Interpreter data to the file
public SaveInterpreterData ( ) : void
리턴 void

SaveInterpreterTPEditor() 공개 메소드

Updates the data file trajectory planner from the HTML document
public SaveInterpreterTPEditor ( ) : void
리턴 void

SaveOffsetEditor() 공개 메소드

Updates the data file offsets from the HTML document within the supplied range
public SaveOffsetEditor ( int start, int count ) : void
start int beginning offset to save
count int last offset to update
리턴 void

SaveToolEditor() 공개 메소드

Updates the data file tools from the HTML document within the supplied range
public SaveToolEditor ( int start, int count ) : void
start int beginning tool to save
count int last tool to update
리턴 void

SetAxis() 공개 메소드

public SetAxis ( string axisname, int channel, double movespeed, double jogspeed ) : void
axisname string
channel int
movespeed double
jogspeed double
리턴 void

SetCommandFileName() 공개 메소드

Opens a file dialog and inserts the selection into the command's filename property
public SetCommandFileName ( int commandindex ) : void
commandindex int command to set file name for
리턴 void

SetFeedRate() 공개 메소드

Command dispatcher to set the Interpreter's feed rate override
public SetFeedRate ( double percent ) : void
percent double
리턴 void

SetJogPercentA() 공개 메소드

Command dispatcher to update the A axis feedrate percentage
public SetJogPercentA ( double percent ) : void
percent double percentage to derive jog speed
리턴 void

SetJogPercentB() 공개 메소드

Command dispatcher to update the B axis feedrate percentage
public SetJogPercentB ( double percent ) : void
percent double percentage to derive jog speed
리턴 void

SetJogPercentC() 공개 메소드

Command dispatcher to update the C axis feedrate percentage
public SetJogPercentC ( double percent ) : void
percent double percentage to derive jog speed
리턴 void

SetJogPercentX() 공개 메소드

Command dispatcher to update the X axis feedrate percentage
public SetJogPercentX ( double percent ) : void
percent double percentage to derive jog speed
리턴 void

SetJogPercentY() 공개 메소드

Command dispatcher to update the Y axis feedrate percentage
public SetJogPercentY ( double percent ) : void
percent double percentage to derive jog speed
리턴 void

SetJogPercentZ() 공개 메소드

Command dispatcher to update the Z axis feedrate percentage
public SetJogPercentZ ( double percent ) : void
percent double percentage to derive jog speed
리턴 void

StartMonitor() 공개 메소드

Starts the monitor thread
public StartMonitor ( ) : void
리턴 void

StopA() 공개 메소드

Command dispatcher to stop A axis motion
public StopA ( ) : void
리턴 void

StopB() 공개 메소드

Command dispatcher to stop B axis motion
public StopB ( ) : void
리턴 void

StopC() 공개 메소드

Command dispatcher to stop C axis motion
public StopC ( ) : void
리턴 void

StopInterpreter() 공개 메소드

Command dispatcher for halting the interpreter
public StopInterpreter ( ) : void
리턴 void

StopMonitor() 공개 메소드

Stops the monitor thread
public StopMonitor ( ) : void
리턴 void

StopX() 공개 메소드

Command dispatcher to stop X axis motion
public StopX ( ) : void
리턴 void

StopY() 공개 메소드

Command dispatcher to stop Y axis motion
public StopY ( ) : void
리턴 void

StopZ() 공개 메소드

Command dispatcher to stop Z axis motion
public StopZ ( ) : void
리턴 void

ToggleBlockDelete() 공개 메소드

Command dispatcher to toggle whether the interpreter will skip escaped blocks
public ToggleBlockDelete ( ) : void
리턴 void

ToggleEnableA() 공개 메소드

Command dispatcher to enable/disable A
public ToggleEnableA ( ) : void
리턴 void

ToggleEnableB() 공개 메소드

Command dispatcher to enable/disable B
public ToggleEnableB ( ) : void
리턴 void

ToggleEnableC() 공개 메소드

Command dispatcher to enable/disable C
public ToggleEnableC ( ) : void
리턴 void

ToggleEnableX() 공개 메소드

Command dispatcher to enable/disable X
public ToggleEnableX ( ) : void
리턴 void

ToggleEnableY() 공개 메소드

Command dispatcher to enable/disable Y
public ToggleEnableY ( ) : void
리턴 void

ToggleEnableZ() 공개 메소드

Command dispatcher to enable/disable Z
public ToggleEnableZ ( ) : void
리턴 void

ToggleSimulate() 공개 메소드

Command dispatcher to toggle whether the interpreter should simulate the file
public ToggleSimulate ( ) : void
리턴 void

UpdateAxisData() 공개 메소드

Updates the axis positions
public UpdateAxisData ( ) : void
리턴 void

UpdateBoadVersion() 공개 메소드

Updates the HTML element designated to display the kflop version
public UpdateBoadVersion ( ) : void
리턴 void

UpdateCommandButtonText() 공개 메소드

Updates the button text for user commands within the supplied range of elements
public UpdateCommandButtonText ( int start, int count ) : void
start int beginning button to update
count int last button to update
리턴 void

UpdateConnectionStatus() 공개 메소드

Updates the HTML element designated to display the connection status
public UpdateConnectionStatus ( ) : void
리턴 void

UpdateDocument() 공개 메소드

public UpdateDocument ( Action action ) : void
action Action
리턴 void

UpdateFeedRate() 공개 메소드

Forces an update to the element designated
public UpdateFeedRate ( ) : void
리턴 void

UpdateGcodeDisplay() 공개 메소드

Updates the designated gcode display dv with the current gcode being executed
public UpdateGcodeDisplay ( ) : void
리턴 void

UpdateJogRates() 공개 메소드

Forces the text of designated elements to display the jog override percentage for each axis
public UpdateJogRates ( ) : void
리턴 void

UpdateSecondaryControls() 공개 메소드

Updates the secondary controls that do not need to be updated as frequently
public UpdateSecondaryControls ( ) : void
리턴 void

ZeroA() 공개 메소드

Command dispatcher to reset the A axis dest to 0.0
public ZeroA ( ) : void
리턴 void

ZeroB() 공개 메소드

Command dispatcher to reset the B axis dest to 0.0
public ZeroB ( ) : void
리턴 void

ZeroC() 공개 메소드

Command dispatcher to reset the C axis dest to 0.0
public ZeroC ( ) : void
리턴 void

ZeroX() 공개 메소드

Command dispatcher to reset the X axis dest to 0.0
public ZeroX ( ) : void
리턴 void

ZeroY() 공개 메소드

Command dispatcher to reset the Y axis dest to 0.0
public ZeroY ( ) : void
리턴 void

ZeroZ() 공개 메소드

Command dispatcher to reset the Z axis dest to 0.0
public ZeroZ ( ) : void
리턴 void

_StatusMonitor_DoWork() 공개 메소드

Updates the status objects from the board
public _StatusMonitor_DoWork ( object sender, DoWorkEventArgs e ) : void
sender object background worker's dispatch object
e DoWorkEventArgs background worker arguments
리턴 void