MachineRunState1移动到ProRuntimeService
This commit is contained in:
@@ -233,7 +233,7 @@ namespace CapMachine.Wpf.ViewModels
|
||||
{
|
||||
case "开始":
|
||||
//状态机运行 用状态机的状态判断逻辑
|
||||
if (this.SysRunServer.MachineRunState1.FireStart())
|
||||
if (this.ProRuntimeService.MachineRunState1.FireStart())
|
||||
{
|
||||
//程序步骤执行开始运行
|
||||
ProRuntimeService.StartProRun();
|
||||
@@ -247,7 +247,7 @@ namespace CapMachine.Wpf.ViewModels
|
||||
break;
|
||||
case "结束":
|
||||
//状态机结束 用状态机的状态判断逻辑
|
||||
if (this.SysRunServer.MachineRunState1.FireEnd())
|
||||
if (this.ProRuntimeService.MachineRunState1.FireEnd())
|
||||
{
|
||||
//程序步骤执行结束运行
|
||||
ProRuntimeService.EndProRun();
|
||||
@@ -277,7 +277,7 @@ namespace CapMachine.Wpf.ViewModels
|
||||
break;
|
||||
case "复位":
|
||||
//状态机 复位 用状态机的状态判断逻辑
|
||||
if (this.SysRunServer.MachineRunState1.FireReset())
|
||||
if (this.ProRuntimeService.MachineRunState1.FireReset())
|
||||
{
|
||||
//程序步骤执行结束运行
|
||||
ProRuntimeService.EndProRun();
|
||||
@@ -315,7 +315,7 @@ namespace CapMachine.Wpf.ViewModels
|
||||
case "暂停":
|
||||
|
||||
//状态机 暂停 用状态机的状态判断逻辑
|
||||
if (this.SysRunServer.MachineRunState1.FirePause())
|
||||
if (this.ProRuntimeService.MachineRunState1.FirePause())
|
||||
{
|
||||
//程序步骤执行暂停运行
|
||||
ProRuntimeService.PauseProRun();
|
||||
@@ -327,7 +327,7 @@ namespace CapMachine.Wpf.ViewModels
|
||||
break;
|
||||
case "继续":
|
||||
//状态机 继续 用状态机的状态判断逻辑
|
||||
if (this.SysRunServer.MachineRunState1.FireContinue())
|
||||
if (this.ProRuntimeService.MachineRunState1.FireContinue())
|
||||
{
|
||||
//程序步骤执行继续运行
|
||||
ProRuntimeService.ContinueProRun();
|
||||
|
||||
Reference in New Issue
Block a user