CAN 调度表同步 25002

This commit is contained in:
2026-01-05 21:42:25 +08:00
parent 74ddab2abd
commit cae76745e5
8 changed files with 1264 additions and 147 deletions

View File

@@ -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
{