CT displayed in VAR

Hi folks,
 
Question about how time (or date) is displayed in a VAR in the GUI.....
 
When I do this (SET VAR1 14:25:00), I get this (923904) displayed in in VAR1.
 
What is that number? Is it some amount of time since something? Or the time converted to some other format? is there any way to read it with out a converter or calculator?
 
Obviously the PLC knows what to do with it since I ran some tests and things work as expected.
 
Thanks,
 
Mike
 
 
 
When you set VAR to 14:25:00, that is not a number,  logic did a conversion, by shifting two bytes at a time, it is not a 32bit number.   SET command set whatever the proper value into proper variable. VAR is a 32bit number, so that you can convert the number of seconds and store it in VAR.  PLC understand that conversion because it thought you were setting current time, not setting VAR.
 
Ok, so I think I get it......

Time =14:25:00

14 = 0e hex
25 = 19 hex
00 = 00 hex

0e1900 convert to integer 923904 which is what I see in VAR1

Thanks,

Mike
 
Back
Top