Forum Replies Created
-
AuthorPosts
-
MikhailModeratorHi,
If I set this to “Channel Status Has Changed”, some event would possible get logged when the Status changes to 1 which I can later review.
Try “Channel Data Has Changed” or “Channel Status Has Changed”. Play with it.
MikhailModeratorHello,
What Rapid SCADA version do you use?
Press F12 to open browser tools. In the Console tab there are additional info about scheme loading.
MikhailModeratorHi,
May be you could setup generating events for those channels to control when they change.
MikhailModeratorSeems, that a good approach would be to change a communication protocol. It would be more efficient to receive bunch of data that contains many data points.
MikhailModeratorHi,
In Chart and Chart Pro plugins, the X axis is always time, Y axis is value.
MikhailModeratorHi,
The module writes to its own log file.
Open Administrator – Instances – Default – Server – Logs, then set the log filter to modules.August 7, 2025 at 1:31 pm in reply to: Auto Control Module : Multichannel Trigger between specific time #16799
MikhailModeratorOther explanation is that I’ve written too many code in JavaScript recently, so I messed up C# and JavaScript 🙂
August 7, 2025 at 1:29 pm in reply to: Auto Control Module : Multichannel Trigger between specific time #16797
MikhailModeratorHi,
In Rapid SCADA 6 the script functions must be public. Otherwise the calculation engine cannot see them.August 6, 2025 at 2:27 pm in reply to: Auto Control Module : Multichannel Trigger between specific time #16795
MikhailModeratorHi,
So the result would be something likepublic double TimeToGetHigh() { int hour = Timestamp.Hour; // the Timestamp is a built-in property return (Timestamp.Minute >= 0 && Timestamp.Minute < 6) && (hour == 8 || hour == 12 || hour == 18 || hour == 22) ? 1 : 0; }-
This reply was modified 5 months, 1 week ago by
Mikhail.
August 5, 2025 at 11:45 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16791
MikhailModeratorHi,
Try the function below (not tested):function double TimeToGetHigh() { int hour = Timestamp.Hour; // the Timestamp is a built-in property return Timestamp.Minute == 0 && (hour == 8 || hour == 12 || hour == 18 || hour == 22) ? 1 : 0; }Note that UTC hour is used.
The channel input formula:TimeToGetHigh()
Channel type is calculated.-
This reply was modified 5 months, 1 week ago by
Mikhail.
August 4, 2025 at 11:01 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16787
MikhailModeratorHi,
Yes, it’s possible. Please describe the entire task, so I could suggest the better way. What do you plan to do with 0 and 1?August 4, 2025 at 10:38 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16785
MikhailModeratorAlternatively, use Auto Control Module and a time trigger.
August 4, 2025 at 10:37 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16784
MikhailModeratorHi,
I suggest some optimization:1. The above script creates an array on every call. It’s better to initialize the array only once.
2. Use the TimeOfDay property instead of creating new DateTime manually, and compare time spans.
August 1, 2025 at 11:58 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16776
MikhailModeratorI suggest using DateTime.UtcNow.Hour instead of DateTime.Now.Hour because converting universal time to local is slow. Of cause, modern computers don’t notice it.
MikhailModeratorThird, create formulas to insert phone number into commands.
-
This reply was modified 5 months, 1 week ago by
-
AuthorPosts