|
|
|
@ -223,11 +223,13 @@ void servaModBusManager::m_fThreadProc( void ){ |
|
|
|
//Bit is set
|
|
|
|
if ( (*idx)->crossbar[4+bi] ) { // Assigned Action For Bit
|
|
|
|
//(*idx)->platform_id
|
|
|
|
LOG("Have Assigned Procedure!"); |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
//Reset Latch
|
|
|
|
rv = modbus_set_rtu_bit( (*idx)->ip, (*idx)->port, 40, 1 ); |
|
|
|
//rv = modbus_set_rtu_bit( (*idx)->ip, (*idx)->port, 36, 0 );
|
|
|
|
rv = modbus_set_rtu( (*idx)->ip, (*idx)->port, 40, 0 ); |
|
|
|
if ( rv == -1 ) { |
|
|
|
LOG_ERROR("Error clear latch flag on RTU"); |
|
|
|
}; |
|
|
|
|