TC3 Initialisierung von Array of Struct

hello_d1

Level-1
Beiträge
38
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
Hallo liebe Gemeinde,

ich habe wieder ein Problem.

Bei Initialisieren von array of Struct bekomme ich die Fehlermeldung

Code:
';' expected instead of ','

Der Struct besteht aus
Code:
u16_index               : UINT;                          
b08_sub_index         : BYTE;                            
dte_attribut            : CODTE_ATTRIBUT;               (*ENUM*)
dte_daten_typ         : CODTE_CANOPEN_DATA_TYPE;        (*ENUM*)
pb32_description      : POINTER TO B32;
pb32_user_value      : POINTER TO B32;

Die Initialisierung mache ich direkt nach der Deklaration:
Code:
arr_object_dict: ARRAY[1..13] OF CODTS_CANOPEN_OBJEKT := 

(*001*)
(u16_index:=16#2030,  b08_sub_index:= 0,   dte_attribut:=CODTE_ATRIBUT_RW,   dte_daten_typ:=CODTE_OV_DATA_TYPE_UNSIGNED8,   pb32_description:=0,    pb32_user_value:=0    ),

(*002*)
(u16_index:=16#2032,  b08_sub_index:= 0,   dte_attribut:=CODTE_ATRIBUT_RO,   dte_daten_typ:=CODTE_OV_DATA_TYPE_UNSIGNED8,    pb32_description:=0,    pb32_user_value:=0    ),

(*003*)
(u16_index:=16#2032,  b08_sub_index:= 1,   dte_attribut:=CODTE_ATRIBUT_RW,  dte_daten_typ:=CODTE_OV_DATA_TYPE_UNSIGNED16,   pb32_description:=0,    pb32_user_value:=0    ),

[...abgekürzt...]

(*013*)
(u16_index:=GU16_ENDE_OBJEKT_VERZEICHNIS,     b08_sub_index:= 0,     dte_attribut:=CODTE_ATRIBUT_WO,     dte_daten_typ:=CODTE_OV_DATA_TYPE_KEIN_EINTRAG,        pb32_description:=0,         pb32_user_value:=0    );


Kann mir bitte jemand helfen?

hier wird genau so beschrieben, wie ich das mache...

mfg
hellod1
 
Zurück
Oben