Forum Home › Forums › Understanding the Software › Modbus Slave mode
- This topic has 5 replies, 3 voices, and was last updated 7 years, 7 months ago by
Mikhail.
-
AuthorPosts
-
April 15, 2018 at 6:13 pm #3507
catcute
ParticipantHi Mikhail
I config Communicator as Modbus Slave, and I write a small software to connect with this modbus slave (on the same computer), but the software inform the error that “connection was refuse by server”. And the slave was in the idle state! In Device Data section, it display no data, but I’ve already config tags for this device.
https://drive.google.com/open?id=1S6wUeXTW07Vhue1PrDqXuze6uKrqXfs5
https://drive.google.com/open?id=1xE49jA_Wei5TzNs1UGpEhsp9uh1cVyEh
https://drive.google.com/open?id=11zmRQnibnaP5AxLZPC0PDTFx1GYcIqC2April 15, 2018 at 9:57 pm #3508Pieter
ParticipantAre you running a modbus simulator on the same computer?
Have you tried stopping line 1.
Line 1 and Line 8 are both using same database and settings.
Might be conflicting.
I do not know much, only just stared using Rapid scada with my modbus devices this week.April 16, 2018 at 4:51 am #3509catcute
ParticipantHi Pieter, Line 1 is configed work as Modbus Master: it will send request and read answer from device. Line 8 is configed as Modbus Slave: it will passsive receive request from another device or software and answer the request. That is my understand, I don’t know it is correct in Rapid Scada or not.
April 17, 2018 at 5:20 am #3516
MikhailModeratorHi catcute,
Could you explain the idea what you are going to implement?
Even if you switch operating mode to Slave, the existing Modbus driver works as master. Slave means that Communicator waits for incoming connection, TCP slave (TCP server) not Modbus slave.April 17, 2018 at 6:57 am #3520catcute
ParticipantHi Mikhail
I intend to read data of device from my software and maping data to Modbus communicator. If Rapid Scada suport Modbus Slave, I can write data directly use modbus protocol. But with Rapid Scada as TCP server, I still can’t open tcp connection with Local tcp port 502, error:The network connection was refused by the server.
April 18, 2018 at 4:44 pm #3532
MikhailModeratorRapid SCADA works as Modbus master, and it can be TCP server or TCP slave.
I still can’t open tcp connection with Local tcp port 502, error:The network connection was refused by the server.
You can use this Hercules utility to test connection.
-
AuthorPosts
- You must be logged in to reply to this topic.