Forum Replies Created
-
AuthorPosts
-
rapidscadaaks
ParticipantThanks. Issue resolved
rapidscadaaks
ParticipantHi Mikhail
Thank you for indicating the solution.
I am basically tracking status of individual devices on each of the Communication Lines and when any of the devices returns Status as 1, I receive a Telegram notification informing issue in the particular Communication Line. In this setup I do not know which device had the issue.
As you have suggested, generating events for the individual devices would be helpful. In Rapidscada Channel configuration, there is “Event Mask”. 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. Please assist / guide.Thanks
rapidscadaaks
ParticipantHi Mikhail
I found the module log. The log however does not show which channel in the multi channel trigger caused the command to get fired (there are six channels with “OR” option and if any of the six returns 1 as a value, command gets fired). Please suggest.
Thanks
rapidscadaaks
ParticipantHi
The screenshot having various Command lines is from the log file
The screenshot having Trigger configuration is from Automatic Control Module (“ACM”) pageI am trying to rephrase my issue :
There is a multichannel trigger configured in the ACM which checks status of various channels and if the value of any of the channels is 1, alert is sent using Telegram.
What I need to know is which channel returned the value 1 causing the alert to be sent.I hope my above explanation is better
Thanks
rapidscadaaks
Participanthttps://ibb.co/6cx1CvYD
https://ibb.co/YBMb0PrqHi
Above links contain images for ACM Trigger and Logs
In the Logs there are lines Command with ID ….
I need to see the details of the ID to know which of the Triggers failed.Basically, I need to troubleshoot to know which of the triggers in the multichannel trigger caused the command to be sent.
Thanks
-
This reply was modified 2 weeks, 6 days ago by
Mikhail.
rapidscadaaks
ParticipantID starts with 7537….
August 8, 2025 at 12:56 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16800rapidscadaaks
ParticipantThanks Mikhai
August 7, 2025 at 1:43 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16796rapidscadaaks
ParticipantHi
Thank you. Just one last question on this topic :
Rapidscada stopped working with I added the above script. When I replaced “function” with “public”, Rapidscada started working. Please explain.Thanks
August 6, 2025 at 1:03 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16793rapidscadaaks
ParticipantHi Mikhai
Many thanks. Just need a small tweak so that value 1 remains as 1 for a duration of 5 minutes each time. I think==0 will need change
Thank you once again
August 4, 2025 at 11:27 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16788rapidscadaaks
ParticipantHi Mikhail
There are certain multichannel triggers already configured in ACM. I want these multichannel triggers to be active at certain times during the day, say at 0800, 1000, …. 2130 for a period of 30 minutes each time. I cannot use time trigger directly since combining time trigger with multichannel trigger is not feasible.
I therefore considered creating a channel which gets updated to 1 at the required times and 0 at other times.
If feasible, I would like to create a time trigger to write 1 in a created channel at required times and another time trigger to write 0 to the same channel 30 minutes after the “1” time. This channel would be added to the multichannel triggers and therefore would get triggered only if the value of the channel is 1.
Please guide
Thanks-
This reply was modified 3 weeks, 6 days ago by
rapidscadaaks.
August 4, 2025 at 10:58 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16786rapidscadaaks
ParticipantHi Mikhail
Is it possible to use time trigger in ACM to write 0 or 1 to a channel ?
August 4, 2025 at 10:05 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16781rapidscadaaks
ParticipantHi
I actually need a script that toggles between 0 and 1 at specific times during the day.
I did some search and came across the following script:double ToggleAtSpecificTimes(DateTime currentTime)
{
DateTime[] toggleTimes = new DateTime[]
{
new DateTime(currentTime.Year, currentTime.Month, currentTime.Day, 8, 0, 0), // 08:00 AM
new DateTime(currentTime.Year, currentTime.Month, currentTime.Day, 12, 0, 0), // 12:00 PM
new DateTime(currentTime.Year, currentTime.Month, currentTime.Day, 18, 0, 0), // 06:00 PM
new DateTime(currentTime.Year, currentTime.Month, currentTime.Day, 22, 0, 0) // 10:00 PM
};
{
if (currentTime.Hour == toggleTime.Hour && currentTime.Minute == toggleTime.Minute)
{
return 1; // Return 1 at the specified times
}
}
return 0; // Default to 0 at all other times
}I copied the above in the Scripts table and Rapidscada worked without any issues.
However when I added a Channel and in formula used ToggleAtSpecificTimes(DateTime.Now), Rapidscada stopped working.Please guide
Thank you in advance
-
This reply was modified 3 weeks, 6 days ago by
rapidscadaaks.
August 1, 2025 at 11:44 pm in reply to: Auto Control Module : Multichannel Trigger between specific time #16778rapidscadaaks
ParticipantHi
Just one more guidance.
If a channel is required which should return 0 or 1 at specific time say 6, 8, 10, 12, 14, 16, 18 and 20 hours, what would the script be ?
Appreciate your help and assistance
August 1, 2025 at 11:34 pm in reply to: Auto Control Module : Multichannel Trigger between specific time #16777rapidscadaaks
ParticipantThe solution works.
Many thanks for the guidance.August 1, 2025 at 7:21 am in reply to: Auto Control Module : Multichannel Trigger between specific time #16770rapidscadaaks
ParticipantHi
I picked up if(hour()… from google search.From the record I would like an output of 0 or 1 to be able to access from multipoint trigger in automatic control module.
Basically i would like to create a channel that can be 0 or 1 depending on the time, and use it in a multichannel trigger.
Please guide
Thank you in advance
-
This reply was modified 2 weeks, 6 days ago by
-
AuthorPosts