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

Fix adress

Anonymous
2005-06-21
2005-06-23
  • Anonymous - 2005-06-21

    Originally created by: cedbonzon

    Is it possible to fix the address of each element of a structure ?

    Something like this:

    TYPE MyStruct :

    STRUCT

    B1: BOOL;

    B2: BOOL;

    END_STRUCT

    END_TYPE

    MyVar AT [%IX0.0, %IX0.1]: MyStruct;

    Thanks.

     
  • Manfred Werner - 2005-06-23

    No. for various reasons all components of a structure must be located in a sequence.

    A related feature 3S implemented is Var_Config. It allows to put local variables of function block instances to different I/O locations.

    please have a look at [/size] in the Online help.

     

Log in to post a comment.