Files
CapMachine/CapMachine.Wpf/Models/ProModelPars/ProStepExe.cs
2025-04-27 17:50:57 +08:00

172 lines
5.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using CapMachine.Model;
using CapMachine.Wpf.Dtos;
using Prism.Mvvm;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CapMachine.Wpf.Models.ProModelPars
{
/// <summary>
/// 程序分解后的执行步骤
/// </summary>
public class ProStepExe : BindableBase
{
/// <summary>
/// 程序段名称
/// </summary>
public string? ProSegName { get; set; }
/// <summary>
/// 程序段步骤
/// </summary>
public int ProSegStep { get; set; }
/// <summary>
/// 程序段重复执行次数
/// </summary>
public int ProSegRepeat { get; set; }
/// <summary>
/// 程序段当前是否执行中
/// </summary>
public bool ProSegIsExeing { get; set; }
/////////////////////////////////////////////////////////////////
////////////////////////程序步骤///////////////////////////////
////////////////////////////////////////////////////////////////
///// <summary>
///// 程序步骤标记
///// </summary>
//public StepPosMark StepPosMark { get; set; }
/// <summary>
/// 仪表参数当前是否执行中
/// </summary>
public bool MeterStepIsExeing { get; set; }
/// <summary>
/// 仪表参数是否执行完成
/// </summary>
public bool MeterStepIsOK { get; set; }
/// <summary>
/// 仪表参数名称
/// </summary>
public string? MeterName { get; set; }
/// <summary>
/// 仪表参数步骤
/// </summary>
public int MeterStep { get; set; }
private string? _ProStepInfo;
/// <summary>
/// 这个步骤是打开具体设置步骤界面的那个层面的信息例如2-3,代表是程序2里面的仪表步骤3方便调试和给液击使用
/// </summary>
public string? ProStepInfo
{
get { return _ProStepInfo; }
set { _ProStepInfo = value;RaisePropertyChanged(); }
}
private string? _ProStep;
/// <summary>
/// 程序步骤的步骤信息
/// 比如例如2-3里面的2步骤信息就是大步骤的信息
/// </summary>
public string? ProStep
{
get { return _ProStep; }
set { _ProStep = value; RaisePropertyChanged(); }
}
/// <summary>
///步骤执行的信息
/// 0->8000
/// [00:00:12]
/// </summary>
public string? StepExeInfo { get; set; }
///// <summary>
///// 启用状态-没有启用就是什么数据都没有
///// Const-常值-常值StepValue有值只有一个步骤CycleTime为0
///// MultisStep-有步骤细节-此时在一个仪表下就会有很多步骤的细节数据
///// </summary>
//public ConfigValueType ConfigState { get; set; }
/// <summary>
/// StartSV- 步骤的开始SV
/// 最终的写到PLC结果值经过进制转换
/// </summary>
public int StartSV { get; set; }
/// <summary>
/// EndSV- 步骤的目标SV
/// 最终的写到PLC结果值经过进制转换
/// </summary>
public int EndSV { get; set; }
/// <summary>
/// KeepTime Sec
/// </summary>
public int KeepTime { get; set; }
/// <summary>
/// 是否启用坡度
/// 存在斜坡容易判断,非斜坡是常值
/// 常值有两种情况:
/// 一个是设置时就直接设定为常值,
/// 另一个是斜率步骤里面比如起始8000结束9000那么也是常值,因为当前模型是拆分详细之后的,他可以判断详细步骤的斜坡信息
/// </summary>
public bool ExistSlop { get; set; }
///// <summary>
///// 时间-秒-斜坡时间
///// </summary>
//public int SlopTimeSec { get; set; }
/// <summary>
/// PIDNo
/// </summary>
public int PIDNo { get; set; }
/// <summary>
/// PID的配置信息
/// </summary>
public ConfigPIDDto? CurConfigPIDDto { get; set; }
/// <summary>
/// LimitNo
/// </summary>
public int LimitNo { get; set; }
/// <summary>
/// AlarmNo的配置信息
/// </summary>
public ConfigLimitDto? CurConfigLimitDto { get; set; }
/// <summary>
/// AlarmNo
/// </summary>
public int AlarmNo { get; set; }
/// <summary>
/// AlarmNo的配置信息
/// </summary>
public ConfigAlarmDto? CurConfigAlarmDto { get; set; }
/// <summary>
/// 拓展参数集合
/// 比如:速度参数拓展的输出锁定、吸排气阀,压缩机使能等这些拓展参数
/// 也可以是其他参数附带的拓展信息
/// </summary>
public List<StepExd>? ListStepExd { get; set; }
}
}