How to display selected command text in a Dynamic Text element

Forum Home Forums Understanding the Software How to display selected command text in a Dynamic Text element

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #16900
    Ekrem
    Participant

    On the scheme I want to use a button and a text box.
    When I press the button, three options about the mold status should appear.
    When I click one of these options, the name of the option I selected should be shown in the text box.
    How can I do this in Rapid SCADA?

    #16901
    manjey73
    Participant

    You can make an enumeration and use it for the Command Format. Then a window with buttons will open, according to the list.

    #16902
    Mikhail
    Moderator

    In Rapid SCADA it’s a bit different:
    When you click a button, a popup dialog is shown, where you can choose an option.
    To do that, you need to configure a channel of the output type. Then specify the channel number in the button properties.

    #16903
    Ekrem
    Participant

    Thank you for the explanation. I already configured an output channel and linked it to the button, so the popup with the options (1, 2, 3) is working correctly.

    What I still need is to show the chosen option as text on the scheme in a Dynamic Text element (for example: “ Mold Status 1 / 2 / 3”). At the moment the command is sent, but the text box just shows —.

    Is there a recommended way in Rapid SCADA to pass the selected command value to another channel (or directly to a text element) so that the corresponding label from the command format is displayed on the scheme?

    #16904
    manjey73
    Participant

    Well, everything is the same, you need to use enumeration, but for the input format. Use the built-in scripts Val(n), CnlData(n). We don’t know what type of channel you are using the output formula and format for.

    #16905
    Ekrem
    Participant

    Channel 114 – Output type, used to send the command with 3 options (1, 2, 3).

    Channel 115 – Input type, Data Type = Integer, Format = Mold Status (enumeration:
    1=Mold Status 1
    2=Mold Status 2
    3=Mold Status 3
    ).
    My goal is to show the selected option as text in a Dynamic Text element bound to channel 115.

    Should I simply set the Input Formula of channel 115 to Val(114) (or CnlData(114)) so that it mirrors the value of channel 114 and then uses the enumeration format to display the text?

    #16906
    manjey73
    Participant

    Integer – not required, leave it empty.

    Enumerations in format tables – Name “ModeStatus” well, or choose which one
    Mold Status 1; Mold Status 2; Mold Status 3

    Val(114) – It will depend on what channel 114 is – if it is the input/output channel of the device, then yes, it should be enough.

    First, we need to determine what channel 114 is, depending on which approaches there may be. More precisely, there will be different approaches so that the value appears in channel 115. Up to the point that it may be necessary to create a specific script in the script table for this task.

    #16907
    manjey73
    Participant

    If the channel is only Output, then you will definitely need a formula that returns Cmd and writes to channel 115 (SetVal) inside the formula

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