manjey73

Forum Replies Created

Viewing 15 posts - 91 through 105 (of 904 total)
  • Author
    Posts
  • in reply to: Logs #16813
    manjey73
    Participant

    Try adding commands to the messages that ACM understands. For example {CnlNum} and others

    https://rapidscada.net/docs/en/latest/modules/mod-auto-control

    in reply to: Logs #16811
    manjey73
    Participant

    And 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?

    in reply to: Logs #16809
    manjey73
    Participant

    Please show me the screenshots of what exactly do you want to see?

    manjey73
    Participant

    return (Timestamp.Minute >= 0 && Timestamp.Minute < 6) && (……)

    manjey73
    Participant

    The time has a Minutes parameter, so you can check for >=0 && <=30 in the script.
    and in addition to checking the required hour.

    manjey73
    Participant

    There 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

    manjey73
    Participant

    Add it to the script table.
    In the Calculated channel, write the input formula CheckHour(8, 20)

    manjey73
    Participant
    public 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.

    manjey73
    Participant

    It 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 7 months, 2 weeks ago by manjey73.
    manjey73
    Participant

    if(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 ???

    in reply to: Auto Control Module Configuration Errors #16746
    manjey73
    Participant

    It seems to be easy to switch between these versions by simply copying files without affecting the Config folder (I do this). And updating all modules and other relevant ones.

    I recommend 6.4.1 – now there is no need to create your own windows to display the PC code, and you can use a regular window with your own PC code file and your own links in the registration window 🙂

    in reply to: Auto Control Module Configuration Errors #16745
    manjey73
    Participant

    Rapid SCADA 6.2.0 (27.01.2024)
    Server 6.2.0.0

    Apparently, your Scada version is still 6.2.0

    in reply to: Auto Control Module Configuration Errors #16744
    manjey73
    Participant

    There was a similar error when switching from version 6.3.X to 6.4.x, or even when switching to 6.3.X, some methods changed there. And it’s possible that your module version doesn’t match the kernel version.
    Check the version history in the documentation

    in reply to: Installation errors #16743
    manjey73
    Participant

    NetFramework 4.8 and Dotnet 8 are different systems.
    You need to install two components from dotnet 8 according to the installation description.
    Current version 8.0.18

    https://dotnet.microsoft.com/en-us/download/dotnet/8.0

    Hosting Bundle and .NET Desktop Runtime 8.0.18

    in reply to: Installation errors #16738
    manjey73
    Participant

    What errors are indicated during installation?

Viewing 15 posts - 91 through 105 (of 904 total)