CAN 调度表同步 25002
This commit is contained in:
@@ -21,18 +21,21 @@ namespace CapMachine.Wpf.Services
|
||||
{
|
||||
|
||||
public HighSpeedDataService HighSpeedDataService { get; }
|
||||
public ILogService LogService { get; }
|
||||
public LogicRuleService LogicRuleService { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 实例化函数
|
||||
/// </summary>
|
||||
public CanDriveService(HighSpeedDataService highSpeedDataService, IContainerProvider containerProvider, LogicRuleService logicRuleService)
|
||||
public CanDriveService(HighSpeedDataService highSpeedDataService, IContainerProvider containerProvider, ILogService logService, LogicRuleService logicRuleService)
|
||||
{
|
||||
ToomossCanDrive = new ToomossCan(containerProvider);
|
||||
ToomossCanDrive = new ToomossCan(containerProvider, logService);
|
||||
//高速数据服务
|
||||
HighSpeedDataService = highSpeedDataService;
|
||||
LogService = logService;
|
||||
LogicRuleService = logicRuleService;
|
||||
|
||||
|
||||
//ToomossCanDrive.StartCanDrive();
|
||||
}
|
||||
|
||||
@@ -313,7 +316,7 @@ namespace CapMachine.Wpf.Services
|
||||
{
|
||||
if (CmdData.Count > 0)
|
||||
{
|
||||
|
||||
//把指令数据赋值给CAN 驱动
|
||||
ToomossCanDrive.CmdData = CmdData;
|
||||
|
||||
if (ToomossCanDrive.SchEnable)
|
||||
@@ -337,7 +340,7 @@ namespace CapMachine.Wpf.Services
|
||||
}
|
||||
ToomossCanDrive.ListCANScheduleConfig = ListCANScheduleConfig!;
|
||||
ToomossCanDrive.StartSchedule();
|
||||
ToomossCanDrive.StartCycleUpdateCmd();
|
||||
//ToomossCanDrive.StartCycleUpdateCmd();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user