dwpang Member D Join Date Aug 2012 Location singapore Posts 68 Oct 17, 2012 #1 Hi guys, as attached in picture i have obtained the time (HHMM) from SW51. But is there any way i can get two internal words by separating SW51 to get HH and MM respectively? Thanks.
Hi guys, as attached in picture i have obtained the time (HHMM) from SW51. But is there any way i can get two internal words by separating SW51 to get HH and MM respectively? Thanks.
iant Lifetime Supporting Member + Moderator Join Date May 2002 Location Melbourne Posts 3,691 Oct 18, 2012 #2 these will help You need to perform Bit manipulation of the word
dwpang Member OP D Join Date Aug 2012 Location singapore Posts 68 Oct 18, 2012 #3 ya thanks! i solved it already by using the shift function. it is just weird i get the LSB which showed the MIN as 3000 instead of 30 in say example a timing 1430.
ya thanks! i solved it already by using the shift function. it is just weird i get the LSB which showed the MIN as 3000 instead of 30 in say example a timing 1430.
iant Lifetime Supporting Member + Moderator Join Date May 2002 Location Melbourne Posts 3,691 Oct 18, 2012 #4 I have not needed to use the function one of those things - learn it when I need it Have a great day