zcn1123 4 年之前
父節點
當前提交
65358c4c02
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. +4
    -0
      Modbus_communication/Modbus_TCP/Modbus_TCP_log.txt
  2. +1
    -1
      Modbus_communication/Modbus_TCP/common.h

+ 4
- 0
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:

+ 1
- 1
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);


Loading…
取消
儲存