rapidscadaaks

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 45 total)
  • Author
    Posts
  • in reply to: Logs #16843
    rapidscadaaks
    Participant

    Thanks. Issue resolved

    in reply to: Logs #16825
    rapidscadaaks
    Participant

    Hi 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

    in reply to: Logs #16817
    rapidscadaaks
    Participant

    Hi 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

    in reply to: Logs #16812
    rapidscadaaks
    Participant

    Hi
    The screenshot having various Command lines is from the log file
    The screenshot having Trigger configuration is from Automatic Control Module (“ACM”) page

    I 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

    in reply to: Logs #16810
    rapidscadaaks
    Participant

    https://ibb.co/6cx1CvYD
    https://ibb.co/YBMb0Prq

    Hi
    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.
    in reply to: Logs #16808
    rapidscadaaks
    Participant

    ID starts with 7537….

    rapidscadaaks
    Participant

    Thanks Mikhai

    rapidscadaaks
    Participant

    Hi

    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

    rapidscadaaks
    Participant

    Hi 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

    rapidscadaaks
    Participant

    Hi 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

    rapidscadaaks
    Participant

    Hi Mikhail

    Is it possible to use time trigger in ACM to write 0 or 1 to a channel ?

    rapidscadaaks
    Participant

    Hi
    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

    rapidscadaaks
    Participant

    Hi

    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

    rapidscadaaks
    Participant

    The solution works.
    Many thanks for the guidance.

    rapidscadaaks
    Participant

    Hi
    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

Viewing 15 posts - 1 through 15 (of 45 total)