diff --git a/Modbus_communication/Modbus_TCP/Modbus_TCP_log.txt b/Modbus_communication/Modbus_TCP/Modbus_TCP_log.txt index dedd958..77ab453 100644 --- a/Modbus_communication/Modbus_TCP/Modbus_TCP_log.txt +++ b/Modbus_communication/Modbus_TCP/Modbus_TCP_log.txt @@ -569,3 +569,7 @@ 2020-9-16 13:44:8 Send:00 01 00 00 00 06 01 01 00 00 00 02 2020-9-16 13:44:36 Send:00 02 00 00 00 06 01 01 00 00 00 01 2020-9-16 13:44:54 Send:00 03 00 00 00 09 01 10 00 00 00 01 02 00 00 +2020-9-17 10:6:54 Send:00 00 00 00 00 09 01 10 00 00 00 01 02 11 11 +2020-9-17 10:6:56 Recv: +2020-9-17 10:10:56 Send:00 01 00 00 00 06 01 01 00 00 00 01 +2020-9-17 10:10:56 Recv: diff --git a/Modbus_communication/Modbus_TCP/common.h b/Modbus_communication/Modbus_TCP/common.h index ffa055d..099a6e5 100644 --- a/Modbus_communication/Modbus_TCP/common.h +++ b/Modbus_communication/Modbus_TCP/common.h @@ -21,9 +21,9 @@ unsigned int Input_Starting_address(void); unsigned int Input_Operations_number(int function_code); unsigned int Count_Write_date_number(int function_code, unsigned int operations_Number); string Input_Write_date(int function_code, unsigned int operations_Number); +void Log_Note(UINT8 *Message, int flage, int message_len); unsigned int Count_Respone_Len(int function_code, unsigned int operations_number); -void Log_Note(UINT8 *Message, int flage, int message_len); SOCKET Init_Client(void); bool Send_date(SOCKET clientSocket, UINT8 *Request_Message, int request_message_len); bool Abnormal_Connection(SOCKET *clientSocket);