BOB/DeviceCommand/Device/IOBoard.cs

35 lines
916 B
C#

using Common.Attributes;
using DeviceCommand.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DeviceCommand.Device
{
[BOBCommand]
public class IOBoard : ModbusTcp
{
public IOBoard(string Ip地址, int , int , int )
{
ConfigureDevice(Ip地址, , , );
}
public IOBoard()
{
}
public virtual async Task (byte , ushort , ushort )
{
await WriteSingleRegisterAsync(, , );
}
public virtual async Task (byte , ushort , ushort[] )
{
await WriteMultipleRegistersAsync(, , );
}
}
}