Ethercat EL6851 DMX Master TC2_DMX Lib error

vertical
2020-03-07
2020-12-23
  • vertical - 2020-03-07

    Hi
    i try to use codesys v3 / rapberry pi as ethercat master and want to control a el6851 DMX Master.
    To do this i want to use the FB_EL6851Communication wich is in the TC2_DMX library.
    When i try to compile this i get a lot of errors.
    Can anyone help me?

     
  • vertical - 2020-03-17

    Hi, now i think i figured out the problem.
    For example the type PVOID is used.
    It is from the CAA Technical Workgroup - CAA Types Extern.
    I can install the library.
    But when i declare a variable in my program i have to write
    CAA.PVOID
    if i just write PVOID i get a compiler error : unknown type PVOID
    I don't know how to import a library that the type is known without any prefix.
    In my library manager for example the library Standard works as it should.
    I know namespaces are used to differneitate between different librarys with the same typename but in my case i want to set a standard lib.
    Is anyone familiar with this?
    Thanks

     
  • dFx

    dFx - 2020-03-17

    For existing libraries you have no choice but to use the full qualified namespace (or shortcut name).

     
  • vertical - 2020-03-17

    Thank you for your response. But i don't know how to solve my problem. Do you have any suggestion?

     
  • alex - 2020-12-19

    Hi,

    Did you find a solution to run this device ?

    I implement the PVOID like this:

    {attribute 'signature_flag' := '33554432'}
    {attribute 'checksuperglobal'}
    {attribute 'show'}
    {attribute 'no-analysis'}
    
    TYPE PVOID : UXINT;
    END_TYPE
    

    Code is okay but if i download the application i receive an error:

     

    Last edit: alex 2020-12-19
  • hermsen

    hermsen - 2020-12-19

    If you post your project archive, we can try to help?

     
  • alex - 2020-12-19

    Hallo,
    Habe es schnell auf die Dropbox hochgeladen:

    https://www.dropbox.com/s/2l4bfjwwzwp0i6o/DMX.projectarchive?dl=0

    Gruß

     
    • hermsen

      hermsen - 2020-12-19

      Thank you for the quick upload!

      I have a tip also:
      You can directly add an attachment to every post you make via the "Add Attachments" directly above the Post Reply Button so using dropbox isn't actually necessary! πŸ‘.

      With kind regards!

       
  • alex - 2020-12-23

    Can you send me a project from your running EL6851 ?

     

Log in to post a comment.