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.