If you are in need of a paid programmer to write your Unitronics’ project, post here to look for someone in your area. **Disclaimer: Unitronics bears no responsibility. This is just a place for people to find each other**
If you are a Unitronics programming guru looking for projects, post here to look for someone in your area. **Disclaimer: Unitronics bears no responsibility. This is just a place for people to find each other**
It's hard to make sense of what you're trying to do. There is an HMI Timer display that will display an actual timer in any format you choose. If you want to copy the timer preset or current into an integer register, use the Load Timer/Counter Preset or Load Timer/Counter Current functions. For those, I recommend that you use an ML rather than an MI since the Preset and Current are in units of 10ms.
If you are trying to manipulate clock time, then there are System Integers (SI) that have the hours, minutes, and seconds already separated for you.
I create a timer with MI (Memory Integrer) and MB (Memory Bits) and then I tried to display the current value with the time function. Problem is : the display of the timer is a hexadecimal value. I tried to use others function like "UTC to RTC" or "Numerics" but I don't know how to get the display of the current time and the elapsed time of the timer I made.
Wanted display : HH : MM : SS (decimal value)
The timer look like :
MI 1 : Preset
MI 2 : Current
MI 3 : Elapsed
And there is others nets to manage the proper functionning of the timer.
I know that it's possible to use the basic timer already set in the PLC but I don't want to use them.