This function retrieves an integer value from a hex string located in the RXD buffer.
This function operates using the RXD buffer.
Function Menu | Block Diagram |
---|---|
![]() |
![]() |
Name | Type | Description |
---|---|---|
index |
int32 |
Position in the RXD buffer from which reading should start. The first element of the buffer has an index of 0. |
Name | Type | Description |
---|---|---|
value |
int32 |
Read value. If no value is read, value = 0. |
Name | Description |
---|---|
Size | Number of bytes to extract from the buffer for conversion. Automatic - The function attempts to read up to 4 bytes (any value from 1 to 4). 1 - The function reads no more than 1 byte. 2 - The function reads no more than 2 bytes. 4 - The function reads no more than 4 bytes. |
Byte Order | The byte order used when copying data from the RXD buffer and subsequently converting it to obtain the output value. For example, if the RXD buffer contains [01,02,03,04,05...] , and Size = 4:Little-endian: value = Big-endian:0x04030201 = 67305985 value = Big-endian (2 bytes):0x01020304 = 16909060 value = 0x03040102 = 50594050 |
Signed | When this flag is set, the function interprets the read data as a negative number if the most significant bit is 1. |