How to send commands using KpMQTT

Forum Home Forums Communicating with Devices How to send commands using KpMQTT

Tagged: 

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #7441
    Romanljw
    Participant

    Hi, I´m newer in Rapid Scada, it is great app.
    I have two questions when I use KpMQTT in Rapid Scada:
    1. I found a command send button using KpMQTT in ScadaAdmin – Instances – Communicator – Communication Lines – MQTT_Line (the Mqtt line named in my project) – MQTT_Device (the Mqtt device named in my project), there’s a Command button which can send MQTT command and data. While how can I send commands in ScadaSchemeEditor, how to configuration to send MQTT command in ScadaSchemeEditor?
    2. KpMQTT can receive single date in one topic such as “36.5” and transport to Input Channel. While I send several data to Rapid Scada such as “101112” in one topic (three data in this example, 10, 11 and 12) using MQTT, how to transport them to three different Input Channels?
    Best regards.
    Thanks.

    • This topic was modified 3 years, 6 months ago by Mikhail.
    #7444
    Mikhail
    Moderator

    Hi,

    1. A sending commands form in Administrator is general. Implementation depends on a particular driver. If you already able to successfully send commands using Administrator, I can describe how to do the same from schemes.

    2. Is this a string to be parsed? Why do you send different values in a one topic?
    Screenshots would help to understand your task.

    #7448
    Romanljw
    Participant

    Hi, Mikhail, thanks for your help. I wander how to send command using KpMQTT via the Scheme Editor. Thus I can send commands via the interface in browser. Can you describe the steps in detail? Thanks a lot.

    #7449
    Romanljw
    Participant

    Hi, Mikhail, thanks for your help. I wander how to send command using KpMQTT via the Scheme Editor. Thus I can send commands via the interface in browser. Can you describe the steps in detail? Thanks a lot.

    #7451
    Mikhail
    Moderator

    Hi,

    I wander how to send command using KpMQTT via the Scheme Editor

    Before sending command from schemes, you should check that commands are successfully sent from Administrator. Have you already done that?

    #7454
    Romanljw
    Participant

    Hi, Mikhail, thanks for your replay. I have config the MQTT command in the KpMqtt_Config.xml file, and successfully sent the commands from Administrator.

    #7457
    Mikhail
    Moderator

    Good. Please post screenshot of a command form (in Administrator), so I can tell you how to send similar commands from scheme.

    #7460
    Romanljw
    Participant

    Hi Mikhail, thinks for your kindly reply. The Administrator’s screenshot is as follows.It shows the position of the MQTT command button in the Administrator.
    Adminnistrator

    The command number is configured in the KpMqtt_Config.xml which is shown as follows.
    Config

    Thanks a lot.

    #7461
    Romanljw
    Participant
    #7464
    Mikhail
    Moderator

    Hi,

    Now you should open the Output channel table in Administrator and create a new output channel. Specify a command number the same as you use for sending commands.

    In Scheme Editor, add a button for example, and set its output channel to the output channel number that you have created.

    #7470
    Romanljw
    Participant

    Hi Mikhail, I have solved the problem. The configuration of the KpMQTT is as similar as Modbus. Thanks a lot.

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