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
I have a question about creation a data unit type like below:
Data types:
TYPE DIn :
STRUCT
In:INT;
Flag:INT;
END_STRUCT
END_TYPE
If I declare a GlobalVariable like below:
VAR_GLOBAL
I:DIn;
END_VAR
when in a POU I insert a BOOL derivate from this G.variable (i.e. I.Flag.0 or I.In.1 and so)
the comment that I assign to the bit doesn't be automatically assigned every time
the same bit is used.
The same issue happens with Dt composed by ARRAY of Bool.
Thanks for your co operation
giova
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a question about creation a data unit type like below:
Data types:
TYPE DIn :
STRUCT
In:INT;
Flag:INT;
END_STRUCT
END_TYPE
If I declare a GlobalVariable like below:
VAR_GLOBAL
I:DIn;
END_VAR
when in a POU I insert a BOOL derivate from this G.variable (i.e. I.Flag.0 or I.In.1 and so)
the comment that I assign to the bit doesn't be automatically assigned every time
the same bit is used.
The same issue happens with Dt composed by ARRAY of Bool.
Thanks for your co operation
giova