Innovenergy_trunk/csharp/Lib/Devices/Adam6060/Adam6060Device.cs

18 lines
520 B
C#
Raw Normal View History

2023-06-13 09:26:22 +00:00
using InnovEnergy.Lib.Protocols.Modbus.Channels;
2023-02-16 12:57:06 +00:00
using InnovEnergy.Lib.Protocols.Modbus.Clients;
2023-06-13 09:26:22 +00:00
using InnovEnergy.Lib.Protocols.Modbus.Slaves;
2023-02-16 12:57:06 +00:00
namespace InnovEnergy.Lib.Devices.Adam6060;
2023-06-13 09:26:22 +00:00
public class Adam6060Device : ModbusDevice<Adam6060Registers>
2023-02-16 12:57:06 +00:00
{
2023-06-13 09:26:22 +00:00
public Adam6060Device(String hostname, Byte slaveId, UInt16 port = 502) :
this(new TcpChannel(hostname, port), slaveId)
2023-02-16 12:57:06 +00:00
{
}
2023-06-13 09:26:22 +00:00
public Adam6060Device(Channel channel, Byte slaveId) : base(new ModbusTcpClient(channel, slaveId))
2023-02-16 12:57:06 +00:00
{
}
}