CCS Standardfunction   BlockStr [Str]
 

BlockStr [Str]

StartByte [INT]

StopByte [INT]

Description of Function

This function can only be carried out after a read operation by the function ComBlock or CANBlock IDH_ComBlock . It returns a string as its result. It does so by returning the bytes specified in the column Testing Parameters from the loaded measured data block as ASCII characters.

Testing Points

None

Parameters

StartByte

Number of the first byte of the measured data block (with n bytes) to be included in the result.
1 <= StartByte <= n. More information on the protocols can be found in the description of the function ComBlock.

StopByte

Number of the last byte of the measured data block (with n bytes) to be included in the result.
1 <= StopByte <= n. More information on the protocols can be found in the description of the function ComBlock.

Example

Reading a five-character control-unit date (Byte 1 to Byte 5):

Byte 1 = 0101 0010 (,R` = 52H); Byte 2 = 0100 0010 (,B` = 42H); Byte 3 = 0011 0001 (,1` = 31H)

Byte 4 = 0011 0010 (,2` = 32H); Byte 5 = 0011 0011 (,3` = 33H)

Result [String]

BlockStr

1,5

RB123

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 [String]

B_Nr=BlockStr

2,6

n4nnn

StrToHexString

B_Nr, 0

1234567890