Forum Home › Forums › Understanding the Software › How to display selected command text in a Dynamic Text element
- This topic has 7 replies, 3 voices, and was last updated 1 hour, 17 minutes ago by
manjey73.
-
AuthorPosts
-
August 21, 2025 at 11:04 am #16900
Ekrem
ParticipantOn 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?August 21, 2025 at 12:02 pm #16901manjey73
ParticipantYou can make an enumeration and use it for the Command Format. Then a window with buttons will open, according to the list.
August 21, 2025 at 12:13 pm #16902Mikhail
ModeratorIn 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.August 21, 2025 at 12:21 pm #16903Ekrem
ParticipantThank 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?
August 21, 2025 at 12:28 pm #16904manjey73
ParticipantWell, 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.
August 21, 2025 at 12:34 pm #16905Ekrem
ParticipantChannel 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?
August 21, 2025 at 2:08 pm #16906manjey73
ParticipantInteger – 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.
August 21, 2025 at 2:10 pm #16907manjey73
ParticipantIf the channel is only Output, then you will definitely need a formula that returns Cmd and writes to channel 115 (SetVal) inside the formula
-
AuthorPosts
- You must be logged in to reply to this topic.