CCS Standardfunction   BlockInt [INT/ Hex/ Bin/ Oct]
 

BlockInt [INT/ Hex/ Bin/ Oct]

LowByte [INT]

HighByte[INT]

Description of Function

This function can only be carried out after a read operation by the function ComBlock or CANBlock IDH_ComBlock . As its result, it returns the bytes specified in the column Testing Parameters from low byte to high byte of a loaded measured data block and interprets them as integers.
If LowByte = HighByte, the result returned is only one byte.

Testing Points

None

Parameters

LowByte

Number of the low byte of a loaded measured data block with n bytes.
1 <= LowByte <= n. More information on the protocols can be found in the description of the function ComBlock.

HighByte

Number of the high byte of a loaded measured data block with n bytes.
1 <= HighByte <= n. More information on the protocols can be found in the description of the function ComBlock.

Example

Reading a 2-byte number from the control unit:

Byte 1 = 0101 0010; Byte 2 = 0100 0010;

Result

BlockInt

1,2

21058 [Int]

BlockInt

1,2

5242 [Hex]

Reading the 10-digit BOSCH no. 1 234 567 890 whose digits are stored as hexadecimal numbers.

Byte 2 = 0001 0010 (12 Hex); Byte 3 = 0011 0100 (34 Hex); Byte 4 = 0101 0110 (56 Hex)

Byte 5 = 0111 1000 (78 Hex); Byte 6 = 1001 0000 (90 Hex)

Result [Hex]

BlockInt

2,6

1234567890