A character of the "Dynamic Text" assigned to the input “dtxt” is selected with the input “index” and written to the output “char”. The index 0 references the first character in the text. The output is set to 0 when the index exceeds the memory block of the “Dynamic Text”.

When using a target system with Unicode support the “Dynamic Texts” are coded in the UTF8 format. Then a Unicode character can consist of up to 3 consecutive bytes, which can be read only one by one with this function block.


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