Recent Posts

Pages: [1] 2 3 ... 10
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);
2
Displays / Re: Generating unicode symbols in C POUs (DM430E)
« Last post by Matt_Eng on August 18, 2022, 09:25:54 PM »
I think it may be a limitation of the Graphical environments data types. Since GUIDE is limited to UTF-8 encoding for strings and it has to be converted from an array to a string.
I did get it working in C using the UTF-8 encoding and then converting it to a string like in the image I've attached.


I think the ST POU has an advantage then since it can directly handover a WString to the VBSE interface. The String Examples page in the help makes it seem like it should be nicer.
3
Displays / Re: Generating unicode symbols in C POUs (DM430E)
« Last post by williamk on August 18, 2022, 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.
4
Displays / Re: Generating unicode symbols in C POUs (DM430E)
« Last post by Matt_Eng on August 18, 2022, 02:29:23 PM »
I've done this before with a POU, there are two ways I've used.

1. Use a Structured Text POU to work with strings as it is a supported data type, although string/wstring is referred to as a char/wchar. This signal should be able to be directly connected to a screen definition.
2. If you use a C POU, then you need to use an array as the output of the POU instead of a string. After the POU the signal then needs to have a retype to string before it can be connected to a screen definition.

-Matt
5
Displays / Generating unicode symbols in C POUs (DM430E)
« Last post by williamk on August 17, 2022, 08:43:57 PM »
I'm attempting to generate some strings from within a POU that include unicode symbols like the Degree symbol and the Greater-Than-Equal symbol.

I've tried a few different things so far, but nothing has worked.

Basically, I want to take the output of a POU and than insert that into a Screen Definition as a STRING.  Is this possible?
6
Displays / Display an Array on a DM430E
« Last post by BBarry on August 17, 2022, 08:37:37 PM »
Hi people.
I was wondering if there was a simple way to display array data. One of my system requirements is to display a couple of Raw Can messages. I tried just "retyping" the ARRAY8[u8] to a string but you cant do that.

I know I can Decode it to its components and then retype and rebuild it as a string but I am hoping to not have to go thru all that.

Any suggestions?
7
PLUS+1 GUIDE / Re: Installing V260 Display hardware files in Guide 2022.2.5
« Last post by BrianF on August 16, 2022, 05:46:19 PM »
Tor, THANK YOU! That was driving me nuts.  I could not manually add the files and the update center was not doing anything.

So if anyone else has the same issue, deleting the BookCase.xml file worked for me.

Thank you again,
Brian F.
8
PLUS+1 Service Tool / Re: Download Progress Bar
« Last post by dlewis on August 16, 2022, 03:59:58 PM »
I got it !!!

Somehow the portion of the screen that shows the progress bar got pulled all the way to the bottom of the screen.  I didn't see it until I FULLY expanded the window.  Then I was able to see a glimpse of what I was missing.  I was then able to drag that part up to the middle of the screen so that when I resize the window to normal I can see the Progress Bar.

I hope this helps anyone that has the same issue in the future.
9
PLUS+1 Service Tool / Re: Download Progress Bar
« Last post by dlewis on August 16, 2022, 03:04:27 PM »
Looks like I'll need to contact tech support.  I uninstalled the Service Tool, rebooted the computer and then reinstalled and nothing changed.
10
PLUS+1 GUIDE / Re: Installing V260 Display hardware files in Guide 2022.2.5
« Last post by Tor on August 16, 2022, 11:40:30 AM »
Hello,

Yes, there seems to be a bug.

When installing a HWD file from the Update Center it's not always visible in GUIDE. Then you can install it manually as acmall mentioned.
In some cases not even that works, so we have found a workaround.

"The work around is to have PLUS+1 GUIDE closed and navigate to the following directory.
C:\Users\your logon\AppData\Roaming\Danfoss\PLUS1\2022.2\Data\GUIDE\HardwareBookcase
and delete the BookCase.xml.
When PLUS+1 GUIDE 2022.2 is restarted the BookCase.xml will be recreated and updated."

I'm not 100% sure if it helps you, but you can try.
If it doesn't, please report it here: https://danfoss.secure.force.com/dpscustomersupport/?product=software


Good Luck.
Pages: [1] 2 3 ... 10