× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



He... I have an example (nah.. two) of Hi-/Lo endian here:

www.Think400.dk/adhoc_5.htm#eks0001

reading one byte from a PLC in hex, converting it to decimals and then again
converting it to binary and then flip it from High-endian to Low-endian.

Leif
----- Original Message ----- 
From: "Rory Hewitt" <roryhewitt@xxxxxxxxx>
To: "RPG programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Sent: 21. juli 2006 17:53
Subject: Re: Binary Bit Map


Mark,

You should be aware that most computer languages (including, I think, RPG)
will refer to the first bit as bit 0 and the last bit as bit 7 (rather than
1 to 8). I've been caught by this in the past (thinking some documentation
is talking about one bit when they're actually talking about a different
one). And don't get me started on big-endian and little-endian (feel free to
Google these terms to get even more confused :-()

Rory




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.