18 lines
557 B
C#
18 lines
557 B
C#
using InnovEnergy.Lib.Protocols.Modbus.Channels;
|
|
using InnovEnergy.Lib.Protocols.Modbus.Clients;
|
|
using InnovEnergy.Lib.Protocols.Modbus.Slaves;
|
|
|
|
namespace InnovEnergy.Lib.Devices.Amax5070;
|
|
|
|
public class Amax5070Device : ModbusDevice<Amax5070Registers>
|
|
{
|
|
// Amax5070 have slave ID = 0
|
|
public Amax5070Device(String hostname, Byte slaveId = 0, UInt16 port = 502) :
|
|
this(new TcpChannel(hostname, port), slaveId)
|
|
{
|
|
}
|
|
|
|
public Amax5070Device(Channel channel, Byte slaveId = 0) : base(new ModbusTcpClient(channel, slaveId))
|
|
{
|
|
}
|
|
} |