Send values and commands

Forum Home Forums Understanding the Software Send values and commands

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15989
    fischerp
    Participant

    Hello,
    I would like to write values to a channel and I’m not sure how to do it.
    I have a device (temperature detection), there are four Mosbus registers (read only) for the current values and four more (read/write) for an offset to compensate for the line length. I can read and display all four (both as a diagram and as a table). I have defined the R/W channels as input/output in the administrator. In the scheme editor I have created a button to enter (for example) channel 213, which is the offset of temperature sensor 4. In the settings, I have specified “Send Command” as the action. When I click on this button, I get an error message “No plugin implements the command feature.”
    I probably have to enter an output formula. Is that correct?
    What should it say?
    Is my basic procedure correct?

    Translated with DeepL.com (free version)

    #16002
    Mikhail
    Moderator

    Hello,
    Open Webstation – Application Options – Plugin Assignment and check that
    Plugin for sending commands is PlgMain.

    #16213
    fischerp
    Participant

    Hello,
    After considering the tip above and various tips in other posts, I have managed to write values to a Modbus device. Now I am failing at what is actually a simpler task. I want to send an on/off signal to a device.
    I send values by creating a button in the Scheme editor, entering “send command” as the action and specifying the relevant output channel.

    https://imgur.com/a/Auyj4LJ Button to send Value

    In the Chanels, I enter SetVal(310,Cmd) as the output formula, where 310 is the channel number of the value to be changed. The channel type is defined as input/output, the formula is activated. This is all in the same line as the actual channel definition. This works perfectly, I get a mask in which I enter the new value, which is transferred to the device and immediately appears in Scada as a new (read) value.
    Now I would like to send a signal that switches a digital input. Analogous to the procedure described above, I have created a button, action send command, output channel is the channel that is to be switched.
    I have now entered the following in the channels: type input/output, formula SetVal(305,Cmd), format Off-On.
    I would now have expected an input mask to appear when the button is pressed, in which I can choose between off and on.
    Here is a screenshot of the channels:

    https://imgur.com/jPixGTK channels

    • This reply was modified 5 months, 3 weeks ago by Mikhail.
    #16215
    Mikhail
    Moderator

    Hello,

    Have you tried the Toggle component?
    A draft of UI element may help to understand the question more precisely.

    #16216
    Mikhail
    Moderator

    The Format field affects a command sending dialog. Could you make a screenshot of the command dialog?

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