I'm getting an error: "C0077: Unknown type" in my projects since upgrading to SP16. Older projects (SP12) work fine.
The basic setup in the attached test project is this:
There is one function block and three visualizations.
The function block contains nothing. The visus contain nothing. I've removed all the code from the test program in order to reduce it to its most simple form.
The first visu is a button, which takes the function block as an VAR_IN_OUT
The second visu is a dialog box, which also takes the function block as a VAR_IN_OUT. The button visu opens the dialog
The third visu is also takes the function block as a VAR_IN_OUT, and is contained within a tab control in the dialog box.
the function block and the visus are all contained in a library
* the button visu is then placed into Main_VISU in the test project, and the function block is created in a program
Steps to reproduce the problem
"Build"--an error will come up: C0077: Unknown type: "TEST_DLG_VISU_STRUCT"
Now, highlight the button on Main_VISU, cut it (Ctrl-V), and paste it back (Ctrl-C), "Build/Generate Code", and it compiles fine until another "Build/Clean All"
This error only happens when the function block and visus are contained in a library. If I copy them all to the program, I have no issues
Dropbox link to a project archive
FYI for anyone else that comes across it, this is a bug in SP16 that is supposed to be fixed with SP18, sometime next year.
Have to correct you there. It will be fixed with Visualization 220.127.116.11
This is the reply I got from Codesys tech support: "There's a bug in SP16 related to the visualization profile. Unfortunately the fix will not come until SP18 (next year)."
The workaround for now is to do a "Build/Rebuild", sometimes multiple times, but it eventually compiles and downloads
You want to discuss with me with which version the bugfix I created will be released? ;)
EDIT: Just wanna make it clear, I am joking!
Where is visible, which version of Visualization is actually in a SP?
f. eg. SP16P4?
It will be the same as for example the Softmotion.
The latest released version of the addon will be included in the next SP.
This addon talk only affects CODESYS V3.5 SP17 or greater.
Log in to post a comment.