Description:
This method removes some bits from the middle of the current field and moves the left part of the field over to the remaining bits on the right. The first parameter is the number of bits on the right side to keep, and the second parameter is the number of bits in the middle to delete.
If the raw data in a 16-bit field is 0x5A8F (binary 010110101000111) and it is retrieved using (SplitField 7 1), the low 7 bits are preserved, the high bit of the low byte is discarded and the remaining bits are right-shifted one place to produce a result of 0x2D0F (binary 00101101 00001111).
Parameters:
|
[Required] |
Int |
"Number of bits on right side to preserve" |
|
|
[Required] |
Int |
"Number of bits to delete" |
|
Example:
FIELD parity (Fixed 5) RETRIEVE (SplitField 2 6) (Hex) "Parity"