The function sequentially reads the RXD buffer for each valueX output. The reading starts at the index position. The function reads size bytes and passes them to the valueX output. Then, the reading index shifts by size, and the next valueX output is read. As a result, the function reads a byte range from index to (index + (size * N) - 1).
The function uses the RXD buffer
Function Menu | Block Diagram |
---|---|
![]() |
![]() |
Name | Type | Description |
---|---|---|
index |
int32 |
Position in the RXD buffer from which reading starts. The first element of the buffer has an index of 0. |
size |
int32 |
Number of bytes to read from the RXD buffer into each valueX output. Valid values: 1 to 4 |
Name | Type | Description |
---|---|---|
value0 |
see note | Read value 0. |
... | ... | ... |
valueN-1 |
see note | Read value N-1. The number of output lines is determined by the "Number of Outputs" setting. |
Function behavior depends on the data type:
➜ If a FLOAT variable is connected to the valueX output and the size input = 4, the function reads data from the buffer using the IEEE754 standard. This method is necessary for values stored in Float format (e.g., value 12.6).
➜ Otherwise, the function records data as Int32.
Conversion is performed automatically using hidden functions FROM_FLOAT and TO_FLOAT.
Name | Description |
---|---|
Number of Outputs | Number of value outputs. |
Byte Order | The byte order used when copying buffer elements to the value output. For example, if RXD = [01,02,03,04,05,...] , index = 0, size = 4:"Little-endian" value = "Big-endian"0x04030201 value = "Big-endian (2 bytes)"0x01020304 value = 0x03040102 |
Signed | If the flag is set, the function interprets the read data as a negative number if the most significant bit is 1. |