Berra Member B Join Date Mar 2007 Location Sweden Posts 137 Apr 24, 2007 #1 Hi How does a Convert hexa to a decimal formate in Stl??
L D[AR2P#0.0] Lifetime Supporting Member L Join Date Nov 2006 Location UK Posts 6,694 Apr 24, 2007 #2 Do you really mean hexadecimal to decimal ? - these are just different representations of the same data. Or do you mean BCD to decimal ?
Do you really mean hexadecimal to decimal ? - these are just different representations of the same data. Or do you mean BCD to decimal ?
Berra Member OP B Join Date Mar 2007 Location Sweden Posts 137 Apr 24, 2007 #3 hrm i mean when i use sfc1 i get the clock in hexaformat. then i whant to use the clock time 03 pm and what number is that in hexaformat?
hrm i mean when i use sfc1 i get the clock in hexaformat. then i whant to use the clock time 03 pm and what number is that in hexaformat?
L D[AR2P#0.0] Lifetime Supporting Member L Join Date Nov 2006 Location UK Posts 6,694 Apr 24, 2007 #4 The output from SFC1 is in BCD (binary coded decimal). The BTI instruction converts from BCD to decimal.
The output from SFC1 is in BCD (binary coded decimal). The BTI instruction converts from BCD to decimal.