1
Displays / Re: Generating unicode symbols in C POUs (DM430E)
« Last post by williamk on Today at 04:34:59 PM »I'm actually able to work with STRINGs in C-POUs, but run into issues when I try to use WSTRINGs which would support characters that are outside of the base ASCII set.
Using STRING to try to print the degree symbol gives me the following warning and will compile but won't print correctly once it's installed and running on the display.
- illegal character encoding in string literal In: wDiagSignals Line: 282 Column: 38 Category: Lexical or Preprocessor Issue
Using WSTRING and running the output of the POU directly to the Screen Definition gives me the following compile-time error.
[CHPARGU1] Unsupported POU Call: {POU: wDiagSignals cannot be called directly from GUIDE code because it is using unsupported interface item(s): wstring, }.
Can WSTRINGs be used this way with ST-POUs? It seems like it's specifically a limitation of the graphical portion of the environment rather than a C-POU vs ST-POU thing. I will do some testing with ST-POUs today.
Using STRING to try to print the degree symbol gives me the following warning and will compile but won't print correctly once it's installed and running on the display.
- illegal character encoding in string literal In: wDiagSignals Line: 282 Column: 38 Category: Lexical or Preprocessor Issue
Using WSTRING and running the output of the POU directly to the Screen Definition gives me the following compile-time error.
[CHPARGU1] Unsupported POU Call: {POU: wDiagSignals cannot be called directly from GUIDE code because it is using unsupported interface item(s): wstring, }.
Can WSTRINGs be used this way with ST-POUs? It seems like it's specifically a limitation of the graphical portion of the environment rather than a C-POU vs ST-POU thing. I will do some testing with ST-POUs today.