Forum Replies Created
-
AuthorPosts
-
MikhailModeratorThe above formula useful for constant strings.
If you need to set a string channel manually, use the output formula SetUnicode(). Input formula is empty.public byte[] SetUnicode() { if (ArrIdx == 0) { string s = CmdData == null ? "null" : Encoding.UTF8.GetString(CmdData); int dataSize = Channel.DataLen ?? 1; for (int i = 0; i < dataSize; i++) { string part = Substring(s, i * 4, 4); SetData(CnlNum + i, EncodeUnicode(part), 1); } } return CmdData; }SetAscii() can be developed in a similar way.
MikhailModeratorHello,
In a channel formula, use theChannelproperty. It provides access to the channel properties of the current channel.
There is no function to get properties of a channel by its number from scripts. This is available in the source code of a module.
MikhailModeratorSet the Data Length property of a channel.
Channel of length 1 can contain up to 4 Unicode characters.
If channel length > 1, virtual channels are created in memory. So the number (ID) of the next channel must be the number of the current channel + data length.
MikhailModeratorAll the above ideas can work.
A popup can be opened by an action script, or by changing a link URL.
MikhailModeratorHi,
Sure
Link
It is also can be found from here https://rapidscada.org/product/documentation/ then Additional documentation.
MikhailModeratorHi,
Thank you for the update.
MikhailModeratorA popup is a separate view that has its own view ID. There is an old good mechanism named scheme templates that is also supported by mimics. It allows to use only one MotorPopup.mim file for similar popups.
Example of the view arguments in the Views table:cnlOffset=200&titleCompID=4I suppose, you should add an export property to the faceplate to be able to set the view ID. By clicking the button the action script is executed to open a popup having the specified view ID.
MikhailModerator🙂
MikhailModeratorHi,
1. In the channel properties, clear the formulas.
2. In the Modbus template, remove nodes under the Commands node. Add a group of elements which is enough for reading and writing.December 26, 2025 at 3:27 pm in reply to: OPC DA to OPC UA pipeline: “uncertain” tags are becoming “BAD” #17495
MikhailModerator🙂
MikhailModeratorIf you tell me more about what you plan to implement, I will try to guide you.
MikhailModeratorProbably, you mean this document. It is not translated. Of course, we will prepare docs for mimics later.
Also useful:
Mimic Examples.zip
MyFaceplate.zip-
This reply was modified 3 months, 1 week ago by
Mikhail.
MikhailModeratorWhat is the channel type?
Does the channel tied to a physical device?
MikhailModeratorTo open something in a popup, you should create a view. It may be a hidden view to exclude it from the tree.
MikhailModeratorHi,
Faceplates are supported by new mimic diagrams.1. A faceplate (and any component) has the “On click” property that can be used to specify an action executed when the faceplate is clicked. Including an action to open another view in a popup.
2. If you need, for example, 2 buttons for different actions on a faceplace, it is more complex. In this case it’s needed to create new exported properties in the template. To be honest, I haven’t tried it yet.
-
This reply was modified 3 months, 1 week ago by
Mikhail.
-
This reply was modified 3 months, 1 week ago by
-
AuthorPosts