Forum Home › Forums › Understanding the Software › Send values and commands
- This topic has 4 replies, 2 voices, and was last updated 5 months, 3 weeks ago by
Mikhail.
-
AuthorPosts
-
January 14, 2025 at 10:49 am #15989
fischerp
ParticipantHello,
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)
January 15, 2025 at 10:57 am #16002Mikhail
ModeratorHello,
Open Webstation – Application Options – Plugin Assignment and check that
Plugin for sending commands is PlgMain.March 2, 2025 at 11:40 am #16213fischerp
ParticipantHello,
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.
March 3, 2025 at 7:31 am #16215Mikhail
ModeratorHello,
Have you tried the Toggle component?
A draft of UI element may help to understand the question more precisely.March 3, 2025 at 7:32 am #16216Mikhail
ModeratorThe Format field affects a command sending dialog. Could you make a screenshot of the command dialog?
-
This reply was modified 5 months, 3 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.