SuZhouZhanFang/suzhou-iot-service/DataAcquisition/Model/ModbusPoint.cs

57 lines
1.6 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 System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DataAcquisition.Model
{
public class ModbusPoint
{
public int Id { get; set; }
public string Name { get; set; }
public string EnglishName { get; set; }
public string Address { get; set; } = "0";
public string FunctionCode { get; set; } = "03";
public string Pattern { get; set; } = "R";
public string DataType { get; set; } = "ushort";
public string ByteOrder { get; set; } = "ABCD";
public float Magnification { get; set; } = 1.0f;
// 是否按位读取
public string IsBitRead { get; set; } = "0";
// 位索引0 - 7
public int BitIndex { get; set; }
/// <summary>
/// 是否是故障点 1是 0否
/// </summary>
public string FaultPoint { get; set; }
/// <summary>
/// 是否是报警点 1是 0否
/// </summary>
public string AlarmPoint { get; set; }
/// <summary>
/// 最大值
/// </summary>
public string MaxValue { get; set; }
/// <summary>
/// 最小值
/// </summary>
public string MinValue { get; set; }
/// <summary>
/// 范围 0范围内 1范围外
/// </summary>
public string Range { get; set; }
/// <summary>
/// 首地址是否从0开始1是 0
/// </summary>
public string StartAddressFromZero { get; set; }
}
}