How to send command to rs485 Relay board

Forum Home Forums Communicating with Devices Modbus How to send command to rs485 Relay board

Viewing 15 posts - 1 through 15 (of 37 total)
  • Author
    Posts
  • #6334
    hethongscada62
    Participant

    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.
    #6335
    manjey73
    Participant

    Template for relay

    Template for this relay

    #6336
    manjey73
    Participant

    In 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

    #6337
    manjey73
    Participant

    you 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.

    #6341
    Mikhail
    Moderator

    Dear Han,

    Please follow the suggestions written by manjey73. In case of issues, put links to screenshots here.

    #6342
    hethongscada62
    Participant

    Dear 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/znfB2H8

    #6343
    hethongscada62
    Participant

    Dear Mikhail,
    This is the screenshot of communication line state:
    https://ibb.co/SXNXBv6

    #6344
    manjey73
    Participant

    Where 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.
    #6346
    hethongscada62
    Participant

    The communication Line parameters is bellowing: https://ibb.co/pnCKF6r
    Thanks a lot
    Han Hoang

    #6347
    manjey73
    Participant

    Does 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

    • This reply was modified 4 years, 3 months ago by manjey73.
    • This reply was modified 4 years, 3 months ago by manjey73.
    #6353
    hethongscada62
    Participant

    Dear 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 Hoang

    #6354
    manjey73
    Participant

    When 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.
    #6356
    hethongscada62
    Participant

    Dear 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 Hoang

    #6357
    manjey73
    Participant

    Disable the Bound checkboxes in the Communicator Windows and check the line operation.

    OR

    Configuration Database – table Devices – Address

    #6359
    Mikhail
    Moderator

    On 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?

Viewing 15 posts - 1 through 15 (of 37 total)
  • You must be logged in to reply to this topic.