You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.8 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HybirdFrameworkDriver.ModbusTcpMaster
{
/// <summary>
/// PLC地址
/// </summary>
public class PlcDate
{
/// <summary>
/// 写编程使能
/// </summary>
public ModbusProperty<UInt16> ProgrammingEnable { get; set; } = new(40960);
/// <summary>
/// 本机modbus地址
/// </summary>
public ModbusProperty<UInt16> Modbus1Addres { get; set; } = new(40962);
/// <summary>
/// 波特率
/// </summary>
public ModbusProperty<UInt16> BaudRate { get; set; } = new(40964);
/// <summary>
/// 校验位
/// </summary>
public ModbusProperty<UInt16> CheckBit { get; set; } = new(2566);
/// <summary>
/// 秒
/// </summary>
public ModbusProperty<UInt16> Seconds { get; set; } = new(0);
/// <summary>
/// 分
/// </summary>
public ModbusProperty<UInt16> Points { get; set; } = new(2);
/// <summary>
/// 时
/// </summary>
public ModbusProperty<UInt16> When { get; set; } = new(4);
/// <summary>
/// 周
/// </summary>
public ModbusProperty<UInt16> Weeks { get; set; } = new(6);
/// <summary>
/// 日
/// </summary>
public ModbusProperty<UInt16> Day { get; set; } = new(8);
/// <summary>
/// 月
/// </summary>
public ModbusProperty<UInt16> Month { get; set; } = new(10);
/// <summary>
/// 年
/// </summary>
public ModbusProperty<UInt16> Years { get; set; } = new(12);
/// <summary>
/// 本机modbus地址
/// </summary>
public ModbusProperty<UInt16> Modbus1Addres2 { get; set; } = new(14);
/// <summary>
/// 保留
/// </summary>
public ModbusProperty<UInt16> Reserve { get; set; } = new(16);
/// <summary>
/// 电压变比
/// </summary>
public ModbusProperty<UInt16> VoltageRatio { get; set; } = new(18);
/// <summary>
/// 电流变比
/// </summary>
public ModbusProperty<UInt16> CurrentRatio { get; set; } = new(20);
/// <summary>
/// 秒脉冲/无功电能选择
/// </summary>
public ModbusProperty<UInt16> PulsePerSecond { get; set; } = new(42);
/// <summary>
/// 电流接线反向
/// </summary>
public ModbusProperty<UInt16> CurrentReversal { get; set; } = new(48);
/// <summary>
/// 电表清零
/// </summary>
public ModbusProperty<UInt16> MeterReset { get; set; } = new(4576);
}
}