The function performs sequential writing of valueN values, ranging from 1 to 4 bytes, into the TXD buffer, starting at position index.
Unlike TXD_INIT, this function only affects bytes within the range index to (index + (size * N) - 1).
The function uses the TXD buffer
Function Menu | Block Diagram |
---|---|
![]() |
![]() |
Name | Type | Description |
---|---|---|
enable |
bool |
If true, the value is written to the buffer. |
index |
int32 |
Position in the TXD buffer from which writing starts. |
size |
int32 |
Number of bytes taken from valueN and written to the buffer (from 1 to 4 bytes). |
value0 |
float int32 |
Operand at input 0. |
value1 |
float int32 |
Operand at input 1. |
... | ... | ... |
valueN-1 |
float int32 |
Operand at input N-1. The number of input lines is configured in the "Number of Inputs" setting. |
Function behavior depends on the data type:
➜ If a Float variable is connected to value and the Type setting is int32/float, the function writes data to the buffer following the IEEE754 standard. This approach is required for values transmitted in Float format (e.g., value 12.6).
➜ Otherwise, the function writes data as Int32.
Conversion is performed automatically using hidden functions FROM_FLOAT and TO_FLOAT.
Not available
Name | Description |
---|---|
Number of Inputs | Defines the number of input lines 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" (Least Significant Byte first) value = "Big Endian" (Most Significant Byte first)0x04030201 value = "Big Endian (2-byte swaps)"0x01020304 value = 0x03040102 |