Change To ModbusTCP Slave R102
Change To ModbusTCP Slave R102
Concurrent Client
Connection Activation
However, if you take a look in the code, you can see that it is wrote to support multiple concurrent Client
connections
To activate the ability to support multiple concurrent (as the same time) client connections:
• In the Routine “Packet_Processing” – Rung 9
Add an XIC instruction with TAG “Data_Received”
Tested with a maximum of 5 concurrent client connections, seems works fine. The code seem wrote
to support uo to 10 connections
Our customer use it with two concurrent connections from the same Modbus Client
BEFORE USE IT, YOU MUST TEST AND CHECK THE PERFORMANCE ,
FOR EVERY APPLICATIONS
Logix Modbus TCP Server
Response at Unknow
Modbus Function Code
Proposed improvement
• Logix Modbus TCP Server respond with an exception error to the unknow/unsupported Modbus Function Code
• Logix Modbus TCP Server sets True an internal Bool Tag to indicate that an unknown/unsupported Function
Code has been received
• Logix Modbus TCP Server copy the unknow/unsupported Modbus Function Code to an internal Logix Tag for
debug
Logix Modbus TCP Server: Response to Unknow modbus function code
Proposed improvement
Routine: Packet_Processing
Rung: 2
1
1. Add an AFI instruction in front of the first MOV instruction
2. Create a BOOL Tag (Ex DEBUG_FunctionCode_UNKW) and add an
OTL instruction in parallel to the ADD instruction
3. Create a SINT Tag (ex DEBUG_FunctionCode_UNKW_Hex), set the
Style to Hex, add a MOV instruction in parrallel
Set the source to: Main_Read_Buffer[RW_Select].DATA[7]
Set the destintaion to: DEBUG_FunctionCode_UNKW_Hex
2
3
Logix Modbus TCP Server: Response to Unknow modbus function code
Original File Name from Sample Code ID 89798 : ModbusTCP_Slave_R102.ACD
Wireshark Trace, after the proposed improvement