Push avant de modifier le bit de watchdog pour les essais ATS
Version 1.22 - Déconnexion manuelle du socket lors d'un timeout Modbus avec NetTrac. Aucune idée pourquoi ça ne se fait pas automatiquement!
This commit is contained in:
@@ -56,6 +56,7 @@
|
||||
|
||||
//Flags definitions for HR2027
|
||||
#define ZT_WATCHDOG_ON_VALUE 0x8000
|
||||
//#define ZT_WATCHDOG_ON_VALUE 0x0001 //JFM 2020-09-25 modifie pour essais ATS (V1.21_TEST_ATS), doit etre 0x8000 en exploitation
|
||||
#define ZT_WATCHDOG_OFF_VALUE 0x0000
|
||||
|
||||
|
||||
|
||||
@@ -84,6 +84,7 @@ int CModbusSEIMgr::ConnectToSlave(QHostAddress SlaveIP, int SlavePort)
|
||||
|
||||
int CModbusSEIMgr::DisconnectFromSlave()
|
||||
{
|
||||
mModbusTCPSocketHandle->flush();
|
||||
mModbusTCPSocketHandle->disconnectFromHost();
|
||||
mConnectionTimer->start();
|
||||
|
||||
@@ -204,6 +205,7 @@ void CModbusSEIMgr::SEIModbusWatchdogtimerExpired()
|
||||
|
||||
emit SEIModbusLinkLost();
|
||||
mSEILinkState = false;
|
||||
DisconnectFromSlave(); //JFM 2021-03-12. Ajout suite aux essais site. La connexion doit etre coupee manuellement pour les raisons obscures.
|
||||
// mSEIWatchdogState = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user