lostcontrol
Lifetime Supporting Member
Hi,
I am trying to display a Time on the display that is linked to the PLC time, which in turn is linked to the SCADA time. This is used mainly for breaks etc, so that everyone is in sync with each other.
I have this working, to about 95%. Where it is not what I want, is padding zero's to the values if they are less than 10.
I have tried concatenating a zero to the value when less than 10, but the Inview unit does not want to recognise the leading zero's.
The string that is built is '$16 x \0\1 $r'm where x is the value I want to display.
This application was built by others, so I don't understand completely how it works. But I am assuming that the $16 is to indicate the data is being transmitted as Hex, the \0\1 is about what variable to update & the $r is the terminator.
Does anyone have any suggestions to this string to what could be causing this? Or could it be the Inview unit config itself?
The InView software has the option for padding, but only for 5 zero's. I only want to pad by 1!
It is working for now, but when the time is 8:01:02, the unit displays 8:1:2, which is just not right.
I am trying to display a Time on the display that is linked to the PLC time, which in turn is linked to the SCADA time. This is used mainly for breaks etc, so that everyone is in sync with each other.
I have this working, to about 95%. Where it is not what I want, is padding zero's to the values if they are less than 10.
I have tried concatenating a zero to the value when less than 10, but the Inview unit does not want to recognise the leading zero's.
The string that is built is '$16 x \0\1 $r'm where x is the value I want to display.
This application was built by others, so I don't understand completely how it works. But I am assuming that the $16 is to indicate the data is being transmitted as Hex, the \0\1 is about what variable to update & the $r is the terminator.
Does anyone have any suggestions to this string to what could be causing this? Or could it be the Inview unit config itself?
The InView software has the option for padding, but only for 5 zero's. I only want to pad by 1!
It is working for now, but when the time is 8:01:02, the unit displays 8:1:2, which is just not right.