CONCAT two wstrings in codesys

1k views Asked by At

I have the problem that the CONCAT(str1, str2) function does not take two wstrings and I have not found a concat function for wstring. So how should I do it?

I cannot convert the input to string and then back to wstring as I then loose information of the string. This ws_textOut:=STRING_TO_WSTRING(CONCAT("E ", WSTRING_TO_STRING(ws_TextIn))); does not work.

1

There are 1 answers

0
Roald On BEST ANSWER

You can use WCONCAT to concatenate them.