nikucolor
Hello everyone. I have a request for you. I use open plc together with fuxa scada. I would like to change the time on a timer in fuxa scada. Can someone tell me how to do the programming in Open plc and of course in fuxa. I will take as an example..Blink from open plc. That is, can I change the time of 500ms that is now in blink to 3000ms for example. But I want to do it from scada. Thank you
Reply 0 0
AndBat
Yes. That’s exactly why we need OPC-UA on OpenPLC
Also pointers will be appreciate...I'm a big fan of. 😂  Thanks for your time and for the great job.
Reply 1 0
nikucolor
multumescfrumos
 
Multumesc,o seara frumoasa
Okay, it works very well in the scada program. To put minutes or hours instead of ms I suspect I have to divide by another value or am I wrong. Can you tell me what value is needed for minutes and hours? 1s = 1000ms, 1min = 60s. divide by 60.0? Maybe I'm talking nonsense, I apologize, but I don't know where to get information like this. thanks
Reply 0 0
AndBat
For what I understood from thiago code, REAL_TO_TIME consider integer part as second and decimal part as ms. To write a value in second should be (value×1000.0)/1000.0 that is equal to value.
To write a value in minutes (value×60.0×1000.0)/1000.0 that is equal to value×60.0.
To write a value in hours (value×3600.0×1000.0)/1000.0 that is equal to value×3600.0.
Reply 0 0
nikucolor
multumesc
Reply 0 0
Reply