06-30-2023, 08:57 PM
(06-30-2023, 10:55 AM)GianniPower Wrote: Hi,
Sorry if I wasn't clear.
I want to send the value from application to plc.
In a different widget I want to see the timer running time but I can only get the value as a decimal, for example 16,75 hours
Yes you can.
The app can convert a variable in seconds or milliseconds to time formated value.
In this video: https://virtuino.com/downloads/videos/time.mov
the variable V0 contains a number that can be displayed as seconds or as time with format hh:mm
![Confused Confused](https://virtuino.com/forum/images/smilies/confused.png)
Using a script you can convert the seconds of the variable V0 to minutes or any other value you want to send to PLC.
You have to replace the Emulator 1 with the PLC variable. The every time you change the time the app will send the converted value to PLC.
This happens because the value is stored in the 0 as milliseconds or seconds.
I hope to help you