en
cz

How to enter a time value in the HMI?

In the Merbon IDE HMI version 2.4.0.x, there is no HMI object that works with a time variable. In case we need to specify time in HMI (eg: alarm delay time see picture below - delay_time variable), it is possible to use Analog Setter object, which "works" with numerical variables such as real, int, ... This we then convert the number in the program to a time value (time variable format) using the mul_time block.

If we want to convert the entered number in the HMI to seconds, we set the parameters of the mul_time block, for example, as follows:

If the number is converted to minutes, the value of the input In1 of type time could be eg t#1m, to hours t#1h, etc.