At the position, which is set at the input “index”, the character assigned to the input “char” is written into the "Dynamic Text", which is connected to the input “dtxt”. The output “result” provides a HIGH signal after the successful writing. The index 0 references the first character. The character is not written, if the index exceeds the memory block of the “Dynamic Text”. Furthermore the last byte that is reserved for the terminating 0 cannot be changed with this function block.

When using a target system with Unicode support the “Dynamic Texts” are coded in the UTF8 format. Only single bytes can be set with this function block. Therefore up to three function block calls can be needed to write a Unicode character.


Name I/O Type(s) Function
dtxt I/O DYNTEXT Text
char I UCHAR Character
index I WORD Position
result O BIT Write flag