From 28674e596fcaf647b3494075b3a37d5d75c60cbb Mon Sep 17 00:00:00 2001 From: whyclj <1525436766@qq.com> Date: 星期二, 21 七月 2020 14:35:35 +0800 Subject: [PATCH] 修改 --- src/com/data/PowerArk_SocketCliet_Thread.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/data/PowerArk_SocketCliet_Thread.java b/src/com/data/PowerArk_SocketCliet_Thread.java index f1c0500..527f503 100644 --- a/src/com/data/PowerArk_SocketCliet_Thread.java +++ b/src/com/data/PowerArk_SocketCliet_Thread.java @@ -78,16 +78,16 @@ } } - /*if(run_count % 8 == 0) { + if(run_count % 8 == 0) { //读取状态信息 0x8000-8013 basedata = new BaseData(Modbus_ComBase.READ_COIL_STATUS, Modbus_ComBase.ButtonOutPut_Start_Addr, 14); if(SocketComm(basedata.createReadData(), socket)) { //读取Q区状态成功 PowerArk_ServerSocket_Thread_SQL.updateDynamicload_ButtonTable(conn_pool, button); } - }*/ + } - /*if(run_count % 10 ==0 ) { + if(run_count % 10 ==0 ) { //读取各个按钮状态 0x40-x0160 basedata = new BaseData(Modbus_ComBase.READ_COIL_STATUS, Modbus_ComBase.LocalControl_Start_Addr, 121); if(SocketComm(basedata.createReadData(), socket)) { @@ -103,7 +103,7 @@ //读取V区状态成功 PowerArk_ServerSocket_Thread_SQL.updateDynamicload_StateTable(conn_pool, state); } - }*/ + } } /****************************************** 写状态 **********************************************/ -- Gitblit v1.9.1