CAN和SV发送数据问题的修复,只发送速度到CAN
This commit is contained in:
@@ -54,106 +54,6 @@ namespace CapMachine.Wpf.Services
|
||||
|
||||
//实例化函数
|
||||
ListProExModel = new List<ProExModel>();
|
||||
#region 初始化程序执行模型
|
||||
//{
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="转速",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
// IsSpeed=true,
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="COND1温度",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="COND2温度",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="COND2压力",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="EVAP出口温度",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="排气压力",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="HV[V]",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="吸气压力",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="吸气温度",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="润滑油压力",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="LV[V]",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="OCR",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="OS1温度",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="OS2温度",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="PTC入口温度",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="PTC流量",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="PTC功率",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="环境湿度",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// },
|
||||
// new ProExModel(ProRunChannel){
|
||||
// MeterName="环境温度",
|
||||
// ListProStepExe=new List<ProStepExe>(),
|
||||
|
||||
// }
|
||||
//};
|
||||
|
||||
#endregion
|
||||
|
||||
//从变量集合中加载PLC转制的配置数据
|
||||
ListPlcLoadConfigCell = new List<PlcLoadConfigCell>();
|
||||
@@ -184,6 +84,8 @@ namespace CapMachine.Wpf.Services
|
||||
}
|
||||
}
|
||||
|
||||
SpeedProExModel= ListProExModel.FindFirst(a => a.MeterName.Contains("转速"));//转速执行模型
|
||||
|
||||
//SpeedRunEndEvent
|
||||
ListProExModel.FindFirst(a => a.MeterName.Contains("转速")).SpeedRunEndEvent += ProRuntimeService_SpeedRunEndEvent;
|
||||
|
||||
@@ -229,6 +131,12 @@ namespace CapMachine.Wpf.Services
|
||||
/// </summary>
|
||||
public List<ProExModel> ListProExModel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 转速执行模型
|
||||
/// 摘出来给界面展示用,因为速度的时间和步骤代表整个程序的时间和步骤
|
||||
/// </summary>
|
||||
public ProExModel SpeedProExModel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// PLC加载配置数据集合
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user