2/13/2025 9:47 PM | |
Joined: 7/25/2024 Last visit: 8/19/2025 Posts: 12 Rating:
|
Hello. I have a problem with a modbus TCP/IP connection. This is not the first time I work with modbus but it’s the first time I cannot find the solution for the problem I have. Im working with a PLC S7-1214C (Client) and a computer with a special Software (Server). In the computer I’ve already disabled the firewall just to make sure firewall is not the issue. The computer is running a heartbeat in address 40100, IP Computer 192.168.0.10. See atachment Computer Configuration The PLC is trying to read the heartbeat in address 40100 but It got the 80C5 (Remote partner closed connection actively) error. The Ip Address of the PLC is 192.168.0.1 and I attached the MB_Client Block configuration. See attachment PLC IP, TCON_Config, Code I ran the Modbus poll just to make sure the server is working, and I can access to the server and read the hearbeat but with an error, see attachments MP1, MP2 and MP Config. I tried all the tips listed here in the forum: change IP's addres of both (PC and PLC), check cable, increase communication load of the PLC, allow communications with the PLC (put and get, secure pg/pc, etc...) I enabled and disabled all the options about communications, etc. Am I missing something? AttachmentMP2.zip (144 Downloads) |
2/14/2025 12:10 AM | |
Joined: 3/28/2010 Last visit: 9/5/2025 Posts: 1171 Rating:
|
Are the values, 444, or 454 that were read from (4)0100 valid values? |
2/14/2025 2:11 PM | |
Joined: 7/25/2024 Last visit: 8/19/2025 Posts: 12 Rating:
|
Yes, is the value of the heartbeat, a incremental number on register 40100 |
2/14/2025 5:15 PM | |
Joined: 7/25/2024 Last visit: 8/19/2025 Posts: 12 Rating:
|
On the MB_CLient instruction is there a place to set the ID of the slave? |
2/14/2025 7:12 PM | |
Joined: 7/25/2024 Last visit: 8/19/2025 Posts: 12 Rating:
|
The server can accept the poll from specific clients, so the solution was set the MB ID of the client to a specific ID expected for the Server. https://support.industry.siemens.com/cs/ww/en/view/102420337 thank you for your help. |
Last edited by: Moderator_Lan at: 02/17/2025 09:21:52link optimized |
|
This contribution was helpful to
1 thankful Users |
Follow us on