Martin T
Member
Hey All,
I'm trying to show a 9 hour program time countdown on a touchscreen. Using SLC5/04 1747-L542. I've set my code up trying to use S:14 and S:13 to show format HR:MIN:SEC, but all I'm getting from S:14 and S:13 are zero's.
sub t4:1.pre - t4:1.acc n7:12
div n7:12 / 3600 n7:13
mov S:14 n9:3
mov s:13 n7:14
div n7:14 / 60 n7:15
mov s:14 n9:4
mov s:13 n9:5
N9:3 should be my Hours
N9:4 Minutes
N9:5 Seconds
Is there something that has to be set to use S:13&14? I've done this before but can't find my old code to verify and the code that was finally used another guy didn't understand it so he deleted it.
Thanks
I'm trying to show a 9 hour program time countdown on a touchscreen. Using SLC5/04 1747-L542. I've set my code up trying to use S:14 and S:13 to show format HR:MIN:SEC, but all I'm getting from S:14 and S:13 are zero's.
sub t4:1.pre - t4:1.acc n7:12
div n7:12 / 3600 n7:13
mov S:14 n9:3
mov s:13 n7:14
div n7:14 / 60 n7:15
mov s:14 n9:4
mov s:13 n9:5
N9:3 should be my Hours
N9:4 Minutes
N9:5 Seconds
Is there something that has to be set to use S:13&14? I've done this before but can't find my old code to verify and the code that was finally used another guy didn't understand it so he deleted it.
Thanks