I am trying to create a template for our NanoLine controller using your software. We have 32 bit registers that can be formatted in HH:MM:SS. The first byte is seconds, the second byte is minutes, third bytes is hrs. I cannot figure out how to display this properly as HH:MM:SS. I’ve been trying to use the examples on page 61/100 of your 2.2.7 version of the manual, but have not been able to piece this together. Can you please offer a suggestion? I’m sure I have many mistakes, but please believe me, I have tried many different ways to get this to work without any success.
This uses division and modulo operators to extract the relevant parts of the number and then converts them to a properly formatted string. This assumes seconds are on the least significant byte, if it is opposite you just need to reverse the partial expressions extracting the bytes.