Greetings, I have a modbus device that sends me the hours and minutes through two channels and I would like to know how to display them in a dynamic text box in hh: mm format and then modify and resend it.
To display:
Create a 3rd input channel of the Calculated real type.
Use a formula for this channel. Something like EncodeDate(new DateTime(1, 1, 1, Val(101), Val(102), 0))
where 101 and 102 are the channels for hours and minutes.
Set the format of the new channel to Time.
When the above works, let’s think how to set the time.