Forum Home › Forums › Rapid SCADA on Linux Controllers and Raspberry Pi › RPi as a TCP server, Local PC as a client
- This topic has 13 replies, 2 voices, and was last updated 7 years, 9 months ago by Mikhail.
-
AuthorPosts
-
July 7, 2016 at 2:44 pm #1407MohanadOdemaParticipant
Hello,
I’m new to using Rapid SCADA. I installed the software on my local PC (which I want to act as TCP client) and I want it to communicate with a RPi (TCP server).
The RPi and the local PC are connected together via an Ethernet cable and the RPi operates as a server correctly. However, I’m facing some issues when I want to activate the communication line.
I added the required credentials on the Scada Administrator, changed the common parameters of the Scada Communicator to the ip and port addresses of the RPi server and edited the communication line parameters. Still, the communication line is not functioning and gives me “Error initializing communication channel: Slave behavior of the communication channel is not supprted by Device 34 “RPi”
I haven’t edited the XML file yet so I used a template from your example for now. I feel like I’m missing something or I misconfigured something incorrectly.
Help anyone ?
July 7, 2016 at 5:10 pm #1408MikhailModeratorHello,
You have to change communication channel properties in Communicator and set Master behavior. Do you poll your devices from the PC and need to send collected data to RPi?July 8, 2016 at 12:33 pm #1411MohanadOdemaParticipantYeah that did it the channel is now up and running. Thanks !
I only have one device the RPi which I poll from and send data to it that don’t need to be collected though.
July 8, 2016 at 1:32 pm #1412MohanadOdemaParticipantI have another question if you don’t mind.
The RPi (TCP server) is connected to a servo motor and some relay switches. The Pi automates these equipment based on the values it has in some of its holding register addresses.
The question is now the communication line is active and I can read from the holding register, how can I set values in some of the register’s addresses ?
July 8, 2016 at 2:13 pm #1413MikhailModeratorYou need sending commands to a device. First of all, try to send them manually.
For automatic control you need this module.July 8, 2016 at 3:34 pm #1414MohanadOdemaParticipantI’m trying to send it manually but neither does the commands tab in the communication channel in the communicator nor the output channels in scada admin contain a field where I can identify the holding register address. How can I specify the register address to which I want to set my values ?
July 9, 2016 at 6:55 pm #1417MikhailModeratorHow can I specify the register address to which I want to set my values ?
Use Modbus template editor.
Try to send a command from the tab of Communicator. If it doesn’t work, post a piece of a communication line log with the description of the problem.July 10, 2016 at 11:23 pm #1422MohanadOdemaParticipantYeah it is working now.
Much gratitude for your time and effort.
July 11, 2016 at 9:49 am #1425MikhailModerator🙂
July 13, 2016 at 9:18 pm #1451MohanadOdemaParticipantAnother Question if you don’t mind,
I want to utilize the Scada Web service, first should I change the server to the ip of the RPi on which the Scada Server is set or should I leave it as it is ?
Second: Do I need a specific port number or leave it at 10000 ?
I tried setting server to localhost and port number to 10000 and then I tried http://localhost/Scada and it gave 404 error. I also tried http://localhost/Scada:10000 and it gave me 403 forbidden access error.
July 14, 2016 at 7:52 am #1452MikhailModeratorI want to utilize the Scada Web service, first should I change the server to the ip of the RPi on which the Scada Server is set or should I leave it as it is ?
If the web app work on another computer than Server, you must set the IP of the server in the web app settings.
Second: Do I need a specific port number or leave it at 10000 ?
Do not mix up the port of web server which is 80 by default and the port of Server app which is 10000 by default. You can change both of them, but you should understand that they are the different things.
July 14, 2016 at 3:10 pm #1456MohanadOdemaParticipantJust to make sure you completely understand my design, the Scada TCP server is on the RPi while the Scada TCP client on which I want to implement my web server is a local PC connected to the TCP server by Ethernet cable.
if my understanding is correct, I left the Server as localhost and port 10000. I added the sets and views as instructed in your documentation. However, when I type in the URL http://localhost/Scada, it gave me 404 error “Not Found The requested URL /Scada was not found on this server.”
Did I miss something ?
July 14, 2016 at 8:23 pm #1458MohanadOdemaParticipantThanks Nevermind I worked the ScadaWeb Server at last!
However I still have a problem in the Scada Communicator. The channels are not bound to their device tags even though I created the required channels in the Scada Admin with the appropriate signals to match those in the template of my device in the ScadaComm.
What can be the cause of this problem ??
July 15, 2016 at 6:25 am #1460MikhailModeratorYou should create a new topic on Understanding the Software subforum. There is no RPi specifics.
-
AuthorPosts
- You must be logged in to reply to this topic.