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
ich verzweifele gerade dabei wie ich ein ARRAY OF STRUCT in einem STRUCT initialisieren kann.
STRUCT 1:
TYPEtypSchaltzeiten:Â STRUCTÂ Â Sun:BOOL;Â Â Mon:BOOL;Â Â Tue:BOOL;Â Â Wen:BOOL;Â Â Thu:BOOL;Â Â Fri:BOOL;Â Â Sat:BOOL;Â Â Stunde:BYTE;Â Â Minute:Â Â BYTE;Â Â Aktiv:Â Â Â Â BOOL;Â END_STRUCTEND_TYPE
STRUCT 2:
TYPESteuerung:Â STRUCTÂ Â Schaltzeiten:Â Â ARRAY[1..4]OFtypSchaltzeiten;Â Â var1:Â BOOLÂ Â var2:Â BOOLÂ Â var3:Â BOOLÂ Â var4:Â BOOLÂ END_STRUCTEND_TYPE
Irgendjemand eine Idee oder einen Ansatz für mein Problem? Danke im voraus!
Gruß,
Christian
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hallo,
ich verzweifele gerade dabei wie ich ein ARRAY OF STRUCT in einem STRUCT initialisieren kann.
STRUCT 1:
STRUCT 2:
Irgendjemand eine Idee oder einen Ansatz für mein Problem? Danke im voraus!
Gruß,
Christian
Moin
Ich verstehe nicht wirklich wo dein Problem ist...
Wann willst du was initialisieren ?
Direkt bei der Deklaration ? oder später ?
Gruß Erik