Add alias to machine

This commit is contained in:
parallelbgls
2024-09-03 16:05:01 +08:00
parent 21c8e34934
commit b4c57a42d0
12 changed files with 41 additions and 30 deletions

View File

@@ -55,7 +55,7 @@ namespace TripleAdd.Controllers
{
if (machine == null)
{
machine = new ModbusMachine<string, string>("1", ModbusType.Tcp, "10.10.18.251", new List<AddressUnit>()
machine = new ModbusMachine<string, string>("1", "", ModbusType.Tcp, "10.10.18.251", new List<AddressUnit>()
{
new AddressUnit() {Id = "1", Area = "4X", Address = 1, CommunicationTag = "Add1", DataType = typeof(ushort), Zoom = 1, DecimalPos = 0},
new AddressUnit() {Id = "2", Area = "4X", Address = 2, CommunicationTag = "Add2", DataType = typeof(ushort), Zoom = 1, DecimalPos = 0},