LIN 调度表配置初版,初步可以运行
This commit is contained in:
@@ -358,6 +358,7 @@ namespace CapMachine.Wpf.Services
|
||||
{
|
||||
if (ToomossLinDrive.OpenState)
|
||||
{
|
||||
//来回取反设置
|
||||
if (ToomossLinDrive.IsCycleSend == false)
|
||||
{
|
||||
if (CmdData.Count > 0)
|
||||
@@ -388,10 +389,11 @@ namespace CapMachine.Wpf.Services
|
||||
|
||||
ToomossLinDrive.ListLINScheduleConfig = ListLINScheduleConfig!;
|
||||
ToomossLinDrive.StartSchedule();
|
||||
ToomossLinDrive.StartCycleUpdateCmd();
|
||||
//ToomossLinDrive.StartCycleUpdateCmd();
|
||||
}
|
||||
else
|
||||
{
|
||||
//使用软件调度发送数据
|
||||
ToomossLinDrive.StartPrecisionCycleSendMsg();
|
||||
//ToomossCanDrive.StartCycleSendMsg();
|
||||
}
|
||||
@@ -407,6 +409,11 @@ namespace CapMachine.Wpf.Services
|
||||
else
|
||||
{
|
||||
ToomossLinDrive.IsCycleSend = false;
|
||||
//如果是调度表的话,需要关闭调度表
|
||||
if (ToomossLinDrive.SchEnable)
|
||||
{
|
||||
ToomossLinDrive.StopSchedule();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user