| | |
| | | } |
| | | |
| | | //设置并联给定电压 |
| | | if(econn.groupgivecurr > 0) { |
| | | if(econn.groupgivevol > 0) { |
| | | boolean flag = MyModbusUtils.writeHoldingRegister(Electric_4KW_ModbusAddress.getConnAddress(econn.getElectric_id(), "givevol"), econn.groupgivevol, DataType.TWO_BYTE_INT_UNSIGNED, master); |
| | | logs.add(new User_Log(User_Log.Alter,User_Log.electricsystem,getGroupName(econn.electric_id)+"电压给定设置为:"+econn.groupgivevol,flag)); |
| | | } |
| | | |
| | | //设置并联给定电流 |
| | | if(econn.groupgivevol > 0) { |
| | | if(econn.groupgivecurr > 0) { |
| | | boolean flag = MyModbusUtils.writeHoldingRegister(Electric_4KW_ModbusAddress.getConnAddress(econn.getElectric_id(), "givecurr"), econn.groupgivecurr, DataType.TWO_BYTE_INT_UNSIGNED, master); |
| | | logs.add(new User_Log(User_Log.Alter,User_Log.electricsystem,getGroupName(econn.electric_id)+"电流给定设置为:"+econn.groupgivecurr,flag)); |
| | | } |
| | |
| | | + " switchoff1 = "+econn.switchoff1+"," |
| | | + " switchoff2 = "+econn.switchoff2+"," |
| | | + " conn_start = "+econn.conn_start+"," |
| | | + " conn_stop = "+econn.conn_stop |
| | | + " conn_stop = "+econn.conn_stop +"," |
| | | + " groupgivevol = "+econn.groupgivevol +"," |
| | | + " groupgivecurr = "+econn.groupgivecurr |
| | | + " WHERE electric_id = " + econn.electric_id; |
| | | Sql_Mysql sql = new Sql_Mysql(pool.getConn()); |
| | | try { |
| | |
| | | 添加设备连接状态记录更新
|
| | |
|
| | | V1.204at 2020-10-14 lijun
|
| | | 1.提高历史实时数据记录频率(1s记录一笔) |
| | | 1.提高历史实时数据记录频率(1s记录一笔)
|
| | | |
| | | V1.205 at 2021-02-26 lijun
|
| | | 1.修改4MW组合界面并联给定电压和给定电流逻辑 |
| | |
| | | /**************************************************************************/ |
| | | /**************************************************************************/ |
| | | public final static boolean app_debug = false; |
| | | public final static double m_VersionNum = 1.204; |
| | | public final static double m_VersionNum = 1.205; |
| | | public final static String m_Version = "Welcome To Use main_ElectricalSystem_MonitorServer_4KW V" |
| | | + m_VersionNum ; |
| | | /**************************************************************************/ |