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

How to TYPE define a new TYPE

2018-04-27
2018-04-27
  • Lo5tNet - 2018-04-27

    Daniel are you putting this all in the PLC_PRG POU? For the part:

    (* CIP Data type for string with a length of max. 64 chars *)
    TYPE STRING64 :
    STRUCT
    uiLength : UINT;
    sString : STRING(63);
    END_STRUCT
    END_TYPE
    

    You need to put this all in a DUT object. Right click your application->add object->DUT then select a tructure and name it STRING64. So it would look like:

    IMG: Set Attribute Example.PNG

     

Log in to post a comment.