Data Types sheet. Compiller internal error

Dear All. I’d like to share you next information about the fault of compiling project. So, I have a complex datatype, with initiation inside of DataType scheet. DRYER_COMPONENT_STRUCT:STRUCT (00)DUMB : DRYER_COMPONENT := (ID:=0, NAME:= ‚DUMB‘, DEV_TYPE:= 0); (01)BURNER : DRYER_COMPONENT := (ID:=1, NAME:= ‚BURNER‘, DEV_TYPE:= 1); (02)ASP_FAN_M1 : DRYER_COMPONENT := (ID:=2, NAME:= ‚M1‘, DEV_TYPE:= 5); (03)ASP_FAN_M2 : DRYER_COMPONENT := (ID:=3, NAME:= ‚M2‘, DEV_TYPE:= 5); END_STRUCT; This structure comlpiles without problems. To obtain more clearance, I add ENUM type to convert DEV_TYPE id to text. DRYER_COMPONENT_STRUCT:STRUCT (00)DUMB : DRYER_COMPONENT := (ID:=0, NAME:= ‚DUMB‘, DEV_TYPE:= COMP_TYPE#OTHER); (01)BURNER : DRYER_COMPONENT := (ID:=1, NAME:= ‚BURNER‘, DEV_TYPE:= COMP_TYPE#BURNER); (02)ASP_FAN_M1 : DRYER_COMPONENT := (ID:=2, NAME:= ‚M1‘,DEV_TYPE:= COMP_TYPE#FAN_ASP, ); END_STRUCT; And during compiling I get internal error CILG0001. So, why I can’t use enum type, while initiation of struct variables? If I have crash of PLCNext Engineer program, where should I send crash dump to receive feedback and help to improve stability of the program?

Hello, The error message is not good in this case I agree. You need to cahnge the type of DEV_TYPE to COMP_TYPE to avoid the CIL Compiler issue. TYPE COMP_TYPE : (FAN_ASP, BURNER, OTHER := 5) OF INT := OTHER; DRYER_COMPONENT : STRUCT ID : INT; NAME : STRING; DEV_TYPE: COMP_TYPE; END_STRUCT DRYER_COMPONENT_STRUCT : STRUCT (00)DUMB : DRYER_COMPONENT := (ID:=0, NAME:= ‚DUMB‘, DEV_TYPE:= 0); (01)BURNER : DRYER_COMPONENT := (ID:=1, NAME:= ‚BURNER‘, DEV_TYPE:= 1); (02)ASP_FAN_M1 : DRYER_COMPONENT := (ID:=2, NAME:= ‚M1‘, DEV_TYPE:= 5); (03)ASP_FAN_M2 : DRYER_COMPONENT := (ID:=3, NAME:= ‚M2‘, DEV_TYPE:= 5); END_STRUCT; //This structure comlpiles without problems. //To obtain more clearance, I add ENUM type to convert DEV_TYPE id to text. DRYER_COMPONENT_STRUCT_2 : STRUCT (00)DUMB : DRYER_COMPONENT := (ID:=0, NAME:= ‚DUMB‘, DEV_TYPE:= COMP_TYPE#OTHER); (01)BURNER : DRYER_COMPONENT := (ID:=1, NAME:= ‚BURNER‘, DEV_TYPE:= COMP_TYPE#BURNER); (02)ASP_FAN_M1 : DRYER_COMPONENT := (ID:=2, NAME:= ‚M1‘,DEV_TYPE:= COMP_TYPE#FAN_ASP); END_STRUCT; END_TYPE