Forum Home › Forums › Communicating with Devices › Modbus › How to send command to rs485 Relay board
- This topic has 36 replies, 3 voices, and was last updated 4 years, 2 months ago by hethongscada62.
-
AuthorPosts
-
January 9, 2020 at 8:32 am #6334hethongscada62Participant
Dear Mr. Mikhail.
My project based on rapid scada is working well. Now i want to control loads (On-Off) via 8 channel rs485 relay board type R421A08. In my email you said that it can. So how will i configuration of command? Could you help me?
Thanks and best regards
Han Hoang- This topic was modified 4 years, 3 months ago by Mikhail.
January 9, 2020 at 8:51 am #6335manjey73ParticipantTemplate for this relay
January 9, 2020 at 8:55 am #6336manjey73ParticipantIn the control channel it is necessary to give the command 1 multiplied by 256, 512 or 768 One turns off, another turns on, the third performs a trigger function. For Example, Cmd*768
January 9, 2020 at 9:33 am #6337manjey73Participantyou can create buttons for sending commands by writing (I do not know in what place in English) in “command Value” ‘; Off ; On’ or ‘; On ; Off’ without quotes but that at the beginning there was a symbol ; thus in Cmd 1 or 2 will be sent and then in the formula of the control channel to make Cmd*256 and you in one case will be sent 256, in the second case 512.
January 9, 2020 at 2:02 pm #6341MikhailModeratorDear Han,
Please follow the suggestions written by manjey73. In case of issues, put links to screenshots here.
January 9, 2020 at 2:07 pm #6342hethongscada62ParticipantDear Manjey73,
Thank you very much for your reply. But there was no result. Now I’ll show you how The relay board R421A08 is connected to rapid scada:The relay board R421A08 is connected to local network via RS485 Ethernet converter (192.168.1.105, address 1)
So my question is: How can I configure the communicator to send commands ?
Here is the screenshot: https://ibb.co/znfB2H8January 9, 2020 at 2:14 pm #6343hethongscada62ParticipantDear Mikhail,
This is the screenshot of communication line state:
https://ibb.co/SXNXBv6January 9, 2020 at 2:29 pm #6344manjey73ParticipantWhere are your Line Parameters ?
Unfortunately I have version 5.7.1 installed and I no longer have a separate window of the Communicator app- This reply was modified 4 years, 3 months ago by manjey73.
January 9, 2020 at 2:35 pm #6346hethongscada62ParticipantThe communication Line parameters is bellowing: https://ibb.co/pnCKF6r
Thanks a lot
Han HoangJanuary 9, 2020 at 2:49 pm #6347manjey73ParticipantDoes your interface Converter have a 502 port to work with the RS485 port ?
Also show the Custom Parameters and Request Sequence tabs. And check the documentation, the link to which gave Michael settings for these tabs.
http://doc.rapidscada.net/content/latest/en/software-configuration/communication-with-devices.html
January 10, 2020 at 9:12 am #6353hethongscada62ParticipantDear manjey73,
I can not get the result. I change method of connection of relay board R421A08. It was connected with rapid Scada by Modbus RTU via RS485 to USB converter. Before connection with Rapid scada the relay board R421A08 was tested by ModbusPoll. The relay board is working On/Off perfectly. The screenshot is belowing:
https://ibb.co/7vth4qc
https://ibb.co/SnfS8Dg
Now i configure rapid scada that the Relay board was connected with communicator via Modbus RTU and manage to send commands to relay. But not result too. Something is wrong, where? Could you help me? Some screenshots are bellowing:
https://ibb.co/fDx3chS
https://ibb.co/JcDhnGH
https://ibb.co/s2JBzpP
https://ibb.co/W6yYPL8
https://ibb.co/k5yCNHp
https://ibb.co/grmNxvz
https://ibb.co/fXL2TgC
https://ibb.co/zGwRPtc
https://ibb.co/3s3pdRk
https://ibb.co/m4j9WYq
I hope i will get the help from You.
Thanks and best regards
Han HoangJanuary 10, 2020 at 9:57 am #6354manjey73ParticipantWhen there are Bound checkboxes in the settings, the device address is taken from the Scada database. When the checkboxes are removed, the parameters are taken from the Communicator window.
Maybe that’s the problem? do you have an address binding in the Scada database ?
And you send a string, and it is necessary to send Hex
- This reply was modified 4 years, 3 months ago by manjey73.
January 10, 2020 at 11:33 am #6356hethongscada62ParticipantDear Mạnjey73,
Thank you for your fast reply.
Do you have an address binding in the Scada database ?
No, I have not any address in the Scada database. How to do this, could you let me know?
Thanks a lot
Han HoangJanuary 10, 2020 at 11:49 am #6357manjey73ParticipantDisable the Bound checkboxes in the Communicator Windows and check the line operation.
OR
Configuration Database – table Devices – Address
January 10, 2020 at 12:38 pm #6359MikhailModeratorOn the screenshot you can see that Modbus RTU is used. But in the settings there is Modbus TCP. Seems that the screenshots were made in different time with different settings.
What Modbus type is needed, Modbus RTU or Modbus TCP? What is written in the device manual about that?
-
AuthorPosts
- You must be logged in to reply to this topic.