Forum Replies Created
-
AuthorPosts
-
MikhailModeratorI recommend to create input channels to show current values of hour and minute variables in order to control them.
MikhailModeratorApparently the calculated channel data never appears correctly in the Scada Comm device data which I was using to check the data changes. It only appears in Scada Web.
Definitely 🙂
Now how can I send the hour and minute parameters from the output channel to my flag channel ?
Add the variables into Formulas table:
int hour = 0; int minute = 0;
Add the code into Formulas table:
double SetHour() { hour = (int)CmdVal; return double.NaN; }Use the above formula for an output channel.
Note: I don’t test code which I write in this forum. It’s just a direction for experiments.
MikhailModeratorIt’s strange. Did you pass the changes to Server and restart Server service?
Try simplifying the formula of an input channel.
First of all, try the formula: 1
Then try: DateTime.Now.Minute
MikhailModeratorSend me, please, an email request for price estimation. Also attach full description of the communication protocol.
Email address is here
MikhailModeratorYou need to develop by yourself or purchase development of a device driver.
Read Device Drivers Development
Source code examples are here
MikhailModeratorWhat communication protocol is supported by the device?
MikhailModeratorI didn’t write: you have to change channel type to Calculated real.
MikhailModeratorI mean that you should enter the whole CheckTime() function in Formulas table. Then enter just CheckTime() in Input channels table.
MikhailModeratorThe simple formula example:
double CheckTime() { DateTime nowDT = DateTime.Now; return nowDT.Hour == 1 && nowDT.Minute == 0 ? 1 : 0; }
MikhailModeratorDo you need a special time for sending command or just a period of doing it?
How accurately you need to define a time? Is it enough to set hour only or hour and minutes?
MikhailModeratorIn this case you should use another approach:
Create an input channel as a flag and check time in the channel’s formula. Then create a trigger that fires on the flag value.
To change the timer counter according to a command you need an output channel.
MikhailModeratorHello,
Please describe your task in details. Why do you need it?
MikhailModerator10 min after start Server service. What is in the module log?
MikhailModeratorThe default password is 12345. Try to enter it and look 🙂
-
AuthorPosts