Forum Home › Forums › Communicating with Devices › Modbus › Modbus TCP Server
Tagged: Modbus TCP Server, Slave/Master
- This topic has 18 replies, 6 voices, and was last updated 1 year, 2 months ago by
Mikhail.
-
AuthorPosts
-
June 19, 2019 at 1:25 pm #5571
burscheservas
ParticipantHi 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 #5574Mikhail
ModeratorHi,
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 #5580burscheservas
ParticipantHi 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 #5587Mikhail
ModeratorHi 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 #5595burscheservas
ParticipantHi 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 #5599Mikhail
ModeratorHi John,
Sure. Any time. We provide high quality and competitive price 🙂
November 15, 2019 at 2:42 pm #6052Krzysztof
ParticipantHelo
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 #6054manjey73
ParticipantLike this limitation of the Protocol on 256 bytes when using standard reading functions
November 16, 2019 at 12:05 pm #6058Mikhail
ModeratorToo 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 #6062Krzysztof
Participantthx guys
March 6, 2024 at 6:07 pm #14144mauricio
ParticipantHello, 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 #14155Mikhail
ModeratorHi,
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.
May 22, 2024 at 11:42 am #14518ibrahim eren
ParticipantHello,
I am a new user of Rapid SCADA and would like to use your product. However, I have been unable to run Rapid SCADA as a TCP Server. We have 4G modems operating as TCP Clients at various field points, and behind these modems, we have Modbus RTU devices. I want to access these devices through Rapid SCADA and read their registers. Unfortunately, even though Rapid SCADA claims to be listening on port 502 as a TCP Server, it does not appear to be doing so. I need your assistance.
Thank you.
ibrahim erenMay 22, 2024 at 11:46 am #14519Mikhail
ModeratorHello Ibrahim,
Please provide screenshots of the Communicator settings and the communication line log.
Make sure that the modems are configured to initiate a connection to the TCP server.
May 22, 2024 at 11:47 am #14520Mikhail
ModeratorAlso try to connect to Communicator by any TCP client utility. You should see that a connection is established.
-
AuthorPosts
- You must be logged in to reply to this topic.