Forum Replies Created
-
AuthorPosts
-
Mikhail
ModeratorSeems, 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.
Mikhail
ModeratorHi,
In Chart and Chart Pro plugins, the X axis is always time, Y axis is value.Mikhail
ModeratorHi,
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 #16799Mikhail
ModeratorOther 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 #16797Mikhail
ModeratorHi,
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 #16795Mikhail
ModeratorHi,
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 2 months, 1 week ago by
Mikhail.
August 5, 2025 at 11:45 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16791Mikhail
ModeratorHi,
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 2 months, 1 week ago by
Mikhail.
August 4, 2025 at 11:01 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16787Mikhail
ModeratorHi,
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 #16785Mikhail
ModeratorAlternatively, 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 #16784Mikhail
ModeratorHi,
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 #16776Mikhail
ModeratorI 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.
Mikhail
ModeratorThird, create formulas to insert phone number into commands.
Mikhail
ModeratorHi,
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.Mikhail
Moderator> how to use data of 2 channels for returning 1 or 0
Could you provide an example as text?Mikhail
ModeratorHello,
Please clarify the question and the title. -
This reply was modified 2 months, 1 week ago by
-
AuthorPosts