1
Displays / Re: Generating unicode symbols in C POUs (DM430E)
« Last post by Matt_Eng on August 18, 2022, 09:52:57 PM »Well, I tried routing a WSTRING across from the ST POU without success. So I guess that won't work.
Using the function to converting it to a string worked though.
FUNCTION ST_GetString : DINT
VAR_OUTPUT
sMyString : STRING[20];
END_VAR
VAR
sTempString : WSTRING[10];
END_VAR
sTempString := "°Test 12 %";
sMyString := WSTRING_TO_STRING(sTempString);
Using the function to converting it to a string worked though.
FUNCTION ST_GetString : DINT
VAR_OUTPUT
sMyString : STRING[20];
END_VAR
VAR
sTempString : WSTRING[10];
END_VAR
sTempString := "°Test 12 %";
sMyString := WSTRING_TO_STRING(sTempString);