From 7d0b9695c6380096fb9faf82d9060e657c5bc688 Mon Sep 17 00:00:00 2001 From: CaesarBao Date: Sun, 26 Oct 2025 12:07:10 +0800 Subject: [PATCH] 1 --- ConsoleApp/MainCentralControl.cs | 2 +- ConsoleApp/appsettings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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" } }