Forum Replies Created
-
AuthorPosts
-
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 10 months 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 10 months 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.
MikhailModeratorHi,
DrvSms allows commands like
+12345;message
So a phone number can stored as a channel value, and then used when generating command text. It requires some formulas.
First, try to send command to the specific phone number.
Second, try saving a phone number in a string channel and implement editing of it.
MikhailModerator> how to use data of 2 channels for returning 1 or 0
Could you provide an example as text?
MikhailModeratorHello,
Please clarify the question and the title.July 31, 2025 at 10:55 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16761
MikhailModeratorAlternatively, you can create a channel that can be 0 or 1 depending on the time, and use it in a multichannel trigger.
-
This reply was modified 10 months ago by
-
AuthorPosts