Arpi Programming in Mosaic Nov 9, 2021, 8:31 AM Nov 9, 2021, 8:28 AM

Hello,

I have bought a C-RC-0011R device and I use it in Display only mode. I would like to load the Icon structure on the device but I didn't find the TCIB_CRC011R_ICO structure in the libraries. I made a structure with the same fields but it doesn't work. Could you send me a library which contains the correct structre?

Thanks in advance!

Arpi

Answers 2

Luboš Urban Nov 8, 2021, 3:37 PM

Hello,

TCIB_CRC011R_ICO structure is defined in CONFIG.ST file that is generated by IO Configurator tool. You can define the structure with the same name which is compiled conditionally. Then it doesn't depend if the module C-RC-0011R is added into the project. If yes, it will be used a structure defined in CONFIG.ST file. If no then it will be used your declaration. For a conditional compilation there are used directives {$IFNDEF struct_name } and {$END_IF} as shown in the example below.

TYPE
{$IFNDEF TCIB_C_RC_0011R_OUT}
   TCIB_CRC0011R_ICO : STRUCT
      BUTT_EDIT : BOOL;
      BUTT_ESC : BOOL;
      BUTT_OK : BOOL;
      BUTT_DOWN : BOOL;
      BUTT_UP : BOOL;
      MODE_SUN : BOOL;
      MODE_MOON : BOOL;
      MODE_ECO : BOOL;
      PROG_AUTOMAT : BOOL;
      PROG_HAND : BOOL;
      PROG_HOLIDAY : BOOL;
      TEMP_INDOOR : BOOL;
      TEMP_OUTDOOR : BOOL;
      TEMP : BOOL;
      FAN_0 : BOOL;
      FAN_1 : BOOL;
      FAN_2 : BOOL;
      FAN_3 : BOOL;
      FAN_AUTOMAT : BOOL;
      HEATING : BOOL;
      COOLING : BOOL;
      WINDOW : BOOL;
      LOCK : BOOL;
      WARNING : BOOL;
      DAY_1 : BOOL;
      DAY_2 : BOOL;
      DAY_3 : BOOL;
      DAY_4 : BOOL;
      DAY_5 : BOOL;
      DAY_6 : BOOL;
      DAY_7 : BOOL;
      LINE : BOOL;
      RADIO_0 : BOOL;
      RADIO_1 : BOOL;
      RADIO_2 : BOOL;
      RADIO_3 : BOOL;
      RADIO_BATTERY : BOOL;
      MAIN_VAL_C : BOOL;
      MAIN_VAL_F : BOOL;
      MAIN_VAL_RH : BOOL;
      MAIN_VAL_PERC : BOOL;
      MAIN_VAL_DOT : BOOL;
      SEC_VAL_C : BOOL;
      SEC_VAL_F : BOOL;
      SEC_VAL_RH : BOOL;
      SEC_VAL_PERC : BOOL;
      SEC_VAL_COLON : BOOL;
      SEC_VAL_DOT : BOOL;
      SEC_VAL_DOT2 : BOOL;
      SEC_VAL_DOT3 : BOOL;
      SEC_VAL_AM : BOOL;
      SEC_VAL_PM : BOOL;
      ARROW : BOOL;
      dummy53 {HIDDEN} : BOOL;
      dummy54 {HIDDEN} : BOOL;
      dummy55 {HIDDEN} : BOOL;
   END_STRUCT;
{$END_IF}
END_TYPE

 

Arpi Nov 9, 2021, 8:28 AM

Thank you very much! It works!

This question is solved.