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

29 lines
897 B
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; }
public string StartAddressFromZero { get; set; }
}
}