using Bro.Common.Helper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static Bro.Common.Helper.EnumHelper;
namespace Bro.Common.Interface
{
///
/// 操作配置
///
public interface IOperationConfig : IOperationResult
{
/////
///// 结果输出 具体结果参照ConfigOutputAttribute特性指定的枚举
/////
//[ConfigOutput("")]
//int ResultOutput { get; set; }
/////
///// 该配置对应的工序编号
///// 考虑到多工序可能对应到同样的配置,工序编号不做固定赋值,在设备运作时随用随赋值
/////
//string ProcessId { get; set; }
/////
///// 参见枚举DeviceAttributeType,表示对应项目的配置是根据数据预置配置还是上道工序输出配置
///// 14 (2+4+8)表示全部采用上道工序输出配置
/////
//int ConfigPreset { get; set; }
/////
///// 该操作的设备配置 例如马达轴编号,马达速度等等
/////
//IDeviceConfig DeviceConfig { get; set; }
/////
///// 该操作所需要的设备外部输入配置 如按钮启动,外部传感器信号等等
/////
//IInputConfig InputConfig { get; set; }
/////
///// 暂时设想的一些不好归类的配置,使用json序列化之后保存在该字段
/////
//string DataConfg { get; set; }
//IOperationConfig Deserialize(string dataJson);
///
/// 发生异常时的重新尝试次数
///
int ReTryTimes { get; set; }
///
/// 输入参数
///
List InputPara { get; set; }
bool IsEnabled { get; set; }
///
/// 当异常发生时的异常反馈值
///
int ExceptionValue { get; set; }
//bool IsDemoMode { get; set; }
}
///
/// 向PLC报警配置的接口
///
public interface IPLCWarning
{
/////
///// 失败多少次后向PLC报警
/////
//int PLCWarningTimes { get; set; }
WarningFromPC WarningType { get; set; }
}
}