Forum Replies Created
-
AuthorPosts
-
PVO
ParticipantHi 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.
PVO
ParticipantI tried to make my script smarter by using PrevVal() but I’m afraid that PrevVal is not supported in version 5…
PVO
Participantok, 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)
PVO
ParticipantSome 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…
PVO
ParticipantI’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?
PVO
ParticipantSorry, one more question:
How can I set the timestamp channel to undefined in version 5?
PVO
ParticipantProblem solved 🙂
PVO
ParticipantThank 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?
PVO
ParticipantThank 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(),….)
PVO
ParticipantFound it… problem solved.
PVO
ParticipantHi,
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 -
AuthorPosts