Forum Replies Created
-
AuthorPosts
-
manjey73ParticipantYes, this is a problem, because depending on the task, a second reaction is necessary, for example, after restarting the server and module.
you can work around this by developing formulas, but this is not the right way, although it is the only one at the moment.
manjey73ParticipantThe Web Server converts the time to the time specified in its settings, if not specified, then to the local time.
The Scada Server stores the time in UTC.
This is a headache for me when developing drivers, because the time of the device may also be added, which is set in the 3rd time zone, different from the UTC server and different from the Web server 🙂
manjey73ParticipantFor example, in addition to the “Rocket” – execute the command, you need to add something else. Or to add to this the ability to work with links.
manjey73ParticipantProbably not, it’s a plug-in for tables as part of PlgMain. Most likely, it needs to be improved
manjey73ParticipantSpecify the required length for the channel, and set the next channel number based on the length of the previous one.
For example, Channel 200 is a String type, length 2, the next channel should be 202, since you set the length to 2 and occupied channels 200 and 201.
manjey73ParticipantTry adding commands to the messages that ACM understands. For example {CnlNum} and others
https://rapidscada.net/docs/en/latest/modules/mod-auto-control
manjey73ParticipantAnd where do these screenshots come from? from which application?
Well, the actual question is, what exactly do you want to see, is it not entirely clear from the words?
manjey73ParticipantPlease show me the screenshots of what exactly do you want to see?
August 6, 2025 at 8:32 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16794
manjey73Participantreturn (Timestamp.Minute >= 0 && Timestamp.Minute < 6) && (……)
August 4, 2025 at 4:55 pm in reply to: Auto Control Module : Multichannel Trigger between specific time #16790
manjey73ParticipantThe time has a Minutes parameter, so you can check for >=0 && <=30 in the script.
and in addition to checking the required hour.August 2, 2025 at 9:18 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16779
manjey73ParticipantThere are scripts that perform functions every hour. For example, returning a value to the channel
EveryHour(() => Val(101))
Here, the channel in which you wrote this script returns the value from channel 101.Instead of Val(101) maybe your function will check the hour value of 6,8, 10, and so on and return the desired value if it matches.
You can also use a time trigger in Auto Control Module
August 1, 2025 at 9:30 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16772
manjey73ParticipantAdd it to the script table.
In the Calculated channel, write the input formulaCheckHour(8, 20)August 1, 2025 at 9:26 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16771
manjey73Participantpublic double CheckHour(int hourLow, int hourHigh) { bool res = false; if(DateTime.Now.Hour >= hourLow && DateTime.Now.Hour < hourHigh) res = true; return Convert.ToDouble(res); }I specifically convert to double and apply public double so that I can apply the script inside another script.
Instead of DateTime.Now you can apply DateTime.UtcNow on the situation. You can also remove the hourLow and High ads and specify the required hours instead. But it looks more versatile this way.
I haven’t checked it in action.August 1, 2025 at 6:54 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16768
manjey73ParticipantIt seems to me that you need to do all this inside some kind of script with the return of the value through return.
public bool MyFunc() { bool res = false; if(hour() >= 8 && hour() < 20) res = true; return res; }And what exactly is hour() here?
-
This reply was modified 9 months ago by
manjey73.
August 1, 2025 at 6:51 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16767
manjey73Participantif(hour() >= 8 && hour() < 20)– That’s right, but what comes next is completely incomprehensible to the language., 1, 0)What did you want to get with your record? an analog
? 1:0??? -
This reply was modified 9 months ago by
-
AuthorPosts