Forum Home › Forums › Communicating with Devices › Modbus › Modbus TCP Server
Tagged: Modbus TCP Server, Slave/Master
- This topic has 11 replies, 5 voices, and was last updated 1 month, 2 weeks ago by Mikhail.
-
AuthorPosts
-
June 19, 2019 at 1:25 pm #5571burscheservasParticipant
Hi all,
I try to connect rapidscada directly to a PLC using Modbus TCP. The PLC has the libmodbus library implmented to establish the modbus connection.
The PLC can communicate with test software and also with the Modbus simulator (plcsimulator.org).On the rapidscada side, I have been able to manage the connection from rapidscada to the Modbus Simulator as well. It works in principle.
If I add a new communication line with new object to the rapidscada configuration and set the communication to Modbus TCP Server (TcpPort = 502, behavior = slave, connmode = shared, devselmode = byipaddress) the connection can not be established.
I tried all possible combinations, but the tcpport 502 is not opening.
It seems that the TCP Server is not running correctly.Do you have any idea/advice how to go forward to check the issue?
Thanks in advance.
Regards,
JohnJune 19, 2019 at 1:50 pm #5574MikhailModeratorHi,
Rapid SCADA works as TCP client, not TCP server. It connects to a PLC which is TCP server and PLC keeps port 502 open.
June 19, 2019 at 2:47 pm #5580burscheservasParticipantHi Mikhail,
Thanks for the quick response!
This is unfortunately not good to hear for me.Do you know maybe any stand alone Modbus TCP server software (open source / freeware) that can be used as software modbus TCP coupler?
Thanks
regards,
JohnJune 20, 2019 at 3:25 pm #5587MikhailModeratorHi John,
I researched for this, and I have’t found any free solution. We can develop such driver as a custom development by a contract.
June 24, 2019 at 7:08 am #5595burscheservasParticipantHi Mikhail,
Thanks for your reply and your offer.
Currently, I am investigating my options. Should I come to the requirement to use a customized solution I will come back to you.
Regards,
JohnJune 24, 2019 at 4:26 pm #5599MikhailModeratorHi John,
Sure. Any time. We provide high quality and competitive price 🙂
November 15, 2019 at 2:42 pm #6052KrzysztofParticipantHelo
I have a problem with communication with the slave simulator.
I can’t ask him for more than 127 registers. It does not appear to have such a limitation. Is there any restriction on Rapid Scada or modbus driver?November 15, 2019 at 6:35 pm #6054manjey73ParticipantLike this limitation of the Protocol on 256 bytes when using standard reading functions
November 16, 2019 at 12:05 pm #6058MikhailModeratorToo big packets are not reliable. If you face limits in Modbus Template Editor, this is because of the Modbus standard.
November 18, 2019 at 10:57 am #6062KrzysztofParticipantthx guys
March 6, 2024 at 6:07 pm #14144mauricioParticipantHello, I have version 6.2.0.0 installed in Windows 10
I made a test project with modbus TCP
When starting the connection, it correctly makes the first 76 queries and then the communication fails.++++++++ LINE LOG +++++++++++++++++++++++++ 2024-03-06 15:02:26 Session with the device [1] Gen1 Request element group "FactEscG1" Send (12): 00 49 00 00 00 06 01 03 C3 50 00 03 Receive (7/7): 00 49 00 00 00 09 01 Receive (8/8): 03 06 13 92 00 03 00 00 OK 2024-03-06 15:02:26 Session with the device [1] Gen1 Request element group "FactEscG1" Send (12): 00 4A 00 00 00 06 01 03 C3 50 00 03 Receive (7/7): 00 4A 00 00 00 09 01 Receive (8/8): 03 06 13 92 00 03 00 00 OK 2024-03-06 15:02:26 Session with the device [1] Gen1 Request element group "FactEscG1" Send (12): 00 4B 00 00 00 06 01 03 C3 50 00 03 Receive (7/7): 00 4B 00 00 00 09 01 Receive (8/8): 03 06 13 92 00 03 00 00 OK 2024-03-06 15:02:27 Session with the device [1] Gen1 Request element group "FactEscG1" Send (12): 00 4C 00 00 00 06 01 03 C3 50 00 03 Receive (7/7): 00 4C 00 00 00 09 01 Receive (8/8): 03 06 13 92 00 03 00 00 OK 2024-03-06 15:02:27 Session with the device [1] Gen1 Request element group "FactEscG1" Send (12): 00 4D 00 00 00 06 01 03 C3 50 00 03 Receive (0/7): Error: communication failed Request element group "FactEscG1" Send (12): 00 4E 00 00 00 06 01 03 C3 50 00 03 Receive (0/7): Error: communication failed</strong></blockquote> ++++++++ END LINE LOG +++++++++++++++++++++++++
When applying restart line it again correctly does the first 76 queries and then communication fails.
The TCP server used works well with other scada software.
Please indicate steps to follow to solve the problem.March 7, 2024 at 11:28 am #14155MikhailModeratorHi,
In case of communication error, the driver should reconnect. What messages do you get after the error in the log?Also consider increasing the timeout and delay parameters in the device properties in Communicator.
-
AuthorPosts
- You must be logged in to reply to this topic.