PVO

Forum Replies Created

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • in reply to: Hourly countdown formula #15614
    PVO
    Participant

    Hi Mikhail,

    Problem solved, by using an extra input channel, independent of data coming from communicator where I write status of the timer (running or not). This in combination with some extra boolean logic in the script makes it working perfectly.

    Thank you for your help! This is my first experience in script writing and I learned a lot.

    in reply to: Hourly countdown formula #15613
    PVO
    Participant

    I tried to make my script smarter by using PrevVal() but I’m afraid that PrevVal is not supported in version 5…

    in reply to: Hourly countdown formula #15612
    PVO
    Participant

    ok, that is probably the cause, but how can I fix that in a way that the timestamp is only written when the input changes from lo to hi?

    The function Timer48hactief is used as formulaname in channel 167 (= the actual input channel)

    in reply to: Hourly countdown formula #15609
    PVO
    Participant

    Some additional information about the question above:

    I use the following script in the input channel 167 that determines is the timer is active or not:

    double Timer48hactief()
    {
    if (Cnl==1)
    {
    SetVal(193,EncodeDate(DateTime.Now));
    }
    else
    {
    SetVal(193,0);
    }
    return Cnl;
    }

    Correct me if I’m wrong, but I suppose that the server should only execute the script when the input of the channel changes (from low to hi or from hi to low).

    So I don’t understand why the server writes a timestamp in input 193 every minute, even when the input on channel 167 does not change…

    in reply to: Hourly countdown formula #15608
    PVO
    Participant

    I’m almost there… However, I still have a little problem…

    As you suggested, when input changes from low to hi I write a timestamp in a calculated channel.

    This works for 1 minute. For some reason, he writes a new timestamp after exactly one minute even if the input did not change.

    What can be the reason that he writes a new timestamp after one minute and what can I do to fix this?

    in reply to: Hourly countdown formula #15600
    PVO
    Participant

    Sorry, one more question:

    How can I set the timestamp channel to undefined in version 5?

    in reply to: Hourly countdown formula #15599
    PVO
    Participant

    Problem solved 🙂

    in reply to: Hourly countdown formula #15595
    PVO
    Participant

    Thank you.

    Why do I still get errors CS1502 and CS1503 in the definition of the input parameter where I would like to write the timestamp?

    in reply to: Hourly countdown formula #15574
    PVO
    Participant

    Thank you for this answer, it helps me a lot.

    I have been trying some things, but I wonder…

    I am still working with Version 5.5.2.2 of Rapid Scada: could it be that some time functions are not available in this version? (Timestamp, Now(),….)

    in reply to: T° measurement error when < 0°C #11756
    PVO
    Participant

    Found it… problem solved.

    in reply to: Sending email by using Gmail sudden fail #10494
    PVO
    Participant

    Hi,

    I have a similar problem as the one mentioned in this topic.
    Since gmail no longer emailing without verification, I tried to configure yandex mail account.

    Server host: smtp.yandex.com
    Port: I tried both 25 and 465
    User: my yandex e-mailadres (I tried with and without @yandex.com)
    SSL is ON.

    I always get a time out when trying to send an e-mail…

    Kr,
    Philippe

Viewing 11 posts - 1 through 11 (of 11 total)