Read a value from the TXD (transmitting) buffer.
The TXD buffer size is 64 bytes.
This function operates using the TXD buffer.
Function Menu | Block Diagram |
---|---|
![]() |
![]() |
Name | Type | Description |
---|---|---|
index |
int32 |
Position in the TXD buffer from which reading should start. The first element of the buffer has an index of 0. |
size |
int32 |
Number of bytes to read from the TXD buffer. Valid values range from 1 to 4. |
Name | Type | Description |
---|---|---|
value0 |
see note | Read value 0. |
value1 |
see note | Read value 1. |
... | .. | ... |
valueX |
see note | Read value X. The number of outputs is regulated by the "Number of Outputs" setting. |
The function's behavior depends on the data type:
➜ If the
value
output is connected to a variable of type Float and the Type setting is int32/float, the function reads data from memory using the IEEE754 standard. This method should be used for values transmitted in Float format (e.g., value 12.6).➜ Otherwise, the function reads data as Int32.
Conversion is performed automatically using the hidden functions FROM_FLOAT and TO_FLOAT.
Name | Description |
---|---|
Number of Outputs | This setting regulates the number of outputs valueN . |
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 = 0x04030201. “Big-endian”value = 0x01020304. “Big-endian (2 bytes)”value = 0x03040102. |
Signed | If this flag is set, the function will interpret the read data as a negative number if the most significant bit is 1. |