-
Notifications
You must be signed in to change notification settings - Fork 139
4.3 How to define AddressUnit
luosheng edited this page Jun 7, 2023
·
2 revisions
The definition of AddressUnit is:
/// <summary>
/// Address Unit.
/// </summary>
public class AddressUnit<TKey> where TKey : IEquatable<TKey>
{
/// <summary>
/// ID of address unit
/// </summary>
public TKey Id { get; set; }
/// <summary>
/// Area that data belongs
/// </summary>
public string Area { get; set; }
/// <summary>
/// Address
/// </summary>
public int Address { get; set; }
/// <summary>
/// Bit position of address
/// </summary>
public int SubAddress { get; set; } = 0;
/// <summary>
/// Data type using c# definition
/// </summary>
public Type DataType { get; set; }
/// <summary>
/// Scale rate of data
/// </summary>
public double Zoom { get; set; } = 1;
/// <summary>
/// Decimal count of data
/// </summary>
public int DecimalPos { get; set; }
/// <summary>
/// Communication tag
/// </summary>
public string CommunicationTag { get; set; }
/// <summary>
/// Name of an address
/// </summary>
public string Name { get; set; }
/// <summary>
/// Unit of an address
/// </summary>
public string Unit { get; set; }
/// <summary>
/// Is Address Writable
/// </summary>
public bool CanWrite { get; set; } = true;
}Id, Area, Address are required, others are optional but could be required depends on MachineGetDataType and MachineSetDataType.
Modbus.Net © 2016-2026 Hangzhou Delian Science Technology Co.,Ltd. | Licensed under MIT
- 1-概要介绍
- 2-Modbus.Net主体框架规范
- 3-利用Modbus.Net实现一个协议
- 4-使用Modbus.Net
- 5-Modbus.Net.Modbus
- 6-Modbus.Net.Siemens
- 7-Modbus.Net.HJ212
- 8-调试与Issue提交
- 1-Overview
-
2-Specification of Modbus.Net main framework
- 2.1-Modbus.Net Architecture
- 2.2-Transmission Control Layer Controller
- 2.3-Transmission Link Layer Connector
- 2.4-Concrete Protocol Layer ProtocolLinker
- 2.5-Abstract Protocol Layer Protocol
- 2.6-Protocol Presentation Layer Utility
- 2.7-Device Application Layer Machine
- 2.8-Task Application Layer MachineJob
- 3-Using Modbus.Net to implement a protocol
- 4-Using Modbus.Net
- 5-Modbus.Net.Modbus
- 6-Modbus.Net.Siemens
- 7-Modbus.Net.HJ212
- 8-Debug method and issue upload