Class UpdateAlarmDefinitonArgs
更新报警条目参数
Inheritance
System.Object
UpdateAlarmDefinitonArgs
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: FBoxClientDriver.Contract
Assembly: FBoxClientDriver.Contract.dll
Syntax
public class UpdateAlarmDefinitonArgs
Constructors
UpdateAlarmDefinitonArgs()
无参构造函数
Declaration
public UpdateAlarmDefinitonArgs()
UpdateAlarmDefinitonArgs(String, Int64, Int64, Int32, Int32, Int32, Int32, Int32, DataType, DataWidth, AlarmConditionType, AlarmConditionType, Decimal, Decimal, String, AlarmConditionCombineMethod, Int32, Int32, Int32)
多条件触发构造函数
Declaration
public UpdateAlarmDefinitonArgs(string boxNo, long alarmDefUid, long alarmGroupUid, int serviceId, int portNo, int stationNo, int deviceId, int regId, DataType dataType, DataWidth regWidth, AlarmConditionType condition1, AlarmConditionType condition2, decimal operand1, decimal operand2, string alarmMessage, AlarmConditionCombineMethod conditionCombineMethod, int mainAddress, int subIndex, int subAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | boxNo | 盒子编码 |
System.Int64 | alarmDefUid | 报警条目UID |
System.Int64 | alarmGroupUid | 报警组别UID |
System.Int32 | serviceId | 服务ID |
System.Int32 | portNo | |
System.Int32 | stationNo | 站号 |
System.Int32 | deviceId | 设备ID |
System.Int32 | regId | 寄存器ID |
DataType | dataType | 数据类型 |
DataWidth | regWidth | 地址宽度 |
AlarmConditionType | condition1 | 条件一,若选择bit数据类型,bit为ON:条件一EQ |
AlarmConditionType | condition2 | 条件二 |
System.Decimal | operand1 | 若选择bit数据类型,bit为ON:条件一为1,bit为OFF:条件一为0 |
System.Decimal | operand2 | 若选择bit数据类型,条件二为0,若不采用组合条件,条件二传入0 |
System.String | alarmMessage | 报警信息 |
AlarmConditionCombineMethod | conditionCombineMethod | 组合条件 |
System.Int32 | mainAddress | 主地址 |
System.Int32 | subIndex | 子地址索引 |
System.Int32 | subAddress | 子地址 |
UpdateAlarmDefinitonArgs(String, Int64, Int64, Int32, Int32, Int32, Int32, Int32, DataType, DataWidth, AlarmConditionType, Decimal, AlarmConditionCombineMethod, String, Int32, Int32, Int32)
单条件触发构造函数
Declaration
public UpdateAlarmDefinitonArgs(string boxNo, long alarmDefUid, long alarmGroupUid, int serviceId, int portNo, int stationNo, int deviceId, int regId, DataType dataType, DataWidth regWidth, AlarmConditionType condition1, decimal operand1, AlarmConditionCombineMethod conditionCombineMethod, string alarmMessage, int mainAddress, int subAddress, int subIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | boxNo | 盒子编码 |
System.Int64 | alarmDefUid | 报警条目UID |
System.Int64 | alarmGroupUid | 报警组别UID |
System.Int32 | serviceId | 服务ID |
System.Int32 | portNo | |
System.Int32 | stationNo | 站号 |
System.Int32 | deviceId | 设备ID |
System.Int32 | regId | 寄存器ID |
DataType | dataType | 数据类型 |
DataWidth | regWidth | 地址宽度 |
AlarmConditionType | condition1 | 条件一,若选择bit数据类型,bit为ON:条件一EQ |
System.Decimal | operand1 | 若选择bit数据类型,bit为ON:条件一为1,bit为OFF:条件一为0 |
AlarmConditionCombineMethod | conditionCombineMethod | 组合条件 |
System.String | alarmMessage | 报警信息 |
System.Int32 | mainAddress | 主地址 |
System.Int32 | subAddress | 子地址 |
System.Int32 | subIndex | 子地址索引 |
Properties
AlarmDefUid
报警条目UID
Declaration
public long AlarmDefUid { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
AlarmGroupUid
报警组别UID
Declaration
public long AlarmGroupUid { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
AlarmMessage
报警信息
Declaration
public string AlarmMessage { get; set; }
Property Value
Type | Description |
---|---|
System.String |
BoxNo
盒子编码
Declaration
public string BoxNo { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Condition1
条件一
Declaration
public AlarmConditionType Condition1 { get; set; }
Property Value
Type | Description |
---|---|
AlarmConditionType |
Condition2
条件二
Declaration
public AlarmConditionType Condition2 { get; set; }
Property Value
Type | Description |
---|---|
AlarmConditionType |
ConditionCombineMethod
参数连接类型
Declaration
public AlarmConditionCombineMethod ConditionCombineMethod { get; set; }
Property Value
Type | Description |
---|---|
AlarmConditionCombineMethod |
DataType
数据类型
Declaration
public DataType DataType { get; set; }
Property Value
Type | Description |
---|---|
DataType |
DeviceId
设备ID
Declaration
public int DeviceId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
MainAddress
主地址
Declaration
public int MainAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Memo
备注
Declaration
public string Memo { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Operand1
操作数一
Declaration
public decimal Operand1 { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
Operand2
操作数二
Declaration
public decimal Operand2 { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
PortNo
Declaration
public int PortNo { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RegId
寄存器ID
Declaration
public int RegId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
RegWidth
地址宽度
Declaration
public DataWidth RegWidth { get; set; }
Property Value
Type | Description |
---|---|
DataWidth |
ServiceId
服务ID
Declaration
public int ServiceId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
StationNo
站号
Declaration
public int StationNo { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SubAddress
子地址
Declaration
public int SubAddress { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SubIndex
子地址索引
Declaration
public int SubIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |