diff --git a/ConsoleApp/MainCentralControl.cs b/ConsoleApp/MainCentralControl.cs index a44721b..182e41c 100644 --- a/ConsoleApp/MainCentralControl.cs +++ b/ConsoleApp/MainCentralControl.cs @@ -277,7 +277,7 @@ namespace ConsoleApp Productid = "", Partid = "", Modelid = "", - Ng = Plc.readFloatByAddress("D7725").ToString() == "1" ? 0 : 1, + Ng = Plc.readInt16ByAddress("D7725").ToString() == "1" ? 0 : 1, Proc = 0, Sublinenum = 0, Sublinesnnum = 0, diff --git a/ConsoleApp/appsettings.json b/ConsoleApp/appsettings.json index fe2b25c..a27a073 100644 --- a/ConsoleApp/appsettings.json +++ b/ConsoleApp/appsettings.json @@ -57,6 +57,6 @@ ], "redisConfig": "175.27.215.92:6379,password=redis@2023", - "StationCode": "S130-1" + "StationCode": "S130-2" } }