Quantcast
Channel: Modicon / Telemecanique / Schneider Electric Latest Topics
Viewing all articles
Browse latest Browse all 461

converting word

$
0
0

I have a problem with converting a server word. I'm trying to put the seconds in my program trough %SW50. But this is counting like this:

0000 0111 = 7
0000 1000 = 8
0000 1001 = 9
0001 0000 = 10
0001 0001 = 11

But i forgot how this is called. How do i convert this to:

0000 0111 = 7
0000 1000 = 8
0000 1001 = 9
0000 1010 = 10
0000 1011 = 11

And is this second style integer?


Viewing all articles
Browse latest Browse all 461

Trending Articles