Student Confusion - Error C0036

riellez
2020-05-28
2020-06-05
  • riellez - 2020-05-28

    Hi! I'm a student who had to make the switch from in-person classes to online classes. Most of my education has been with with ladder logic through Allen-Bradley, and I was just starting to learn the IEC side through TIA Portal but had to switch to Codesys after lab access was restricted. I'm still learning to navigate Codesys, I haven't been using it for very long. One of my projects includes programming using sequential function charts. This seems to be where the majority of my problems lie.

    My project structure, programming, and visualization are theoretically complete, but I'm coming across the same repeated error - "C0036: Cannot call object of type 'TYPE'". I have attached a picture of it - It appears as the error in entry and main actions I use; I have looked around the internet and libraries included in the program and still have not found an answer. I will continue to look, but I don't even know where to begin. Any and all advice or pointers would be really appreciated.


     
  • Lo5tNet - 2020-06-01

    In my eyes you really need to give us more information on what you are trying to call. Just showing the errors does not really help without a reference of where those errors are coming from and what you are trying to do.

     
  • aliazzz

    aliazzz - 2020-06-01

    If you want any kind of help, you can post your .projectarchive here ;-)

    Saving an archive can be done via: file - save as projectarchive
    That way we can help you by opening your projectarchive instead of us just guessing to what might be your problem.

    Hope you 'll post.

    PS
    if you use Codesys3, it would be prudent to use methods/properties instead of actions. Actions allow for less fine-grained access when compared to methods or properties. example: actions cannot be made private or protectee and tend make your code unnecessary 'open' for access by others.

     

    Last edit: aliazzz 2020-06-01
  • aliazzz

    aliazzz - 2020-06-03

    Is your issue resolved?

     
    • riellez - 2020-06-05

      It is resolved, I somehow disassociated the steps in my SFC superstructure. I ended up having to restart the project and migrate my existing programming to the new structure, it worked without a problem after that

       

Log in to post a comment.