Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Unknown type error

tvm
2021-04-30
2021-05-11
  • tvm - 2021-04-30

    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/Clean All"
    "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
    https://www.dropbox.com/s/805ttsv6il10y76/TestCODESYS.projectarchive?dl=0

     
  • tvm - 2021-05-06

    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.

     
    • m.prestel - 2021-05-07

      Have to correct you there. It will be fixed with Visualization 4.1.0.0

       
      • tvm - 2021-05-07

        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

         
        • m.prestel - 2021-05-10

          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!

           
          πŸ‘
          1

          Last edit: m.prestel 2021-05-10
  • dkugler - 2021-05-11

    Where is visible, which version of Visualization is actually in a SP?
    f. eg. SP16P4?

     
    • m.prestel - 2021-05-11

      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.

       

      Last edit: m.prestel 2021-05-11

Log in to post a comment.