stage4/generate_cc/il_code_gen.c
changeset 40 873a5b60a7ea
parent 38 6cce7d14647e
child 41 8998c8b24b60
equal deleted inserted replaced
39:e08c65e27557 40:873a5b60a7ea
     4  * generated code, do not edit by hand
     4  * generated code, do not edit by hand
     5  */
     5  */
     6 switch(current_function_type){
     6 switch(current_function_type){
     7 
     7 
     8 /****
     8 /****
       
     9  *BOOL_TO_SINT
       
    10  */
       
    11     case function_bool_to_sint :
       
    12     {
       
    13         symbol_c *last_type_symbol = NULL;
       
    14 
       
    15         {
       
    16             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
    17             symbol_c *IN_param_value = &this->default_variable_name;
       
    18         
       
    19             symbol_c *IN_type_symbol = param_data_type;
       
    20             last_type_symbol = param_data_type;
       
    21             
       
    22             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
    23             {
       
    24         
       
    25                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
    26                 s4o.print("(");
       
    27                 return_type_symbol->accept(*this);
       
    28                 s4o.print(")");
       
    29                 IN_param_value->accept(*this);
       
    30                 return NULL;
       
    31                 
       
    32             }
       
    33             
       
    34             ERROR;
       
    35         }
       
    36         
       
    37     }/*function_bool_to_sint*/
       
    38     break;
       
    39 
       
    40 /****
       
    41  *BOOL_TO_INT
       
    42  */
       
    43     case function_bool_to_int :
       
    44     {
       
    45         symbol_c *last_type_symbol = NULL;
       
    46 
       
    47         {
       
    48             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
    49             symbol_c *IN_param_value = &this->default_variable_name;
       
    50         
       
    51             symbol_c *IN_type_symbol = param_data_type;
       
    52             last_type_symbol = param_data_type;
       
    53             
       
    54             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
    55             {
       
    56         
       
    57                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
    58                 s4o.print("(");
       
    59                 return_type_symbol->accept(*this);
       
    60                 s4o.print(")");
       
    61                 IN_param_value->accept(*this);
       
    62                 return NULL;
       
    63                 
       
    64             }
       
    65             
       
    66             ERROR;
       
    67         }
       
    68         
       
    69     }/*function_bool_to_int*/
       
    70     break;
       
    71 
       
    72 /****
       
    73  *BOOL_TO_DINT
       
    74  */
       
    75     case function_bool_to_dint :
       
    76     {
       
    77         symbol_c *last_type_symbol = NULL;
       
    78 
       
    79         {
       
    80             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
    81             symbol_c *IN_param_value = &this->default_variable_name;
       
    82         
       
    83             symbol_c *IN_type_symbol = param_data_type;
       
    84             last_type_symbol = param_data_type;
       
    85             
       
    86             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
    87             {
       
    88         
       
    89                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
    90                 s4o.print("(");
       
    91                 return_type_symbol->accept(*this);
       
    92                 s4o.print(")");
       
    93                 IN_param_value->accept(*this);
       
    94                 return NULL;
       
    95                 
       
    96             }
       
    97             
       
    98             ERROR;
       
    99         }
       
   100         
       
   101     }/*function_bool_to_dint*/
       
   102     break;
       
   103 
       
   104 /****
       
   105  *BOOL_TO_LINT
       
   106  */
       
   107     case function_bool_to_lint :
       
   108     {
       
   109         symbol_c *last_type_symbol = NULL;
       
   110 
       
   111         {
       
   112             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   113             symbol_c *IN_param_value = &this->default_variable_name;
       
   114         
       
   115             symbol_c *IN_type_symbol = param_data_type;
       
   116             last_type_symbol = param_data_type;
       
   117             
       
   118             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   119             {
       
   120         
       
   121                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
   122                 s4o.print("(");
       
   123                 return_type_symbol->accept(*this);
       
   124                 s4o.print(")");
       
   125                 IN_param_value->accept(*this);
       
   126                 return NULL;
       
   127                 
       
   128             }
       
   129             
       
   130             ERROR;
       
   131         }
       
   132         
       
   133     }/*function_bool_to_lint*/
       
   134     break;
       
   135 
       
   136 /****
       
   137  *BOOL_TO_USINT
       
   138  */
       
   139     case function_bool_to_usint :
       
   140     {
       
   141         symbol_c *last_type_symbol = NULL;
       
   142 
       
   143         {
       
   144             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   145             symbol_c *IN_param_value = &this->default_variable_name;
       
   146         
       
   147             symbol_c *IN_type_symbol = param_data_type;
       
   148             last_type_symbol = param_data_type;
       
   149             
       
   150             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   151             {
       
   152         
       
   153                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
   154                 s4o.print("(");
       
   155                 return_type_symbol->accept(*this);
       
   156                 s4o.print(")");
       
   157                 IN_param_value->accept(*this);
       
   158                 return NULL;
       
   159                 
       
   160             }
       
   161             
       
   162             ERROR;
       
   163         }
       
   164         
       
   165     }/*function_bool_to_usint*/
       
   166     break;
       
   167 
       
   168 /****
       
   169  *BOOL_TO_UINT
       
   170  */
       
   171     case function_bool_to_uint :
       
   172     {
       
   173         symbol_c *last_type_symbol = NULL;
       
   174 
       
   175         {
       
   176             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   177             symbol_c *IN_param_value = &this->default_variable_name;
       
   178         
       
   179             symbol_c *IN_type_symbol = param_data_type;
       
   180             last_type_symbol = param_data_type;
       
   181             
       
   182             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   183             {
       
   184         
       
   185                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
   186                 s4o.print("(");
       
   187                 return_type_symbol->accept(*this);
       
   188                 s4o.print(")");
       
   189                 IN_param_value->accept(*this);
       
   190                 return NULL;
       
   191                 
       
   192             }
       
   193             
       
   194             ERROR;
       
   195         }
       
   196         
       
   197     }/*function_bool_to_uint*/
       
   198     break;
       
   199 
       
   200 /****
       
   201  *BOOL_TO_UDINT
       
   202  */
       
   203     case function_bool_to_udint :
       
   204     {
       
   205         symbol_c *last_type_symbol = NULL;
       
   206 
       
   207         {
       
   208             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   209             symbol_c *IN_param_value = &this->default_variable_name;
       
   210         
       
   211             symbol_c *IN_type_symbol = param_data_type;
       
   212             last_type_symbol = param_data_type;
       
   213             
       
   214             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   215             {
       
   216         
       
   217                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
   218                 s4o.print("(");
       
   219                 return_type_symbol->accept(*this);
       
   220                 s4o.print(")");
       
   221                 IN_param_value->accept(*this);
       
   222                 return NULL;
       
   223                 
       
   224             }
       
   225             
       
   226             ERROR;
       
   227         }
       
   228         
       
   229     }/*function_bool_to_udint*/
       
   230     break;
       
   231 
       
   232 /****
       
   233  *BOOL_TO_ULINT
       
   234  */
       
   235     case function_bool_to_ulint :
       
   236     {
       
   237         symbol_c *last_type_symbol = NULL;
       
   238 
       
   239         {
       
   240             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   241             symbol_c *IN_param_value = &this->default_variable_name;
       
   242         
       
   243             symbol_c *IN_type_symbol = param_data_type;
       
   244             last_type_symbol = param_data_type;
       
   245             
       
   246             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   247             {
       
   248         
       
   249                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
   250                 s4o.print("(");
       
   251                 return_type_symbol->accept(*this);
       
   252                 s4o.print(")");
       
   253                 IN_param_value->accept(*this);
       
   254                 return NULL;
       
   255                 
       
   256             }
       
   257             
       
   258             ERROR;
       
   259         }
       
   260         
       
   261     }/*function_bool_to_ulint*/
       
   262     break;
       
   263 
       
   264 /****
       
   265  *BOOL_TO_REAL
       
   266  */
       
   267     case function_bool_to_real :
       
   268     {
       
   269         symbol_c *last_type_symbol = NULL;
       
   270 
       
   271         {
       
   272             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   273             symbol_c *IN_param_value = &this->default_variable_name;
       
   274         
       
   275             symbol_c *IN_type_symbol = param_data_type;
       
   276             last_type_symbol = param_data_type;
       
   277             
       
   278             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   279             {
       
   280         
       
   281                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
   282                 s4o.print("(");
       
   283                 return_type_symbol->accept(*this);
       
   284                 s4o.print(")");
       
   285                 IN_param_value->accept(*this);
       
   286                 return NULL;
       
   287                 
       
   288             }
       
   289             
       
   290             ERROR;
       
   291         }
       
   292         
       
   293     }/*function_bool_to_real*/
       
   294     break;
       
   295 
       
   296 /****
       
   297  *BOOL_TO_LREAL
       
   298  */
       
   299     case function_bool_to_lreal :
       
   300     {
       
   301         symbol_c *last_type_symbol = NULL;
       
   302 
       
   303         {
       
   304             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   305             symbol_c *IN_param_value = &this->default_variable_name;
       
   306         
       
   307             symbol_c *IN_type_symbol = param_data_type;
       
   308             last_type_symbol = param_data_type;
       
   309             
       
   310             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   311             {
       
   312         
       
   313                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
   314                 s4o.print("(");
       
   315                 return_type_symbol->accept(*this);
       
   316                 s4o.print(")");
       
   317                 IN_param_value->accept(*this);
       
   318                 return NULL;
       
   319                 
       
   320             }
       
   321             
       
   322             ERROR;
       
   323         }
       
   324         
       
   325     }/*function_bool_to_lreal*/
       
   326     break;
       
   327 
       
   328 /****
       
   329  *BOOL_TO_TIME
       
   330  */
       
   331     case function_bool_to_time :
       
   332     {
       
   333         symbol_c *last_type_symbol = NULL;
       
   334 
       
   335         {
       
   336             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   337             symbol_c *IN_param_value = &this->default_variable_name;
       
   338         
       
   339             symbol_c *IN_type_symbol = param_data_type;
       
   340             last_type_symbol = param_data_type;
       
   341             
       
   342             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   343             {
       
   344         
       
   345                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
   346                 s4o.print("(");
       
   347                 return_type_symbol->accept(*this);
       
   348                 s4o.print(")__int_to_time(");
       
   349                 IN_param_value->accept(*this);
       
   350                 s4o.print(")");
       
   351                 return NULL;
       
   352                 
       
   353             }
       
   354             
       
   355             ERROR;
       
   356         }
       
   357         
       
   358     }/*function_bool_to_time*/
       
   359     break;
       
   360 
       
   361 /****
       
   362  *BOOL_TO_DATE
       
   363  */
       
   364     case function_bool_to_date :
       
   365     {
       
   366         symbol_c *last_type_symbol = NULL;
       
   367 
       
   368         {
       
   369             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   370             symbol_c *IN_param_value = &this->default_variable_name;
       
   371         
       
   372             symbol_c *IN_type_symbol = param_data_type;
       
   373             last_type_symbol = param_data_type;
       
   374             
       
   375             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   376             {
       
   377         
       
   378                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
   379                 s4o.print("(");
       
   380                 return_type_symbol->accept(*this);
       
   381                 s4o.print(")__int_to_time(");
       
   382                 IN_param_value->accept(*this);
       
   383                 s4o.print(")");
       
   384                 return NULL;
       
   385                 
       
   386             }
       
   387             
       
   388             ERROR;
       
   389         }
       
   390         
       
   391     }/*function_bool_to_date*/
       
   392     break;
       
   393 
       
   394 /****
       
   395  *BOOL_TO_TOD
       
   396  */
       
   397     case function_bool_to_tod :
       
   398     {
       
   399         symbol_c *last_type_symbol = NULL;
       
   400 
       
   401         {
       
   402             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   403             symbol_c *IN_param_value = &this->default_variable_name;
       
   404         
       
   405             symbol_c *IN_type_symbol = param_data_type;
       
   406             last_type_symbol = param_data_type;
       
   407             
       
   408             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   409             {
       
   410         
       
   411                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
   412                 s4o.print("(");
       
   413                 return_type_symbol->accept(*this);
       
   414                 s4o.print(")__int_to_time(");
       
   415                 IN_param_value->accept(*this);
       
   416                 s4o.print(")");
       
   417                 return NULL;
       
   418                 
       
   419             }
       
   420             
       
   421             ERROR;
       
   422         }
       
   423         
       
   424     }/*function_bool_to_tod*/
       
   425     break;
       
   426 
       
   427 /****
       
   428  *BOOL_TO_DT
       
   429  */
       
   430     case function_bool_to_dt :
       
   431     {
       
   432         symbol_c *last_type_symbol = NULL;
       
   433 
       
   434         {
       
   435             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   436             symbol_c *IN_param_value = &this->default_variable_name;
       
   437         
       
   438             symbol_c *IN_type_symbol = param_data_type;
       
   439             last_type_symbol = param_data_type;
       
   440             
       
   441             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   442             {
       
   443         
       
   444                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
   445                 s4o.print("(");
       
   446                 return_type_symbol->accept(*this);
       
   447                 s4o.print(")__int_to_time(");
       
   448                 IN_param_value->accept(*this);
       
   449                 s4o.print(")");
       
   450                 return NULL;
       
   451                 
       
   452             }
       
   453             
       
   454             ERROR;
       
   455         }
       
   456         
       
   457     }/*function_bool_to_dt*/
       
   458     break;
       
   459 
       
   460 /****
       
   461  *BOOL_TO_STRING
       
   462  */
       
   463     case function_bool_to_string :
       
   464     {
       
   465         symbol_c *last_type_symbol = NULL;
       
   466 
       
   467         {
       
   468             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   469             symbol_c *IN_param_value = &this->default_variable_name;
       
   470         
       
   471             symbol_c *IN_type_symbol = param_data_type;
       
   472             last_type_symbol = param_data_type;
       
   473             
       
   474             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   475             {
       
   476         
       
   477                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
   478                 s4o.print("(");
       
   479                 return_type_symbol->accept(*this);
       
   480                 s4o.print(")__bool_to_string(");
       
   481                 IN_param_value->accept(*this);
       
   482                 s4o.print(")");
       
   483                 return NULL;
       
   484                 
       
   485             }
       
   486             
       
   487             ERROR;
       
   488         }
       
   489         
       
   490     }/*function_bool_to_string*/
       
   491     break;
       
   492 
       
   493 /****
       
   494  *BOOL_TO_BYTE
       
   495  */
       
   496     case function_bool_to_byte :
       
   497     {
       
   498         symbol_c *last_type_symbol = NULL;
       
   499 
       
   500         {
       
   501             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   502             symbol_c *IN_param_value = &this->default_variable_name;
       
   503         
       
   504             symbol_c *IN_type_symbol = param_data_type;
       
   505             last_type_symbol = param_data_type;
       
   506             
       
   507             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   508             {
       
   509         
       
   510                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
   511                 s4o.print("(");
       
   512                 return_type_symbol->accept(*this);
       
   513                 s4o.print(")");
       
   514                 IN_param_value->accept(*this);
       
   515                 return NULL;
       
   516                 
       
   517             }
       
   518             
       
   519             ERROR;
       
   520         }
       
   521         
       
   522     }/*function_bool_to_byte*/
       
   523     break;
       
   524 
       
   525 /****
       
   526  *BOOL_TO_WORD
       
   527  */
       
   528     case function_bool_to_word :
       
   529     {
       
   530         symbol_c *last_type_symbol = NULL;
       
   531 
       
   532         {
       
   533             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   534             symbol_c *IN_param_value = &this->default_variable_name;
       
   535         
       
   536             symbol_c *IN_type_symbol = param_data_type;
       
   537             last_type_symbol = param_data_type;
       
   538             
       
   539             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   540             {
       
   541         
       
   542                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
   543                 s4o.print("(");
       
   544                 return_type_symbol->accept(*this);
       
   545                 s4o.print(")");
       
   546                 IN_param_value->accept(*this);
       
   547                 return NULL;
       
   548                 
       
   549             }
       
   550             
       
   551             ERROR;
       
   552         }
       
   553         
       
   554     }/*function_bool_to_word*/
       
   555     break;
       
   556 
       
   557 /****
       
   558  *BOOL_TO_DWORD
       
   559  */
       
   560     case function_bool_to_dword :
       
   561     {
       
   562         symbol_c *last_type_symbol = NULL;
       
   563 
       
   564         {
       
   565             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   566             symbol_c *IN_param_value = &this->default_variable_name;
       
   567         
       
   568             symbol_c *IN_type_symbol = param_data_type;
       
   569             last_type_symbol = param_data_type;
       
   570             
       
   571             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   572             {
       
   573         
       
   574                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
   575                 s4o.print("(");
       
   576                 return_type_symbol->accept(*this);
       
   577                 s4o.print(")");
       
   578                 IN_param_value->accept(*this);
       
   579                 return NULL;
       
   580                 
       
   581             }
       
   582             
       
   583             ERROR;
       
   584         }
       
   585         
       
   586     }/*function_bool_to_dword*/
       
   587     break;
       
   588 
       
   589 /****
       
   590  *BOOL_TO_LWORD
       
   591  */
       
   592     case function_bool_to_lword :
       
   593     {
       
   594         symbol_c *last_type_symbol = NULL;
       
   595 
       
   596         {
       
   597             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   598             symbol_c *IN_param_value = &this->default_variable_name;
       
   599         
       
   600             symbol_c *IN_type_symbol = param_data_type;
       
   601             last_type_symbol = param_data_type;
       
   602             
       
   603             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
   604             {
       
   605         
       
   606                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
   607                 s4o.print("(");
       
   608                 return_type_symbol->accept(*this);
       
   609                 s4o.print(")");
       
   610                 IN_param_value->accept(*this);
       
   611                 return NULL;
       
   612                 
       
   613             }
       
   614             
       
   615             ERROR;
       
   616         }
       
   617         
       
   618     }/*function_bool_to_lword*/
       
   619     break;
       
   620 
       
   621 /****
       
   622  *SINT_TO_BOOL
       
   623  */
       
   624     case function_sint_to_bool :
       
   625     {
       
   626         symbol_c *last_type_symbol = NULL;
       
   627 
       
   628         {
       
   629             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   630             symbol_c *IN_param_value = &this->default_variable_name;
       
   631         
       
   632             symbol_c *IN_type_symbol = param_data_type;
       
   633             last_type_symbol = param_data_type;
       
   634             
       
   635             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   636             {
       
   637         
       
   638                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
   639                 s4o.print("(");
       
   640                 return_type_symbol->accept(*this);
       
   641                 s4o.print(")");
       
   642                 IN_param_value->accept(*this);
       
   643                 return NULL;
       
   644                 
       
   645             }
       
   646             
       
   647             ERROR;
       
   648         }
       
   649         
       
   650     }/*function_sint_to_bool*/
       
   651     break;
       
   652 
       
   653 /****
       
   654  *SINT_TO_INT
       
   655  */
       
   656     case function_sint_to_int :
       
   657     {
       
   658         symbol_c *last_type_symbol = NULL;
       
   659 
       
   660         {
       
   661             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   662             symbol_c *IN_param_value = &this->default_variable_name;
       
   663         
       
   664             symbol_c *IN_type_symbol = param_data_type;
       
   665             last_type_symbol = param_data_type;
       
   666             
       
   667             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   668             {
       
   669         
       
   670                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
   671                 s4o.print("(");
       
   672                 return_type_symbol->accept(*this);
       
   673                 s4o.print(")");
       
   674                 IN_param_value->accept(*this);
       
   675                 return NULL;
       
   676                 
       
   677             }
       
   678             
       
   679             ERROR;
       
   680         }
       
   681         
       
   682     }/*function_sint_to_int*/
       
   683     break;
       
   684 
       
   685 /****
       
   686  *SINT_TO_DINT
       
   687  */
       
   688     case function_sint_to_dint :
       
   689     {
       
   690         symbol_c *last_type_symbol = NULL;
       
   691 
       
   692         {
       
   693             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   694             symbol_c *IN_param_value = &this->default_variable_name;
       
   695         
       
   696             symbol_c *IN_type_symbol = param_data_type;
       
   697             last_type_symbol = param_data_type;
       
   698             
       
   699             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   700             {
       
   701         
       
   702                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
   703                 s4o.print("(");
       
   704                 return_type_symbol->accept(*this);
       
   705                 s4o.print(")");
       
   706                 IN_param_value->accept(*this);
       
   707                 return NULL;
       
   708                 
       
   709             }
       
   710             
       
   711             ERROR;
       
   712         }
       
   713         
       
   714     }/*function_sint_to_dint*/
       
   715     break;
       
   716 
       
   717 /****
       
   718  *SINT_TO_LINT
       
   719  */
       
   720     case function_sint_to_lint :
       
   721     {
       
   722         symbol_c *last_type_symbol = NULL;
       
   723 
       
   724         {
       
   725             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   726             symbol_c *IN_param_value = &this->default_variable_name;
       
   727         
       
   728             symbol_c *IN_type_symbol = param_data_type;
       
   729             last_type_symbol = param_data_type;
       
   730             
       
   731             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   732             {
       
   733         
       
   734                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
   735                 s4o.print("(");
       
   736                 return_type_symbol->accept(*this);
       
   737                 s4o.print(")");
       
   738                 IN_param_value->accept(*this);
       
   739                 return NULL;
       
   740                 
       
   741             }
       
   742             
       
   743             ERROR;
       
   744         }
       
   745         
       
   746     }/*function_sint_to_lint*/
       
   747     break;
       
   748 
       
   749 /****
       
   750  *SINT_TO_USINT
       
   751  */
       
   752     case function_sint_to_usint :
       
   753     {
       
   754         symbol_c *last_type_symbol = NULL;
       
   755 
       
   756         {
       
   757             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   758             symbol_c *IN_param_value = &this->default_variable_name;
       
   759         
       
   760             symbol_c *IN_type_symbol = param_data_type;
       
   761             last_type_symbol = param_data_type;
       
   762             
       
   763             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   764             {
       
   765         
       
   766                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
   767                 s4o.print("(");
       
   768                 return_type_symbol->accept(*this);
       
   769                 s4o.print(")");
       
   770                 IN_param_value->accept(*this);
       
   771                 return NULL;
       
   772                 
       
   773             }
       
   774             
       
   775             ERROR;
       
   776         }
       
   777         
       
   778     }/*function_sint_to_usint*/
       
   779     break;
       
   780 
       
   781 /****
       
   782  *SINT_TO_UINT
       
   783  */
       
   784     case function_sint_to_uint :
       
   785     {
       
   786         symbol_c *last_type_symbol = NULL;
       
   787 
       
   788         {
       
   789             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   790             symbol_c *IN_param_value = &this->default_variable_name;
       
   791         
       
   792             symbol_c *IN_type_symbol = param_data_type;
       
   793             last_type_symbol = param_data_type;
       
   794             
       
   795             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   796             {
       
   797         
       
   798                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
   799                 s4o.print("(");
       
   800                 return_type_symbol->accept(*this);
       
   801                 s4o.print(")");
       
   802                 IN_param_value->accept(*this);
       
   803                 return NULL;
       
   804                 
       
   805             }
       
   806             
       
   807             ERROR;
       
   808         }
       
   809         
       
   810     }/*function_sint_to_uint*/
       
   811     break;
       
   812 
       
   813 /****
       
   814  *SINT_TO_UDINT
       
   815  */
       
   816     case function_sint_to_udint :
       
   817     {
       
   818         symbol_c *last_type_symbol = NULL;
       
   819 
       
   820         {
       
   821             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   822             symbol_c *IN_param_value = &this->default_variable_name;
       
   823         
       
   824             symbol_c *IN_type_symbol = param_data_type;
       
   825             last_type_symbol = param_data_type;
       
   826             
       
   827             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   828             {
       
   829         
       
   830                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
   831                 s4o.print("(");
       
   832                 return_type_symbol->accept(*this);
       
   833                 s4o.print(")");
       
   834                 IN_param_value->accept(*this);
       
   835                 return NULL;
       
   836                 
       
   837             }
       
   838             
       
   839             ERROR;
       
   840         }
       
   841         
       
   842     }/*function_sint_to_udint*/
       
   843     break;
       
   844 
       
   845 /****
       
   846  *SINT_TO_ULINT
       
   847  */
       
   848     case function_sint_to_ulint :
       
   849     {
       
   850         symbol_c *last_type_symbol = NULL;
       
   851 
       
   852         {
       
   853             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   854             symbol_c *IN_param_value = &this->default_variable_name;
       
   855         
       
   856             symbol_c *IN_type_symbol = param_data_type;
       
   857             last_type_symbol = param_data_type;
       
   858             
       
   859             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   860             {
       
   861         
       
   862                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
   863                 s4o.print("(");
       
   864                 return_type_symbol->accept(*this);
       
   865                 s4o.print(")");
       
   866                 IN_param_value->accept(*this);
       
   867                 return NULL;
       
   868                 
       
   869             }
       
   870             
       
   871             ERROR;
       
   872         }
       
   873         
       
   874     }/*function_sint_to_ulint*/
       
   875     break;
       
   876 
       
   877 /****
       
   878  *SINT_TO_REAL
       
   879  */
       
   880     case function_sint_to_real :
       
   881     {
       
   882         symbol_c *last_type_symbol = NULL;
       
   883 
       
   884         {
       
   885             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   886             symbol_c *IN_param_value = &this->default_variable_name;
       
   887         
       
   888             symbol_c *IN_type_symbol = param_data_type;
       
   889             last_type_symbol = param_data_type;
       
   890             
       
   891             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   892             {
       
   893         
       
   894                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
   895                 s4o.print("(");
       
   896                 return_type_symbol->accept(*this);
       
   897                 s4o.print(")");
       
   898                 IN_param_value->accept(*this);
       
   899                 return NULL;
       
   900                 
       
   901             }
       
   902             
       
   903             ERROR;
       
   904         }
       
   905         
       
   906     }/*function_sint_to_real*/
       
   907     break;
       
   908 
       
   909 /****
       
   910  *SINT_TO_LREAL
       
   911  */
       
   912     case function_sint_to_lreal :
       
   913     {
       
   914         symbol_c *last_type_symbol = NULL;
       
   915 
       
   916         {
       
   917             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   918             symbol_c *IN_param_value = &this->default_variable_name;
       
   919         
       
   920             symbol_c *IN_type_symbol = param_data_type;
       
   921             last_type_symbol = param_data_type;
       
   922             
       
   923             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   924             {
       
   925         
       
   926                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
   927                 s4o.print("(");
       
   928                 return_type_symbol->accept(*this);
       
   929                 s4o.print(")");
       
   930                 IN_param_value->accept(*this);
       
   931                 return NULL;
       
   932                 
       
   933             }
       
   934             
       
   935             ERROR;
       
   936         }
       
   937         
       
   938     }/*function_sint_to_lreal*/
       
   939     break;
       
   940 
       
   941 /****
       
   942  *SINT_TO_TIME
       
   943  */
       
   944     case function_sint_to_time :
       
   945     {
       
   946         symbol_c *last_type_symbol = NULL;
       
   947 
       
   948         {
       
   949             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   950             symbol_c *IN_param_value = &this->default_variable_name;
       
   951         
       
   952             symbol_c *IN_type_symbol = param_data_type;
       
   953             last_type_symbol = param_data_type;
       
   954             
       
   955             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   956             {
       
   957         
       
   958                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
   959                 s4o.print("(");
       
   960                 return_type_symbol->accept(*this);
       
   961                 s4o.print(")__int_to_time(");
       
   962                 IN_param_value->accept(*this);
       
   963                 s4o.print(")");
       
   964                 return NULL;
       
   965                 
       
   966             }
       
   967             
       
   968             ERROR;
       
   969         }
       
   970         
       
   971     }/*function_sint_to_time*/
       
   972     break;
       
   973 
       
   974 /****
       
   975  *SINT_TO_DATE
       
   976  */
       
   977     case function_sint_to_date :
       
   978     {
       
   979         symbol_c *last_type_symbol = NULL;
       
   980 
       
   981         {
       
   982             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
   983             symbol_c *IN_param_value = &this->default_variable_name;
       
   984         
       
   985             symbol_c *IN_type_symbol = param_data_type;
       
   986             last_type_symbol = param_data_type;
       
   987             
       
   988             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
   989             {
       
   990         
       
   991                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
   992                 s4o.print("(");
       
   993                 return_type_symbol->accept(*this);
       
   994                 s4o.print(")__int_to_time(");
       
   995                 IN_param_value->accept(*this);
       
   996                 s4o.print(")");
       
   997                 return NULL;
       
   998                 
       
   999             }
       
  1000             
       
  1001             ERROR;
       
  1002         }
       
  1003         
       
  1004     }/*function_sint_to_date*/
       
  1005     break;
       
  1006 
       
  1007 /****
       
  1008  *SINT_TO_TOD
       
  1009  */
       
  1010     case function_sint_to_tod :
       
  1011     {
       
  1012         symbol_c *last_type_symbol = NULL;
       
  1013 
       
  1014         {
       
  1015             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1016             symbol_c *IN_param_value = &this->default_variable_name;
       
  1017         
       
  1018             symbol_c *IN_type_symbol = param_data_type;
       
  1019             last_type_symbol = param_data_type;
       
  1020             
       
  1021             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1022             {
       
  1023         
       
  1024                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  1025                 s4o.print("(");
       
  1026                 return_type_symbol->accept(*this);
       
  1027                 s4o.print(")__int_to_time(");
       
  1028                 IN_param_value->accept(*this);
       
  1029                 s4o.print(")");
       
  1030                 return NULL;
       
  1031                 
       
  1032             }
       
  1033             
       
  1034             ERROR;
       
  1035         }
       
  1036         
       
  1037     }/*function_sint_to_tod*/
       
  1038     break;
       
  1039 
       
  1040 /****
       
  1041  *SINT_TO_DT
       
  1042  */
       
  1043     case function_sint_to_dt :
       
  1044     {
       
  1045         symbol_c *last_type_symbol = NULL;
       
  1046 
       
  1047         {
       
  1048             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1049             symbol_c *IN_param_value = &this->default_variable_name;
       
  1050         
       
  1051             symbol_c *IN_type_symbol = param_data_type;
       
  1052             last_type_symbol = param_data_type;
       
  1053             
       
  1054             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1055             {
       
  1056         
       
  1057                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  1058                 s4o.print("(");
       
  1059                 return_type_symbol->accept(*this);
       
  1060                 s4o.print(")__int_to_time(");
       
  1061                 IN_param_value->accept(*this);
       
  1062                 s4o.print(")");
       
  1063                 return NULL;
       
  1064                 
       
  1065             }
       
  1066             
       
  1067             ERROR;
       
  1068         }
       
  1069         
       
  1070     }/*function_sint_to_dt*/
       
  1071     break;
       
  1072 
       
  1073 /****
       
  1074  *SINT_TO_STRING
       
  1075  */
       
  1076     case function_sint_to_string :
       
  1077     {
       
  1078         symbol_c *last_type_symbol = NULL;
       
  1079 
       
  1080         {
       
  1081             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1082             symbol_c *IN_param_value = &this->default_variable_name;
       
  1083         
       
  1084             symbol_c *IN_type_symbol = param_data_type;
       
  1085             last_type_symbol = param_data_type;
       
  1086             
       
  1087             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1088             {
       
  1089         
       
  1090                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  1091                 s4o.print("(");
       
  1092                 return_type_symbol->accept(*this);
       
  1093                 s4o.print(")__sint_to_string(");
       
  1094                 IN_param_value->accept(*this);
       
  1095                 s4o.print(")");
       
  1096                 return NULL;
       
  1097                 
       
  1098             }
       
  1099             
       
  1100             ERROR;
       
  1101         }
       
  1102         
       
  1103     }/*function_sint_to_string*/
       
  1104     break;
       
  1105 
       
  1106 /****
       
  1107  *SINT_TO_BYTE
       
  1108  */
       
  1109     case function_sint_to_byte :
       
  1110     {
       
  1111         symbol_c *last_type_symbol = NULL;
       
  1112 
       
  1113         {
       
  1114             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1115             symbol_c *IN_param_value = &this->default_variable_name;
       
  1116         
       
  1117             symbol_c *IN_type_symbol = param_data_type;
       
  1118             last_type_symbol = param_data_type;
       
  1119             
       
  1120             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1121             {
       
  1122         
       
  1123                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  1124                 s4o.print("(");
       
  1125                 return_type_symbol->accept(*this);
       
  1126                 s4o.print(")");
       
  1127                 IN_param_value->accept(*this);
       
  1128                 return NULL;
       
  1129                 
       
  1130             }
       
  1131             
       
  1132             ERROR;
       
  1133         }
       
  1134         
       
  1135     }/*function_sint_to_byte*/
       
  1136     break;
       
  1137 
       
  1138 /****
       
  1139  *SINT_TO_WORD
       
  1140  */
       
  1141     case function_sint_to_word :
       
  1142     {
       
  1143         symbol_c *last_type_symbol = NULL;
       
  1144 
       
  1145         {
       
  1146             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1147             symbol_c *IN_param_value = &this->default_variable_name;
       
  1148         
       
  1149             symbol_c *IN_type_symbol = param_data_type;
       
  1150             last_type_symbol = param_data_type;
       
  1151             
       
  1152             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1153             {
       
  1154         
       
  1155                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  1156                 s4o.print("(");
       
  1157                 return_type_symbol->accept(*this);
       
  1158                 s4o.print(")");
       
  1159                 IN_param_value->accept(*this);
       
  1160                 return NULL;
       
  1161                 
       
  1162             }
       
  1163             
       
  1164             ERROR;
       
  1165         }
       
  1166         
       
  1167     }/*function_sint_to_word*/
       
  1168     break;
       
  1169 
       
  1170 /****
       
  1171  *SINT_TO_DWORD
       
  1172  */
       
  1173     case function_sint_to_dword :
       
  1174     {
       
  1175         symbol_c *last_type_symbol = NULL;
       
  1176 
       
  1177         {
       
  1178             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1179             symbol_c *IN_param_value = &this->default_variable_name;
       
  1180         
       
  1181             symbol_c *IN_type_symbol = param_data_type;
       
  1182             last_type_symbol = param_data_type;
       
  1183             
       
  1184             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1185             {
       
  1186         
       
  1187                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  1188                 s4o.print("(");
       
  1189                 return_type_symbol->accept(*this);
       
  1190                 s4o.print(")");
       
  1191                 IN_param_value->accept(*this);
       
  1192                 return NULL;
       
  1193                 
       
  1194             }
       
  1195             
       
  1196             ERROR;
       
  1197         }
       
  1198         
       
  1199     }/*function_sint_to_dword*/
       
  1200     break;
       
  1201 
       
  1202 /****
       
  1203  *SINT_TO_LWORD
       
  1204  */
       
  1205     case function_sint_to_lword :
       
  1206     {
       
  1207         symbol_c *last_type_symbol = NULL;
       
  1208 
       
  1209         {
       
  1210             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1211             symbol_c *IN_param_value = &this->default_variable_name;
       
  1212         
       
  1213             symbol_c *IN_type_symbol = param_data_type;
       
  1214             last_type_symbol = param_data_type;
       
  1215             
       
  1216             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1217             {
       
  1218         
       
  1219                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  1220                 s4o.print("(");
       
  1221                 return_type_symbol->accept(*this);
       
  1222                 s4o.print(")");
       
  1223                 IN_param_value->accept(*this);
       
  1224                 return NULL;
       
  1225                 
       
  1226             }
       
  1227             
       
  1228             ERROR;
       
  1229         }
       
  1230         
       
  1231     }/*function_sint_to_lword*/
       
  1232     break;
       
  1233 
       
  1234 /****
       
  1235  *INT_TO_BOOL
       
  1236  */
       
  1237     case function_int_to_bool :
       
  1238     {
       
  1239         symbol_c *last_type_symbol = NULL;
       
  1240 
       
  1241         {
       
  1242             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1243             symbol_c *IN_param_value = &this->default_variable_name;
       
  1244         
       
  1245             symbol_c *IN_type_symbol = param_data_type;
       
  1246             last_type_symbol = param_data_type;
       
  1247             
       
  1248             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1249             {
       
  1250         
       
  1251                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  1252                 s4o.print("(");
       
  1253                 return_type_symbol->accept(*this);
       
  1254                 s4o.print(")");
       
  1255                 IN_param_value->accept(*this);
       
  1256                 return NULL;
       
  1257                 
       
  1258             }
       
  1259             
       
  1260             ERROR;
       
  1261         }
       
  1262         
       
  1263     }/*function_int_to_bool*/
       
  1264     break;
       
  1265 
       
  1266 /****
       
  1267  *INT_TO_SINT
       
  1268  */
       
  1269     case function_int_to_sint :
       
  1270     {
       
  1271         symbol_c *last_type_symbol = NULL;
       
  1272 
       
  1273         {
       
  1274             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1275             symbol_c *IN_param_value = &this->default_variable_name;
       
  1276         
       
  1277             symbol_c *IN_type_symbol = param_data_type;
       
  1278             last_type_symbol = param_data_type;
       
  1279             
       
  1280             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1281             {
       
  1282         
       
  1283                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  1284                 s4o.print("(");
       
  1285                 return_type_symbol->accept(*this);
       
  1286                 s4o.print(")");
       
  1287                 IN_param_value->accept(*this);
       
  1288                 return NULL;
       
  1289                 
       
  1290             }
       
  1291             
       
  1292             ERROR;
       
  1293         }
       
  1294         
       
  1295     }/*function_int_to_sint*/
       
  1296     break;
       
  1297 
       
  1298 /****
       
  1299  *INT_TO_DINT
       
  1300  */
       
  1301     case function_int_to_dint :
       
  1302     {
       
  1303         symbol_c *last_type_symbol = NULL;
       
  1304 
       
  1305         {
       
  1306             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1307             symbol_c *IN_param_value = &this->default_variable_name;
       
  1308         
       
  1309             symbol_c *IN_type_symbol = param_data_type;
       
  1310             last_type_symbol = param_data_type;
       
  1311             
       
  1312             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1313             {
       
  1314         
       
  1315                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  1316                 s4o.print("(");
       
  1317                 return_type_symbol->accept(*this);
       
  1318                 s4o.print(")");
       
  1319                 IN_param_value->accept(*this);
       
  1320                 return NULL;
       
  1321                 
       
  1322             }
       
  1323             
       
  1324             ERROR;
       
  1325         }
       
  1326         
       
  1327     }/*function_int_to_dint*/
       
  1328     break;
       
  1329 
       
  1330 /****
       
  1331  *INT_TO_LINT
       
  1332  */
       
  1333     case function_int_to_lint :
       
  1334     {
       
  1335         symbol_c *last_type_symbol = NULL;
       
  1336 
       
  1337         {
       
  1338             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1339             symbol_c *IN_param_value = &this->default_variable_name;
       
  1340         
       
  1341             symbol_c *IN_type_symbol = param_data_type;
       
  1342             last_type_symbol = param_data_type;
       
  1343             
       
  1344             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1345             {
       
  1346         
       
  1347                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  1348                 s4o.print("(");
       
  1349                 return_type_symbol->accept(*this);
       
  1350                 s4o.print(")");
       
  1351                 IN_param_value->accept(*this);
       
  1352                 return NULL;
       
  1353                 
       
  1354             }
       
  1355             
       
  1356             ERROR;
       
  1357         }
       
  1358         
       
  1359     }/*function_int_to_lint*/
       
  1360     break;
       
  1361 
       
  1362 /****
       
  1363  *INT_TO_USINT
       
  1364  */
       
  1365     case function_int_to_usint :
       
  1366     {
       
  1367         symbol_c *last_type_symbol = NULL;
       
  1368 
       
  1369         {
       
  1370             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1371             symbol_c *IN_param_value = &this->default_variable_name;
       
  1372         
       
  1373             symbol_c *IN_type_symbol = param_data_type;
       
  1374             last_type_symbol = param_data_type;
       
  1375             
       
  1376             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1377             {
       
  1378         
       
  1379                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  1380                 s4o.print("(");
       
  1381                 return_type_symbol->accept(*this);
       
  1382                 s4o.print(")");
       
  1383                 IN_param_value->accept(*this);
       
  1384                 return NULL;
       
  1385                 
       
  1386             }
       
  1387             
       
  1388             ERROR;
       
  1389         }
       
  1390         
       
  1391     }/*function_int_to_usint*/
       
  1392     break;
       
  1393 
       
  1394 /****
       
  1395  *INT_TO_UINT
       
  1396  */
       
  1397     case function_int_to_uint :
       
  1398     {
       
  1399         symbol_c *last_type_symbol = NULL;
       
  1400 
       
  1401         {
       
  1402             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1403             symbol_c *IN_param_value = &this->default_variable_name;
       
  1404         
       
  1405             symbol_c *IN_type_symbol = param_data_type;
       
  1406             last_type_symbol = param_data_type;
       
  1407             
       
  1408             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1409             {
       
  1410         
       
  1411                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  1412                 s4o.print("(");
       
  1413                 return_type_symbol->accept(*this);
       
  1414                 s4o.print(")");
       
  1415                 IN_param_value->accept(*this);
       
  1416                 return NULL;
       
  1417                 
       
  1418             }
       
  1419             
       
  1420             ERROR;
       
  1421         }
       
  1422         
       
  1423     }/*function_int_to_uint*/
       
  1424     break;
       
  1425 
       
  1426 /****
       
  1427  *INT_TO_UDINT
       
  1428  */
       
  1429     case function_int_to_udint :
       
  1430     {
       
  1431         symbol_c *last_type_symbol = NULL;
       
  1432 
       
  1433         {
       
  1434             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1435             symbol_c *IN_param_value = &this->default_variable_name;
       
  1436         
       
  1437             symbol_c *IN_type_symbol = param_data_type;
       
  1438             last_type_symbol = param_data_type;
       
  1439             
       
  1440             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1441             {
       
  1442         
       
  1443                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  1444                 s4o.print("(");
       
  1445                 return_type_symbol->accept(*this);
       
  1446                 s4o.print(")");
       
  1447                 IN_param_value->accept(*this);
       
  1448                 return NULL;
       
  1449                 
       
  1450             }
       
  1451             
       
  1452             ERROR;
       
  1453         }
       
  1454         
       
  1455     }/*function_int_to_udint*/
       
  1456     break;
       
  1457 
       
  1458 /****
       
  1459  *INT_TO_ULINT
       
  1460  */
       
  1461     case function_int_to_ulint :
       
  1462     {
       
  1463         symbol_c *last_type_symbol = NULL;
       
  1464 
       
  1465         {
       
  1466             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1467             symbol_c *IN_param_value = &this->default_variable_name;
       
  1468         
       
  1469             symbol_c *IN_type_symbol = param_data_type;
       
  1470             last_type_symbol = param_data_type;
       
  1471             
       
  1472             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1473             {
       
  1474         
       
  1475                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  1476                 s4o.print("(");
       
  1477                 return_type_symbol->accept(*this);
       
  1478                 s4o.print(")");
       
  1479                 IN_param_value->accept(*this);
       
  1480                 return NULL;
       
  1481                 
       
  1482             }
       
  1483             
       
  1484             ERROR;
       
  1485         }
       
  1486         
       
  1487     }/*function_int_to_ulint*/
       
  1488     break;
       
  1489 
       
  1490 /****
       
  1491  *INT_TO_REAL
       
  1492  */
       
  1493     case function_int_to_real :
       
  1494     {
       
  1495         symbol_c *last_type_symbol = NULL;
       
  1496 
       
  1497         {
       
  1498             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1499             symbol_c *IN_param_value = &this->default_variable_name;
       
  1500         
       
  1501             symbol_c *IN_type_symbol = param_data_type;
       
  1502             last_type_symbol = param_data_type;
       
  1503             
       
  1504             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1505             {
       
  1506         
       
  1507                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  1508                 s4o.print("(");
       
  1509                 return_type_symbol->accept(*this);
       
  1510                 s4o.print(")");
       
  1511                 IN_param_value->accept(*this);
       
  1512                 return NULL;
       
  1513                 
       
  1514             }
       
  1515             
       
  1516             ERROR;
       
  1517         }
       
  1518         
       
  1519     }/*function_int_to_real*/
       
  1520     break;
       
  1521 
       
  1522 /****
       
  1523  *INT_TO_LREAL
       
  1524  */
       
  1525     case function_int_to_lreal :
       
  1526     {
       
  1527         symbol_c *last_type_symbol = NULL;
       
  1528 
       
  1529         {
       
  1530             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1531             symbol_c *IN_param_value = &this->default_variable_name;
       
  1532         
       
  1533             symbol_c *IN_type_symbol = param_data_type;
       
  1534             last_type_symbol = param_data_type;
       
  1535             
       
  1536             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1537             {
       
  1538         
       
  1539                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  1540                 s4o.print("(");
       
  1541                 return_type_symbol->accept(*this);
       
  1542                 s4o.print(")");
       
  1543                 IN_param_value->accept(*this);
       
  1544                 return NULL;
       
  1545                 
       
  1546             }
       
  1547             
       
  1548             ERROR;
       
  1549         }
       
  1550         
       
  1551     }/*function_int_to_lreal*/
       
  1552     break;
       
  1553 
       
  1554 /****
       
  1555  *INT_TO_TIME
       
  1556  */
       
  1557     case function_int_to_time :
       
  1558     {
       
  1559         symbol_c *last_type_symbol = NULL;
       
  1560 
       
  1561         {
       
  1562             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1563             symbol_c *IN_param_value = &this->default_variable_name;
       
  1564         
       
  1565             symbol_c *IN_type_symbol = param_data_type;
       
  1566             last_type_symbol = param_data_type;
       
  1567             
       
  1568             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1569             {
       
  1570         
       
  1571                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  1572                 s4o.print("(");
       
  1573                 return_type_symbol->accept(*this);
       
  1574                 s4o.print(")__int_to_time(");
       
  1575                 IN_param_value->accept(*this);
       
  1576                 s4o.print(")");
       
  1577                 return NULL;
       
  1578                 
       
  1579             }
       
  1580             
       
  1581             ERROR;
       
  1582         }
       
  1583         
       
  1584     }/*function_int_to_time*/
       
  1585     break;
       
  1586 
       
  1587 /****
       
  1588  *INT_TO_DATE
       
  1589  */
       
  1590     case function_int_to_date :
       
  1591     {
       
  1592         symbol_c *last_type_symbol = NULL;
       
  1593 
       
  1594         {
       
  1595             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1596             symbol_c *IN_param_value = &this->default_variable_name;
       
  1597         
       
  1598             symbol_c *IN_type_symbol = param_data_type;
       
  1599             last_type_symbol = param_data_type;
       
  1600             
       
  1601             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1602             {
       
  1603         
       
  1604                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  1605                 s4o.print("(");
       
  1606                 return_type_symbol->accept(*this);
       
  1607                 s4o.print(")__int_to_time(");
       
  1608                 IN_param_value->accept(*this);
       
  1609                 s4o.print(")");
       
  1610                 return NULL;
       
  1611                 
       
  1612             }
       
  1613             
       
  1614             ERROR;
       
  1615         }
       
  1616         
       
  1617     }/*function_int_to_date*/
       
  1618     break;
       
  1619 
       
  1620 /****
       
  1621  *INT_TO_TOD
       
  1622  */
       
  1623     case function_int_to_tod :
       
  1624     {
       
  1625         symbol_c *last_type_symbol = NULL;
       
  1626 
       
  1627         {
       
  1628             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1629             symbol_c *IN_param_value = &this->default_variable_name;
       
  1630         
       
  1631             symbol_c *IN_type_symbol = param_data_type;
       
  1632             last_type_symbol = param_data_type;
       
  1633             
       
  1634             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1635             {
       
  1636         
       
  1637                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  1638                 s4o.print("(");
       
  1639                 return_type_symbol->accept(*this);
       
  1640                 s4o.print(")__int_to_time(");
       
  1641                 IN_param_value->accept(*this);
       
  1642                 s4o.print(")");
       
  1643                 return NULL;
       
  1644                 
       
  1645             }
       
  1646             
       
  1647             ERROR;
       
  1648         }
       
  1649         
       
  1650     }/*function_int_to_tod*/
       
  1651     break;
       
  1652 
       
  1653 /****
       
  1654  *INT_TO_DT
       
  1655  */
       
  1656     case function_int_to_dt :
       
  1657     {
       
  1658         symbol_c *last_type_symbol = NULL;
       
  1659 
       
  1660         {
       
  1661             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1662             symbol_c *IN_param_value = &this->default_variable_name;
       
  1663         
       
  1664             symbol_c *IN_type_symbol = param_data_type;
       
  1665             last_type_symbol = param_data_type;
       
  1666             
       
  1667             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1668             {
       
  1669         
       
  1670                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  1671                 s4o.print("(");
       
  1672                 return_type_symbol->accept(*this);
       
  1673                 s4o.print(")__int_to_time(");
       
  1674                 IN_param_value->accept(*this);
       
  1675                 s4o.print(")");
       
  1676                 return NULL;
       
  1677                 
       
  1678             }
       
  1679             
       
  1680             ERROR;
       
  1681         }
       
  1682         
       
  1683     }/*function_int_to_dt*/
       
  1684     break;
       
  1685 
       
  1686 /****
       
  1687  *INT_TO_STRING
       
  1688  */
       
  1689     case function_int_to_string :
       
  1690     {
       
  1691         symbol_c *last_type_symbol = NULL;
       
  1692 
       
  1693         {
       
  1694             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1695             symbol_c *IN_param_value = &this->default_variable_name;
       
  1696         
       
  1697             symbol_c *IN_type_symbol = param_data_type;
       
  1698             last_type_symbol = param_data_type;
       
  1699             
       
  1700             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1701             {
       
  1702         
       
  1703                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  1704                 s4o.print("(");
       
  1705                 return_type_symbol->accept(*this);
       
  1706                 s4o.print(")__sint_to_string(");
       
  1707                 IN_param_value->accept(*this);
       
  1708                 s4o.print(")");
       
  1709                 return NULL;
       
  1710                 
       
  1711             }
       
  1712             
       
  1713             ERROR;
       
  1714         }
       
  1715         
       
  1716     }/*function_int_to_string*/
       
  1717     break;
       
  1718 
       
  1719 /****
       
  1720  *INT_TO_BYTE
       
  1721  */
       
  1722     case function_int_to_byte :
       
  1723     {
       
  1724         symbol_c *last_type_symbol = NULL;
       
  1725 
       
  1726         {
       
  1727             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1728             symbol_c *IN_param_value = &this->default_variable_name;
       
  1729         
       
  1730             symbol_c *IN_type_symbol = param_data_type;
       
  1731             last_type_symbol = param_data_type;
       
  1732             
       
  1733             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1734             {
       
  1735         
       
  1736                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  1737                 s4o.print("(");
       
  1738                 return_type_symbol->accept(*this);
       
  1739                 s4o.print(")");
       
  1740                 IN_param_value->accept(*this);
       
  1741                 return NULL;
       
  1742                 
       
  1743             }
       
  1744             
       
  1745             ERROR;
       
  1746         }
       
  1747         
       
  1748     }/*function_int_to_byte*/
       
  1749     break;
       
  1750 
       
  1751 /****
       
  1752  *INT_TO_WORD
       
  1753  */
       
  1754     case function_int_to_word :
       
  1755     {
       
  1756         symbol_c *last_type_symbol = NULL;
       
  1757 
       
  1758         {
       
  1759             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1760             symbol_c *IN_param_value = &this->default_variable_name;
       
  1761         
       
  1762             symbol_c *IN_type_symbol = param_data_type;
       
  1763             last_type_symbol = param_data_type;
       
  1764             
       
  1765             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1766             {
       
  1767         
       
  1768                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  1769                 s4o.print("(");
       
  1770                 return_type_symbol->accept(*this);
       
  1771                 s4o.print(")");
       
  1772                 IN_param_value->accept(*this);
       
  1773                 return NULL;
       
  1774                 
       
  1775             }
       
  1776             
       
  1777             ERROR;
       
  1778         }
       
  1779         
       
  1780     }/*function_int_to_word*/
       
  1781     break;
       
  1782 
       
  1783 /****
       
  1784  *INT_TO_DWORD
       
  1785  */
       
  1786     case function_int_to_dword :
       
  1787     {
       
  1788         symbol_c *last_type_symbol = NULL;
       
  1789 
       
  1790         {
       
  1791             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1792             symbol_c *IN_param_value = &this->default_variable_name;
       
  1793         
       
  1794             symbol_c *IN_type_symbol = param_data_type;
       
  1795             last_type_symbol = param_data_type;
       
  1796             
       
  1797             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1798             {
       
  1799         
       
  1800                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  1801                 s4o.print("(");
       
  1802                 return_type_symbol->accept(*this);
       
  1803                 s4o.print(")");
       
  1804                 IN_param_value->accept(*this);
       
  1805                 return NULL;
       
  1806                 
       
  1807             }
       
  1808             
       
  1809             ERROR;
       
  1810         }
       
  1811         
       
  1812     }/*function_int_to_dword*/
       
  1813     break;
       
  1814 
       
  1815 /****
       
  1816  *INT_TO_LWORD
       
  1817  */
       
  1818     case function_int_to_lword :
       
  1819     {
       
  1820         symbol_c *last_type_symbol = NULL;
       
  1821 
       
  1822         {
       
  1823             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1824             symbol_c *IN_param_value = &this->default_variable_name;
       
  1825         
       
  1826             symbol_c *IN_type_symbol = param_data_type;
       
  1827             last_type_symbol = param_data_type;
       
  1828             
       
  1829             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1830             {
       
  1831         
       
  1832                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  1833                 s4o.print("(");
       
  1834                 return_type_symbol->accept(*this);
       
  1835                 s4o.print(")");
       
  1836                 IN_param_value->accept(*this);
       
  1837                 return NULL;
       
  1838                 
       
  1839             }
       
  1840             
       
  1841             ERROR;
       
  1842         }
       
  1843         
       
  1844     }/*function_int_to_lword*/
       
  1845     break;
       
  1846 
       
  1847 /****
       
  1848  *DINT_TO_BOOL
       
  1849  */
       
  1850     case function_dint_to_bool :
       
  1851     {
       
  1852         symbol_c *last_type_symbol = NULL;
       
  1853 
       
  1854         {
       
  1855             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1856             symbol_c *IN_param_value = &this->default_variable_name;
       
  1857         
       
  1858             symbol_c *IN_type_symbol = param_data_type;
       
  1859             last_type_symbol = param_data_type;
       
  1860             
       
  1861             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  1862             {
       
  1863         
       
  1864                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  1865                 s4o.print("(");
       
  1866                 return_type_symbol->accept(*this);
       
  1867                 s4o.print(")");
       
  1868                 IN_param_value->accept(*this);
       
  1869                 return NULL;
       
  1870                 
       
  1871             }
       
  1872             
       
  1873             ERROR;
       
  1874         }
       
  1875         
       
  1876     }/*function_dint_to_bool*/
       
  1877     break;
       
  1878 
       
  1879 /****
       
  1880  *DINT_TO_SINT
       
  1881  */
       
  1882     case function_dint_to_sint :
       
  1883     {
       
  1884         symbol_c *last_type_symbol = NULL;
       
  1885 
       
  1886         {
       
  1887             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1888             symbol_c *IN_param_value = &this->default_variable_name;
       
  1889         
       
  1890             symbol_c *IN_type_symbol = param_data_type;
       
  1891             last_type_symbol = param_data_type;
       
  1892             
       
  1893             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  1894             {
       
  1895         
       
  1896                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  1897                 s4o.print("(");
       
  1898                 return_type_symbol->accept(*this);
       
  1899                 s4o.print(")");
       
  1900                 IN_param_value->accept(*this);
       
  1901                 return NULL;
       
  1902                 
       
  1903             }
       
  1904             
       
  1905             ERROR;
       
  1906         }
       
  1907         
       
  1908     }/*function_dint_to_sint*/
       
  1909     break;
       
  1910 
       
  1911 /****
       
  1912  *DINT_TO_INT
       
  1913  */
       
  1914     case function_dint_to_int :
       
  1915     {
       
  1916         symbol_c *last_type_symbol = NULL;
       
  1917 
       
  1918         {
       
  1919             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1920             symbol_c *IN_param_value = &this->default_variable_name;
       
  1921         
       
  1922             symbol_c *IN_type_symbol = param_data_type;
       
  1923             last_type_symbol = param_data_type;
       
  1924             
       
  1925             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  1926             {
       
  1927         
       
  1928                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  1929                 s4o.print("(");
       
  1930                 return_type_symbol->accept(*this);
       
  1931                 s4o.print(")");
       
  1932                 IN_param_value->accept(*this);
       
  1933                 return NULL;
       
  1934                 
       
  1935             }
       
  1936             
       
  1937             ERROR;
       
  1938         }
       
  1939         
       
  1940     }/*function_dint_to_int*/
       
  1941     break;
       
  1942 
       
  1943 /****
       
  1944  *DINT_TO_LINT
       
  1945  */
       
  1946     case function_dint_to_lint :
       
  1947     {
       
  1948         symbol_c *last_type_symbol = NULL;
       
  1949 
       
  1950         {
       
  1951             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1952             symbol_c *IN_param_value = &this->default_variable_name;
       
  1953         
       
  1954             symbol_c *IN_type_symbol = param_data_type;
       
  1955             last_type_symbol = param_data_type;
       
  1956             
       
  1957             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  1958             {
       
  1959         
       
  1960                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  1961                 s4o.print("(");
       
  1962                 return_type_symbol->accept(*this);
       
  1963                 s4o.print(")");
       
  1964                 IN_param_value->accept(*this);
       
  1965                 return NULL;
       
  1966                 
       
  1967             }
       
  1968             
       
  1969             ERROR;
       
  1970         }
       
  1971         
       
  1972     }/*function_dint_to_lint*/
       
  1973     break;
       
  1974 
       
  1975 /****
       
  1976  *DINT_TO_USINT
       
  1977  */
       
  1978     case function_dint_to_usint :
       
  1979     {
       
  1980         symbol_c *last_type_symbol = NULL;
       
  1981 
       
  1982         {
       
  1983             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1984             symbol_c *IN_param_value = &this->default_variable_name;
       
  1985         
       
  1986             symbol_c *IN_type_symbol = param_data_type;
       
  1987             last_type_symbol = param_data_type;
       
  1988             
       
  1989             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  1990             {
       
  1991         
       
  1992                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  1993                 s4o.print("(");
       
  1994                 return_type_symbol->accept(*this);
       
  1995                 s4o.print(")");
       
  1996                 IN_param_value->accept(*this);
       
  1997                 return NULL;
       
  1998                 
       
  1999             }
       
  2000             
       
  2001             ERROR;
       
  2002         }
       
  2003         
       
  2004     }/*function_dint_to_usint*/
       
  2005     break;
       
  2006 
       
  2007 /****
       
  2008  *DINT_TO_UINT
       
  2009  */
       
  2010     case function_dint_to_uint :
       
  2011     {
       
  2012         symbol_c *last_type_symbol = NULL;
       
  2013 
       
  2014         {
       
  2015             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2016             symbol_c *IN_param_value = &this->default_variable_name;
       
  2017         
       
  2018             symbol_c *IN_type_symbol = param_data_type;
       
  2019             last_type_symbol = param_data_type;
       
  2020             
       
  2021             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2022             {
       
  2023         
       
  2024                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  2025                 s4o.print("(");
       
  2026                 return_type_symbol->accept(*this);
       
  2027                 s4o.print(")");
       
  2028                 IN_param_value->accept(*this);
       
  2029                 return NULL;
       
  2030                 
       
  2031             }
       
  2032             
       
  2033             ERROR;
       
  2034         }
       
  2035         
       
  2036     }/*function_dint_to_uint*/
       
  2037     break;
       
  2038 
       
  2039 /****
       
  2040  *DINT_TO_UDINT
       
  2041  */
       
  2042     case function_dint_to_udint :
       
  2043     {
       
  2044         symbol_c *last_type_symbol = NULL;
       
  2045 
       
  2046         {
       
  2047             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2048             symbol_c *IN_param_value = &this->default_variable_name;
       
  2049         
       
  2050             symbol_c *IN_type_symbol = param_data_type;
       
  2051             last_type_symbol = param_data_type;
       
  2052             
       
  2053             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2054             {
       
  2055         
       
  2056                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  2057                 s4o.print("(");
       
  2058                 return_type_symbol->accept(*this);
       
  2059                 s4o.print(")");
       
  2060                 IN_param_value->accept(*this);
       
  2061                 return NULL;
       
  2062                 
       
  2063             }
       
  2064             
       
  2065             ERROR;
       
  2066         }
       
  2067         
       
  2068     }/*function_dint_to_udint*/
       
  2069     break;
       
  2070 
       
  2071 /****
       
  2072  *DINT_TO_ULINT
       
  2073  */
       
  2074     case function_dint_to_ulint :
       
  2075     {
       
  2076         symbol_c *last_type_symbol = NULL;
       
  2077 
       
  2078         {
       
  2079             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2080             symbol_c *IN_param_value = &this->default_variable_name;
       
  2081         
       
  2082             symbol_c *IN_type_symbol = param_data_type;
       
  2083             last_type_symbol = param_data_type;
       
  2084             
       
  2085             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2086             {
       
  2087         
       
  2088                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  2089                 s4o.print("(");
       
  2090                 return_type_symbol->accept(*this);
       
  2091                 s4o.print(")");
       
  2092                 IN_param_value->accept(*this);
       
  2093                 return NULL;
       
  2094                 
       
  2095             }
       
  2096             
       
  2097             ERROR;
       
  2098         }
       
  2099         
       
  2100     }/*function_dint_to_ulint*/
       
  2101     break;
       
  2102 
       
  2103 /****
       
  2104  *DINT_TO_REAL
       
  2105  */
       
  2106     case function_dint_to_real :
       
  2107     {
       
  2108         symbol_c *last_type_symbol = NULL;
       
  2109 
       
  2110         {
       
  2111             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2112             symbol_c *IN_param_value = &this->default_variable_name;
       
  2113         
       
  2114             symbol_c *IN_type_symbol = param_data_type;
       
  2115             last_type_symbol = param_data_type;
       
  2116             
       
  2117             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2118             {
       
  2119         
       
  2120                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  2121                 s4o.print("(");
       
  2122                 return_type_symbol->accept(*this);
       
  2123                 s4o.print(")");
       
  2124                 IN_param_value->accept(*this);
       
  2125                 return NULL;
       
  2126                 
       
  2127             }
       
  2128             
       
  2129             ERROR;
       
  2130         }
       
  2131         
       
  2132     }/*function_dint_to_real*/
       
  2133     break;
       
  2134 
       
  2135 /****
       
  2136  *DINT_TO_LREAL
       
  2137  */
       
  2138     case function_dint_to_lreal :
       
  2139     {
       
  2140         symbol_c *last_type_symbol = NULL;
       
  2141 
       
  2142         {
       
  2143             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2144             symbol_c *IN_param_value = &this->default_variable_name;
       
  2145         
       
  2146             symbol_c *IN_type_symbol = param_data_type;
       
  2147             last_type_symbol = param_data_type;
       
  2148             
       
  2149             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2150             {
       
  2151         
       
  2152                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  2153                 s4o.print("(");
       
  2154                 return_type_symbol->accept(*this);
       
  2155                 s4o.print(")");
       
  2156                 IN_param_value->accept(*this);
       
  2157                 return NULL;
       
  2158                 
       
  2159             }
       
  2160             
       
  2161             ERROR;
       
  2162         }
       
  2163         
       
  2164     }/*function_dint_to_lreal*/
       
  2165     break;
       
  2166 
       
  2167 /****
       
  2168  *DINT_TO_TIME
       
  2169  */
       
  2170     case function_dint_to_time :
       
  2171     {
       
  2172         symbol_c *last_type_symbol = NULL;
       
  2173 
       
  2174         {
       
  2175             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2176             symbol_c *IN_param_value = &this->default_variable_name;
       
  2177         
       
  2178             symbol_c *IN_type_symbol = param_data_type;
       
  2179             last_type_symbol = param_data_type;
       
  2180             
       
  2181             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2182             {
       
  2183         
       
  2184                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  2185                 s4o.print("(");
       
  2186                 return_type_symbol->accept(*this);
       
  2187                 s4o.print(")__int_to_time(");
       
  2188                 IN_param_value->accept(*this);
       
  2189                 s4o.print(")");
       
  2190                 return NULL;
       
  2191                 
       
  2192             }
       
  2193             
       
  2194             ERROR;
       
  2195         }
       
  2196         
       
  2197     }/*function_dint_to_time*/
       
  2198     break;
       
  2199 
       
  2200 /****
       
  2201  *DINT_TO_DATE
       
  2202  */
       
  2203     case function_dint_to_date :
       
  2204     {
       
  2205         symbol_c *last_type_symbol = NULL;
       
  2206 
       
  2207         {
       
  2208             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2209             symbol_c *IN_param_value = &this->default_variable_name;
       
  2210         
       
  2211             symbol_c *IN_type_symbol = param_data_type;
       
  2212             last_type_symbol = param_data_type;
       
  2213             
       
  2214             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2215             {
       
  2216         
       
  2217                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  2218                 s4o.print("(");
       
  2219                 return_type_symbol->accept(*this);
       
  2220                 s4o.print(")__int_to_time(");
       
  2221                 IN_param_value->accept(*this);
       
  2222                 s4o.print(")");
       
  2223                 return NULL;
       
  2224                 
       
  2225             }
       
  2226             
       
  2227             ERROR;
       
  2228         }
       
  2229         
       
  2230     }/*function_dint_to_date*/
       
  2231     break;
       
  2232 
       
  2233 /****
       
  2234  *DINT_TO_TOD
       
  2235  */
       
  2236     case function_dint_to_tod :
       
  2237     {
       
  2238         symbol_c *last_type_symbol = NULL;
       
  2239 
       
  2240         {
       
  2241             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2242             symbol_c *IN_param_value = &this->default_variable_name;
       
  2243         
       
  2244             symbol_c *IN_type_symbol = param_data_type;
       
  2245             last_type_symbol = param_data_type;
       
  2246             
       
  2247             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2248             {
       
  2249         
       
  2250                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  2251                 s4o.print("(");
       
  2252                 return_type_symbol->accept(*this);
       
  2253                 s4o.print(")__int_to_time(");
       
  2254                 IN_param_value->accept(*this);
       
  2255                 s4o.print(")");
       
  2256                 return NULL;
       
  2257                 
       
  2258             }
       
  2259             
       
  2260             ERROR;
       
  2261         }
       
  2262         
       
  2263     }/*function_dint_to_tod*/
       
  2264     break;
       
  2265 
       
  2266 /****
       
  2267  *DINT_TO_DT
       
  2268  */
       
  2269     case function_dint_to_dt :
       
  2270     {
       
  2271         symbol_c *last_type_symbol = NULL;
       
  2272 
       
  2273         {
       
  2274             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2275             symbol_c *IN_param_value = &this->default_variable_name;
       
  2276         
       
  2277             symbol_c *IN_type_symbol = param_data_type;
       
  2278             last_type_symbol = param_data_type;
       
  2279             
       
  2280             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2281             {
       
  2282         
       
  2283                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  2284                 s4o.print("(");
       
  2285                 return_type_symbol->accept(*this);
       
  2286                 s4o.print(")__int_to_time(");
       
  2287                 IN_param_value->accept(*this);
       
  2288                 s4o.print(")");
       
  2289                 return NULL;
       
  2290                 
       
  2291             }
       
  2292             
       
  2293             ERROR;
       
  2294         }
       
  2295         
       
  2296     }/*function_dint_to_dt*/
       
  2297     break;
       
  2298 
       
  2299 /****
       
  2300  *DINT_TO_STRING
       
  2301  */
       
  2302     case function_dint_to_string :
       
  2303     {
       
  2304         symbol_c *last_type_symbol = NULL;
       
  2305 
       
  2306         {
       
  2307             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2308             symbol_c *IN_param_value = &this->default_variable_name;
       
  2309         
       
  2310             symbol_c *IN_type_symbol = param_data_type;
       
  2311             last_type_symbol = param_data_type;
       
  2312             
       
  2313             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2314             {
       
  2315         
       
  2316                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  2317                 s4o.print("(");
       
  2318                 return_type_symbol->accept(*this);
       
  2319                 s4o.print(")__sint_to_string(");
       
  2320                 IN_param_value->accept(*this);
       
  2321                 s4o.print(")");
       
  2322                 return NULL;
       
  2323                 
       
  2324             }
       
  2325             
       
  2326             ERROR;
       
  2327         }
       
  2328         
       
  2329     }/*function_dint_to_string*/
       
  2330     break;
       
  2331 
       
  2332 /****
       
  2333  *DINT_TO_BYTE
       
  2334  */
       
  2335     case function_dint_to_byte :
       
  2336     {
       
  2337         symbol_c *last_type_symbol = NULL;
       
  2338 
       
  2339         {
       
  2340             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2341             symbol_c *IN_param_value = &this->default_variable_name;
       
  2342         
       
  2343             symbol_c *IN_type_symbol = param_data_type;
       
  2344             last_type_symbol = param_data_type;
       
  2345             
       
  2346             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2347             {
       
  2348         
       
  2349                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  2350                 s4o.print("(");
       
  2351                 return_type_symbol->accept(*this);
       
  2352                 s4o.print(")");
       
  2353                 IN_param_value->accept(*this);
       
  2354                 return NULL;
       
  2355                 
       
  2356             }
       
  2357             
       
  2358             ERROR;
       
  2359         }
       
  2360         
       
  2361     }/*function_dint_to_byte*/
       
  2362     break;
       
  2363 
       
  2364 /****
       
  2365  *DINT_TO_WORD
       
  2366  */
       
  2367     case function_dint_to_word :
       
  2368     {
       
  2369         symbol_c *last_type_symbol = NULL;
       
  2370 
       
  2371         {
       
  2372             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2373             symbol_c *IN_param_value = &this->default_variable_name;
       
  2374         
       
  2375             symbol_c *IN_type_symbol = param_data_type;
       
  2376             last_type_symbol = param_data_type;
       
  2377             
       
  2378             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2379             {
       
  2380         
       
  2381                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  2382                 s4o.print("(");
       
  2383                 return_type_symbol->accept(*this);
       
  2384                 s4o.print(")");
       
  2385                 IN_param_value->accept(*this);
       
  2386                 return NULL;
       
  2387                 
       
  2388             }
       
  2389             
       
  2390             ERROR;
       
  2391         }
       
  2392         
       
  2393     }/*function_dint_to_word*/
       
  2394     break;
       
  2395 
       
  2396 /****
       
  2397  *DINT_TO_DWORD
       
  2398  */
       
  2399     case function_dint_to_dword :
       
  2400     {
       
  2401         symbol_c *last_type_symbol = NULL;
       
  2402 
       
  2403         {
       
  2404             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2405             symbol_c *IN_param_value = &this->default_variable_name;
       
  2406         
       
  2407             symbol_c *IN_type_symbol = param_data_type;
       
  2408             last_type_symbol = param_data_type;
       
  2409             
       
  2410             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2411             {
       
  2412         
       
  2413                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  2414                 s4o.print("(");
       
  2415                 return_type_symbol->accept(*this);
       
  2416                 s4o.print(")");
       
  2417                 IN_param_value->accept(*this);
       
  2418                 return NULL;
       
  2419                 
       
  2420             }
       
  2421             
       
  2422             ERROR;
       
  2423         }
       
  2424         
       
  2425     }/*function_dint_to_dword*/
       
  2426     break;
       
  2427 
       
  2428 /****
       
  2429  *DINT_TO_LWORD
       
  2430  */
       
  2431     case function_dint_to_lword :
       
  2432     {
       
  2433         symbol_c *last_type_symbol = NULL;
       
  2434 
       
  2435         {
       
  2436             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2437             symbol_c *IN_param_value = &this->default_variable_name;
       
  2438         
       
  2439             symbol_c *IN_type_symbol = param_data_type;
       
  2440             last_type_symbol = param_data_type;
       
  2441             
       
  2442             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2443             {
       
  2444         
       
  2445                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  2446                 s4o.print("(");
       
  2447                 return_type_symbol->accept(*this);
       
  2448                 s4o.print(")");
       
  2449                 IN_param_value->accept(*this);
       
  2450                 return NULL;
       
  2451                 
       
  2452             }
       
  2453             
       
  2454             ERROR;
       
  2455         }
       
  2456         
       
  2457     }/*function_dint_to_lword*/
       
  2458     break;
       
  2459 
       
  2460 /****
       
  2461  *LINT_TO_BOOL
       
  2462  */
       
  2463     case function_lint_to_bool :
       
  2464     {
       
  2465         symbol_c *last_type_symbol = NULL;
       
  2466 
       
  2467         {
       
  2468             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2469             symbol_c *IN_param_value = &this->default_variable_name;
       
  2470         
       
  2471             symbol_c *IN_type_symbol = param_data_type;
       
  2472             last_type_symbol = param_data_type;
       
  2473             
       
  2474             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2475             {
       
  2476         
       
  2477                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  2478                 s4o.print("(");
       
  2479                 return_type_symbol->accept(*this);
       
  2480                 s4o.print(")");
       
  2481                 IN_param_value->accept(*this);
       
  2482                 return NULL;
       
  2483                 
       
  2484             }
       
  2485             
       
  2486             ERROR;
       
  2487         }
       
  2488         
       
  2489     }/*function_lint_to_bool*/
       
  2490     break;
       
  2491 
       
  2492 /****
       
  2493  *LINT_TO_SINT
       
  2494  */
       
  2495     case function_lint_to_sint :
       
  2496     {
       
  2497         symbol_c *last_type_symbol = NULL;
       
  2498 
       
  2499         {
       
  2500             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2501             symbol_c *IN_param_value = &this->default_variable_name;
       
  2502         
       
  2503             symbol_c *IN_type_symbol = param_data_type;
       
  2504             last_type_symbol = param_data_type;
       
  2505             
       
  2506             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2507             {
       
  2508         
       
  2509                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  2510                 s4o.print("(");
       
  2511                 return_type_symbol->accept(*this);
       
  2512                 s4o.print(")");
       
  2513                 IN_param_value->accept(*this);
       
  2514                 return NULL;
       
  2515                 
       
  2516             }
       
  2517             
       
  2518             ERROR;
       
  2519         }
       
  2520         
       
  2521     }/*function_lint_to_sint*/
       
  2522     break;
       
  2523 
       
  2524 /****
       
  2525  *LINT_TO_INT
       
  2526  */
       
  2527     case function_lint_to_int :
       
  2528     {
       
  2529         symbol_c *last_type_symbol = NULL;
       
  2530 
       
  2531         {
       
  2532             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2533             symbol_c *IN_param_value = &this->default_variable_name;
       
  2534         
       
  2535             symbol_c *IN_type_symbol = param_data_type;
       
  2536             last_type_symbol = param_data_type;
       
  2537             
       
  2538             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2539             {
       
  2540         
       
  2541                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  2542                 s4o.print("(");
       
  2543                 return_type_symbol->accept(*this);
       
  2544                 s4o.print(")");
       
  2545                 IN_param_value->accept(*this);
       
  2546                 return NULL;
       
  2547                 
       
  2548             }
       
  2549             
       
  2550             ERROR;
       
  2551         }
       
  2552         
       
  2553     }/*function_lint_to_int*/
       
  2554     break;
       
  2555 
       
  2556 /****
       
  2557  *LINT_TO_DINT
       
  2558  */
       
  2559     case function_lint_to_dint :
       
  2560     {
       
  2561         symbol_c *last_type_symbol = NULL;
       
  2562 
       
  2563         {
       
  2564             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2565             symbol_c *IN_param_value = &this->default_variable_name;
       
  2566         
       
  2567             symbol_c *IN_type_symbol = param_data_type;
       
  2568             last_type_symbol = param_data_type;
       
  2569             
       
  2570             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2571             {
       
  2572         
       
  2573                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  2574                 s4o.print("(");
       
  2575                 return_type_symbol->accept(*this);
       
  2576                 s4o.print(")");
       
  2577                 IN_param_value->accept(*this);
       
  2578                 return NULL;
       
  2579                 
       
  2580             }
       
  2581             
       
  2582             ERROR;
       
  2583         }
       
  2584         
       
  2585     }/*function_lint_to_dint*/
       
  2586     break;
       
  2587 
       
  2588 /****
       
  2589  *LINT_TO_USINT
       
  2590  */
       
  2591     case function_lint_to_usint :
       
  2592     {
       
  2593         symbol_c *last_type_symbol = NULL;
       
  2594 
       
  2595         {
       
  2596             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2597             symbol_c *IN_param_value = &this->default_variable_name;
       
  2598         
       
  2599             symbol_c *IN_type_symbol = param_data_type;
       
  2600             last_type_symbol = param_data_type;
       
  2601             
       
  2602             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2603             {
       
  2604         
       
  2605                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  2606                 s4o.print("(");
       
  2607                 return_type_symbol->accept(*this);
       
  2608                 s4o.print(")");
       
  2609                 IN_param_value->accept(*this);
       
  2610                 return NULL;
       
  2611                 
       
  2612             }
       
  2613             
       
  2614             ERROR;
       
  2615         }
       
  2616         
       
  2617     }/*function_lint_to_usint*/
       
  2618     break;
       
  2619 
       
  2620 /****
       
  2621  *LINT_TO_UINT
       
  2622  */
       
  2623     case function_lint_to_uint :
       
  2624     {
       
  2625         symbol_c *last_type_symbol = NULL;
       
  2626 
       
  2627         {
       
  2628             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2629             symbol_c *IN_param_value = &this->default_variable_name;
       
  2630         
       
  2631             symbol_c *IN_type_symbol = param_data_type;
       
  2632             last_type_symbol = param_data_type;
       
  2633             
       
  2634             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2635             {
       
  2636         
       
  2637                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  2638                 s4o.print("(");
       
  2639                 return_type_symbol->accept(*this);
       
  2640                 s4o.print(")");
       
  2641                 IN_param_value->accept(*this);
       
  2642                 return NULL;
       
  2643                 
       
  2644             }
       
  2645             
       
  2646             ERROR;
       
  2647         }
       
  2648         
       
  2649     }/*function_lint_to_uint*/
       
  2650     break;
       
  2651 
       
  2652 /****
       
  2653  *LINT_TO_UDINT
       
  2654  */
       
  2655     case function_lint_to_udint :
       
  2656     {
       
  2657         symbol_c *last_type_symbol = NULL;
       
  2658 
       
  2659         {
       
  2660             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2661             symbol_c *IN_param_value = &this->default_variable_name;
       
  2662         
       
  2663             symbol_c *IN_type_symbol = param_data_type;
       
  2664             last_type_symbol = param_data_type;
       
  2665             
       
  2666             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2667             {
       
  2668         
       
  2669                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  2670                 s4o.print("(");
       
  2671                 return_type_symbol->accept(*this);
       
  2672                 s4o.print(")");
       
  2673                 IN_param_value->accept(*this);
       
  2674                 return NULL;
       
  2675                 
       
  2676             }
       
  2677             
       
  2678             ERROR;
       
  2679         }
       
  2680         
       
  2681     }/*function_lint_to_udint*/
       
  2682     break;
       
  2683 
       
  2684 /****
       
  2685  *LINT_TO_ULINT
       
  2686  */
       
  2687     case function_lint_to_ulint :
       
  2688     {
       
  2689         symbol_c *last_type_symbol = NULL;
       
  2690 
       
  2691         {
       
  2692             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2693             symbol_c *IN_param_value = &this->default_variable_name;
       
  2694         
       
  2695             symbol_c *IN_type_symbol = param_data_type;
       
  2696             last_type_symbol = param_data_type;
       
  2697             
       
  2698             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2699             {
       
  2700         
       
  2701                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  2702                 s4o.print("(");
       
  2703                 return_type_symbol->accept(*this);
       
  2704                 s4o.print(")");
       
  2705                 IN_param_value->accept(*this);
       
  2706                 return NULL;
       
  2707                 
       
  2708             }
       
  2709             
       
  2710             ERROR;
       
  2711         }
       
  2712         
       
  2713     }/*function_lint_to_ulint*/
       
  2714     break;
       
  2715 
       
  2716 /****
       
  2717  *LINT_TO_REAL
       
  2718  */
       
  2719     case function_lint_to_real :
       
  2720     {
       
  2721         symbol_c *last_type_symbol = NULL;
       
  2722 
       
  2723         {
       
  2724             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2725             symbol_c *IN_param_value = &this->default_variable_name;
       
  2726         
       
  2727             symbol_c *IN_type_symbol = param_data_type;
       
  2728             last_type_symbol = param_data_type;
       
  2729             
       
  2730             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2731             {
       
  2732         
       
  2733                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  2734                 s4o.print("(");
       
  2735                 return_type_symbol->accept(*this);
       
  2736                 s4o.print(")");
       
  2737                 IN_param_value->accept(*this);
       
  2738                 return NULL;
       
  2739                 
       
  2740             }
       
  2741             
       
  2742             ERROR;
       
  2743         }
       
  2744         
       
  2745     }/*function_lint_to_real*/
       
  2746     break;
       
  2747 
       
  2748 /****
       
  2749  *LINT_TO_LREAL
       
  2750  */
       
  2751     case function_lint_to_lreal :
       
  2752     {
       
  2753         symbol_c *last_type_symbol = NULL;
       
  2754 
       
  2755         {
       
  2756             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2757             symbol_c *IN_param_value = &this->default_variable_name;
       
  2758         
       
  2759             symbol_c *IN_type_symbol = param_data_type;
       
  2760             last_type_symbol = param_data_type;
       
  2761             
       
  2762             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2763             {
       
  2764         
       
  2765                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  2766                 s4o.print("(");
       
  2767                 return_type_symbol->accept(*this);
       
  2768                 s4o.print(")");
       
  2769                 IN_param_value->accept(*this);
       
  2770                 return NULL;
       
  2771                 
       
  2772             }
       
  2773             
       
  2774             ERROR;
       
  2775         }
       
  2776         
       
  2777     }/*function_lint_to_lreal*/
       
  2778     break;
       
  2779 
       
  2780 /****
       
  2781  *LINT_TO_TIME
       
  2782  */
       
  2783     case function_lint_to_time :
       
  2784     {
       
  2785         symbol_c *last_type_symbol = NULL;
       
  2786 
       
  2787         {
       
  2788             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2789             symbol_c *IN_param_value = &this->default_variable_name;
       
  2790         
       
  2791             symbol_c *IN_type_symbol = param_data_type;
       
  2792             last_type_symbol = param_data_type;
       
  2793             
       
  2794             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2795             {
       
  2796         
       
  2797                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  2798                 s4o.print("(");
       
  2799                 return_type_symbol->accept(*this);
       
  2800                 s4o.print(")__int_to_time(");
       
  2801                 IN_param_value->accept(*this);
       
  2802                 s4o.print(")");
       
  2803                 return NULL;
       
  2804                 
       
  2805             }
       
  2806             
       
  2807             ERROR;
       
  2808         }
       
  2809         
       
  2810     }/*function_lint_to_time*/
       
  2811     break;
       
  2812 
       
  2813 /****
       
  2814  *LINT_TO_DATE
       
  2815  */
       
  2816     case function_lint_to_date :
       
  2817     {
       
  2818         symbol_c *last_type_symbol = NULL;
       
  2819 
       
  2820         {
       
  2821             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2822             symbol_c *IN_param_value = &this->default_variable_name;
       
  2823         
       
  2824             symbol_c *IN_type_symbol = param_data_type;
       
  2825             last_type_symbol = param_data_type;
       
  2826             
       
  2827             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2828             {
       
  2829         
       
  2830                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  2831                 s4o.print("(");
       
  2832                 return_type_symbol->accept(*this);
       
  2833                 s4o.print(")__int_to_time(");
       
  2834                 IN_param_value->accept(*this);
       
  2835                 s4o.print(")");
       
  2836                 return NULL;
       
  2837                 
       
  2838             }
       
  2839             
       
  2840             ERROR;
       
  2841         }
       
  2842         
       
  2843     }/*function_lint_to_date*/
       
  2844     break;
       
  2845 
       
  2846 /****
       
  2847  *LINT_TO_TOD
       
  2848  */
       
  2849     case function_lint_to_tod :
       
  2850     {
       
  2851         symbol_c *last_type_symbol = NULL;
       
  2852 
       
  2853         {
       
  2854             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2855             symbol_c *IN_param_value = &this->default_variable_name;
       
  2856         
       
  2857             symbol_c *IN_type_symbol = param_data_type;
       
  2858             last_type_symbol = param_data_type;
       
  2859             
       
  2860             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2861             {
       
  2862         
       
  2863                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  2864                 s4o.print("(");
       
  2865                 return_type_symbol->accept(*this);
       
  2866                 s4o.print(")__int_to_time(");
       
  2867                 IN_param_value->accept(*this);
       
  2868                 s4o.print(")");
       
  2869                 return NULL;
       
  2870                 
       
  2871             }
       
  2872             
       
  2873             ERROR;
       
  2874         }
       
  2875         
       
  2876     }/*function_lint_to_tod*/
       
  2877     break;
       
  2878 
       
  2879 /****
       
  2880  *LINT_TO_DT
       
  2881  */
       
  2882     case function_lint_to_dt :
       
  2883     {
       
  2884         symbol_c *last_type_symbol = NULL;
       
  2885 
       
  2886         {
       
  2887             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2888             symbol_c *IN_param_value = &this->default_variable_name;
       
  2889         
       
  2890             symbol_c *IN_type_symbol = param_data_type;
       
  2891             last_type_symbol = param_data_type;
       
  2892             
       
  2893             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2894             {
       
  2895         
       
  2896                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  2897                 s4o.print("(");
       
  2898                 return_type_symbol->accept(*this);
       
  2899                 s4o.print(")__int_to_time(");
       
  2900                 IN_param_value->accept(*this);
       
  2901                 s4o.print(")");
       
  2902                 return NULL;
       
  2903                 
       
  2904             }
       
  2905             
       
  2906             ERROR;
       
  2907         }
       
  2908         
       
  2909     }/*function_lint_to_dt*/
       
  2910     break;
       
  2911 
       
  2912 /****
       
  2913  *LINT_TO_STRING
       
  2914  */
       
  2915     case function_lint_to_string :
       
  2916     {
       
  2917         symbol_c *last_type_symbol = NULL;
       
  2918 
       
  2919         {
       
  2920             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2921             symbol_c *IN_param_value = &this->default_variable_name;
       
  2922         
       
  2923             symbol_c *IN_type_symbol = param_data_type;
       
  2924             last_type_symbol = param_data_type;
       
  2925             
       
  2926             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2927             {
       
  2928         
       
  2929                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  2930                 s4o.print("(");
       
  2931                 return_type_symbol->accept(*this);
       
  2932                 s4o.print(")__sint_to_string(");
       
  2933                 IN_param_value->accept(*this);
       
  2934                 s4o.print(")");
       
  2935                 return NULL;
       
  2936                 
       
  2937             }
       
  2938             
       
  2939             ERROR;
       
  2940         }
       
  2941         
       
  2942     }/*function_lint_to_string*/
       
  2943     break;
       
  2944 
       
  2945 /****
       
  2946  *LINT_TO_BYTE
       
  2947  */
       
  2948     case function_lint_to_byte :
       
  2949     {
       
  2950         symbol_c *last_type_symbol = NULL;
       
  2951 
       
  2952         {
       
  2953             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2954             symbol_c *IN_param_value = &this->default_variable_name;
       
  2955         
       
  2956             symbol_c *IN_type_symbol = param_data_type;
       
  2957             last_type_symbol = param_data_type;
       
  2958             
       
  2959             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2960             {
       
  2961         
       
  2962                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  2963                 s4o.print("(");
       
  2964                 return_type_symbol->accept(*this);
       
  2965                 s4o.print(")");
       
  2966                 IN_param_value->accept(*this);
       
  2967                 return NULL;
       
  2968                 
       
  2969             }
       
  2970             
       
  2971             ERROR;
       
  2972         }
       
  2973         
       
  2974     }/*function_lint_to_byte*/
       
  2975     break;
       
  2976 
       
  2977 /****
       
  2978  *LINT_TO_WORD
       
  2979  */
       
  2980     case function_lint_to_word :
       
  2981     {
       
  2982         symbol_c *last_type_symbol = NULL;
       
  2983 
       
  2984         {
       
  2985             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2986             symbol_c *IN_param_value = &this->default_variable_name;
       
  2987         
       
  2988             symbol_c *IN_type_symbol = param_data_type;
       
  2989             last_type_symbol = param_data_type;
       
  2990             
       
  2991             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  2992             {
       
  2993         
       
  2994                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  2995                 s4o.print("(");
       
  2996                 return_type_symbol->accept(*this);
       
  2997                 s4o.print(")");
       
  2998                 IN_param_value->accept(*this);
       
  2999                 return NULL;
       
  3000                 
       
  3001             }
       
  3002             
       
  3003             ERROR;
       
  3004         }
       
  3005         
       
  3006     }/*function_lint_to_word*/
       
  3007     break;
       
  3008 
       
  3009 /****
       
  3010  *LINT_TO_DWORD
       
  3011  */
       
  3012     case function_lint_to_dword :
       
  3013     {
       
  3014         symbol_c *last_type_symbol = NULL;
       
  3015 
       
  3016         {
       
  3017             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3018             symbol_c *IN_param_value = &this->default_variable_name;
       
  3019         
       
  3020             symbol_c *IN_type_symbol = param_data_type;
       
  3021             last_type_symbol = param_data_type;
       
  3022             
       
  3023             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3024             {
       
  3025         
       
  3026                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  3027                 s4o.print("(");
       
  3028                 return_type_symbol->accept(*this);
       
  3029                 s4o.print(")");
       
  3030                 IN_param_value->accept(*this);
       
  3031                 return NULL;
       
  3032                 
       
  3033             }
       
  3034             
       
  3035             ERROR;
       
  3036         }
       
  3037         
       
  3038     }/*function_lint_to_dword*/
       
  3039     break;
       
  3040 
       
  3041 /****
       
  3042  *LINT_TO_LWORD
       
  3043  */
       
  3044     case function_lint_to_lword :
       
  3045     {
       
  3046         symbol_c *last_type_symbol = NULL;
       
  3047 
       
  3048         {
       
  3049             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3050             symbol_c *IN_param_value = &this->default_variable_name;
       
  3051         
       
  3052             symbol_c *IN_type_symbol = param_data_type;
       
  3053             last_type_symbol = param_data_type;
       
  3054             
       
  3055             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3056             {
       
  3057         
       
  3058                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  3059                 s4o.print("(");
       
  3060                 return_type_symbol->accept(*this);
       
  3061                 s4o.print(")");
       
  3062                 IN_param_value->accept(*this);
       
  3063                 return NULL;
       
  3064                 
       
  3065             }
       
  3066             
       
  3067             ERROR;
       
  3068         }
       
  3069         
       
  3070     }/*function_lint_to_lword*/
       
  3071     break;
       
  3072 
       
  3073 /****
       
  3074  *USINT_TO_BOOL
       
  3075  */
       
  3076     case function_usint_to_bool :
       
  3077     {
       
  3078         symbol_c *last_type_symbol = NULL;
       
  3079 
       
  3080         {
       
  3081             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3082             symbol_c *IN_param_value = &this->default_variable_name;
       
  3083         
       
  3084             symbol_c *IN_type_symbol = param_data_type;
       
  3085             last_type_symbol = param_data_type;
       
  3086             
       
  3087             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3088             {
       
  3089         
       
  3090                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  3091                 s4o.print("(");
       
  3092                 return_type_symbol->accept(*this);
       
  3093                 s4o.print(")");
       
  3094                 IN_param_value->accept(*this);
       
  3095                 return NULL;
       
  3096                 
       
  3097             }
       
  3098             
       
  3099             ERROR;
       
  3100         }
       
  3101         
       
  3102     }/*function_usint_to_bool*/
       
  3103     break;
       
  3104 
       
  3105 /****
       
  3106  *USINT_TO_SINT
       
  3107  */
       
  3108     case function_usint_to_sint :
       
  3109     {
       
  3110         symbol_c *last_type_symbol = NULL;
       
  3111 
       
  3112         {
       
  3113             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3114             symbol_c *IN_param_value = &this->default_variable_name;
       
  3115         
       
  3116             symbol_c *IN_type_symbol = param_data_type;
       
  3117             last_type_symbol = param_data_type;
       
  3118             
       
  3119             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3120             {
       
  3121         
       
  3122                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  3123                 s4o.print("(");
       
  3124                 return_type_symbol->accept(*this);
       
  3125                 s4o.print(")");
       
  3126                 IN_param_value->accept(*this);
       
  3127                 return NULL;
       
  3128                 
       
  3129             }
       
  3130             
       
  3131             ERROR;
       
  3132         }
       
  3133         
       
  3134     }/*function_usint_to_sint*/
       
  3135     break;
       
  3136 
       
  3137 /****
       
  3138  *USINT_TO_INT
       
  3139  */
       
  3140     case function_usint_to_int :
       
  3141     {
       
  3142         symbol_c *last_type_symbol = NULL;
       
  3143 
       
  3144         {
       
  3145             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3146             symbol_c *IN_param_value = &this->default_variable_name;
       
  3147         
       
  3148             symbol_c *IN_type_symbol = param_data_type;
       
  3149             last_type_symbol = param_data_type;
       
  3150             
       
  3151             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3152             {
       
  3153         
       
  3154                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  3155                 s4o.print("(");
       
  3156                 return_type_symbol->accept(*this);
       
  3157                 s4o.print(")");
       
  3158                 IN_param_value->accept(*this);
       
  3159                 return NULL;
       
  3160                 
       
  3161             }
       
  3162             
       
  3163             ERROR;
       
  3164         }
       
  3165         
       
  3166     }/*function_usint_to_int*/
       
  3167     break;
       
  3168 
       
  3169 /****
       
  3170  *USINT_TO_DINT
       
  3171  */
       
  3172     case function_usint_to_dint :
       
  3173     {
       
  3174         symbol_c *last_type_symbol = NULL;
       
  3175 
       
  3176         {
       
  3177             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3178             symbol_c *IN_param_value = &this->default_variable_name;
       
  3179         
       
  3180             symbol_c *IN_type_symbol = param_data_type;
       
  3181             last_type_symbol = param_data_type;
       
  3182             
       
  3183             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3184             {
       
  3185         
       
  3186                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  3187                 s4o.print("(");
       
  3188                 return_type_symbol->accept(*this);
       
  3189                 s4o.print(")");
       
  3190                 IN_param_value->accept(*this);
       
  3191                 return NULL;
       
  3192                 
       
  3193             }
       
  3194             
       
  3195             ERROR;
       
  3196         }
       
  3197         
       
  3198     }/*function_usint_to_dint*/
       
  3199     break;
       
  3200 
       
  3201 /****
       
  3202  *USINT_TO_LINT
       
  3203  */
       
  3204     case function_usint_to_lint :
       
  3205     {
       
  3206         symbol_c *last_type_symbol = NULL;
       
  3207 
       
  3208         {
       
  3209             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3210             symbol_c *IN_param_value = &this->default_variable_name;
       
  3211         
       
  3212             symbol_c *IN_type_symbol = param_data_type;
       
  3213             last_type_symbol = param_data_type;
       
  3214             
       
  3215             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3216             {
       
  3217         
       
  3218                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  3219                 s4o.print("(");
       
  3220                 return_type_symbol->accept(*this);
       
  3221                 s4o.print(")");
       
  3222                 IN_param_value->accept(*this);
       
  3223                 return NULL;
       
  3224                 
       
  3225             }
       
  3226             
       
  3227             ERROR;
       
  3228         }
       
  3229         
       
  3230     }/*function_usint_to_lint*/
       
  3231     break;
       
  3232 
       
  3233 /****
       
  3234  *USINT_TO_UINT
       
  3235  */
       
  3236     case function_usint_to_uint :
       
  3237     {
       
  3238         symbol_c *last_type_symbol = NULL;
       
  3239 
       
  3240         {
       
  3241             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3242             symbol_c *IN_param_value = &this->default_variable_name;
       
  3243         
       
  3244             symbol_c *IN_type_symbol = param_data_type;
       
  3245             last_type_symbol = param_data_type;
       
  3246             
       
  3247             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3248             {
       
  3249         
       
  3250                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  3251                 s4o.print("(");
       
  3252                 return_type_symbol->accept(*this);
       
  3253                 s4o.print(")");
       
  3254                 IN_param_value->accept(*this);
       
  3255                 return NULL;
       
  3256                 
       
  3257             }
       
  3258             
       
  3259             ERROR;
       
  3260         }
       
  3261         
       
  3262     }/*function_usint_to_uint*/
       
  3263     break;
       
  3264 
       
  3265 /****
       
  3266  *USINT_TO_UDINT
       
  3267  */
       
  3268     case function_usint_to_udint :
       
  3269     {
       
  3270         symbol_c *last_type_symbol = NULL;
       
  3271 
       
  3272         {
       
  3273             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3274             symbol_c *IN_param_value = &this->default_variable_name;
       
  3275         
       
  3276             symbol_c *IN_type_symbol = param_data_type;
       
  3277             last_type_symbol = param_data_type;
       
  3278             
       
  3279             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3280             {
       
  3281         
       
  3282                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  3283                 s4o.print("(");
       
  3284                 return_type_symbol->accept(*this);
       
  3285                 s4o.print(")");
       
  3286                 IN_param_value->accept(*this);
       
  3287                 return NULL;
       
  3288                 
       
  3289             }
       
  3290             
       
  3291             ERROR;
       
  3292         }
       
  3293         
       
  3294     }/*function_usint_to_udint*/
       
  3295     break;
       
  3296 
       
  3297 /****
       
  3298  *USINT_TO_ULINT
       
  3299  */
       
  3300     case function_usint_to_ulint :
       
  3301     {
       
  3302         symbol_c *last_type_symbol = NULL;
       
  3303 
       
  3304         {
       
  3305             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3306             symbol_c *IN_param_value = &this->default_variable_name;
       
  3307         
       
  3308             symbol_c *IN_type_symbol = param_data_type;
       
  3309             last_type_symbol = param_data_type;
       
  3310             
       
  3311             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3312             {
       
  3313         
       
  3314                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  3315                 s4o.print("(");
       
  3316                 return_type_symbol->accept(*this);
       
  3317                 s4o.print(")");
       
  3318                 IN_param_value->accept(*this);
       
  3319                 return NULL;
       
  3320                 
       
  3321             }
       
  3322             
       
  3323             ERROR;
       
  3324         }
       
  3325         
       
  3326     }/*function_usint_to_ulint*/
       
  3327     break;
       
  3328 
       
  3329 /****
       
  3330  *USINT_TO_REAL
       
  3331  */
       
  3332     case function_usint_to_real :
       
  3333     {
       
  3334         symbol_c *last_type_symbol = NULL;
       
  3335 
       
  3336         {
       
  3337             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3338             symbol_c *IN_param_value = &this->default_variable_name;
       
  3339         
       
  3340             symbol_c *IN_type_symbol = param_data_type;
       
  3341             last_type_symbol = param_data_type;
       
  3342             
       
  3343             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3344             {
       
  3345         
       
  3346                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  3347                 s4o.print("(");
       
  3348                 return_type_symbol->accept(*this);
       
  3349                 s4o.print(")");
       
  3350                 IN_param_value->accept(*this);
       
  3351                 return NULL;
       
  3352                 
       
  3353             }
       
  3354             
       
  3355             ERROR;
       
  3356         }
       
  3357         
       
  3358     }/*function_usint_to_real*/
       
  3359     break;
       
  3360 
       
  3361 /****
       
  3362  *USINT_TO_LREAL
       
  3363  */
       
  3364     case function_usint_to_lreal :
       
  3365     {
       
  3366         symbol_c *last_type_symbol = NULL;
       
  3367 
       
  3368         {
       
  3369             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3370             symbol_c *IN_param_value = &this->default_variable_name;
       
  3371         
       
  3372             symbol_c *IN_type_symbol = param_data_type;
       
  3373             last_type_symbol = param_data_type;
       
  3374             
       
  3375             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3376             {
       
  3377         
       
  3378                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  3379                 s4o.print("(");
       
  3380                 return_type_symbol->accept(*this);
       
  3381                 s4o.print(")");
       
  3382                 IN_param_value->accept(*this);
       
  3383                 return NULL;
       
  3384                 
       
  3385             }
       
  3386             
       
  3387             ERROR;
       
  3388         }
       
  3389         
       
  3390     }/*function_usint_to_lreal*/
       
  3391     break;
       
  3392 
       
  3393 /****
       
  3394  *USINT_TO_TIME
       
  3395  */
       
  3396     case function_usint_to_time :
       
  3397     {
       
  3398         symbol_c *last_type_symbol = NULL;
       
  3399 
       
  3400         {
       
  3401             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3402             symbol_c *IN_param_value = &this->default_variable_name;
       
  3403         
       
  3404             symbol_c *IN_type_symbol = param_data_type;
       
  3405             last_type_symbol = param_data_type;
       
  3406             
       
  3407             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3408             {
       
  3409         
       
  3410                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  3411                 s4o.print("(");
       
  3412                 return_type_symbol->accept(*this);
       
  3413                 s4o.print(")__int_to_time(");
       
  3414                 IN_param_value->accept(*this);
       
  3415                 s4o.print(")");
       
  3416                 return NULL;
       
  3417                 
       
  3418             }
       
  3419             
       
  3420             ERROR;
       
  3421         }
       
  3422         
       
  3423     }/*function_usint_to_time*/
       
  3424     break;
       
  3425 
       
  3426 /****
       
  3427  *USINT_TO_DATE
       
  3428  */
       
  3429     case function_usint_to_date :
       
  3430     {
       
  3431         symbol_c *last_type_symbol = NULL;
       
  3432 
       
  3433         {
       
  3434             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3435             symbol_c *IN_param_value = &this->default_variable_name;
       
  3436         
       
  3437             symbol_c *IN_type_symbol = param_data_type;
       
  3438             last_type_symbol = param_data_type;
       
  3439             
       
  3440             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3441             {
       
  3442         
       
  3443                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  3444                 s4o.print("(");
       
  3445                 return_type_symbol->accept(*this);
       
  3446                 s4o.print(")__int_to_time(");
       
  3447                 IN_param_value->accept(*this);
       
  3448                 s4o.print(")");
       
  3449                 return NULL;
       
  3450                 
       
  3451             }
       
  3452             
       
  3453             ERROR;
       
  3454         }
       
  3455         
       
  3456     }/*function_usint_to_date*/
       
  3457     break;
       
  3458 
       
  3459 /****
       
  3460  *USINT_TO_TOD
       
  3461  */
       
  3462     case function_usint_to_tod :
       
  3463     {
       
  3464         symbol_c *last_type_symbol = NULL;
       
  3465 
       
  3466         {
       
  3467             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3468             symbol_c *IN_param_value = &this->default_variable_name;
       
  3469         
       
  3470             symbol_c *IN_type_symbol = param_data_type;
       
  3471             last_type_symbol = param_data_type;
       
  3472             
       
  3473             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3474             {
       
  3475         
       
  3476                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  3477                 s4o.print("(");
       
  3478                 return_type_symbol->accept(*this);
       
  3479                 s4o.print(")__int_to_time(");
       
  3480                 IN_param_value->accept(*this);
       
  3481                 s4o.print(")");
       
  3482                 return NULL;
       
  3483                 
       
  3484             }
       
  3485             
       
  3486             ERROR;
       
  3487         }
       
  3488         
       
  3489     }/*function_usint_to_tod*/
       
  3490     break;
       
  3491 
       
  3492 /****
       
  3493  *USINT_TO_DT
       
  3494  */
       
  3495     case function_usint_to_dt :
       
  3496     {
       
  3497         symbol_c *last_type_symbol = NULL;
       
  3498 
       
  3499         {
       
  3500             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3501             symbol_c *IN_param_value = &this->default_variable_name;
       
  3502         
       
  3503             symbol_c *IN_type_symbol = param_data_type;
       
  3504             last_type_symbol = param_data_type;
       
  3505             
       
  3506             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3507             {
       
  3508         
       
  3509                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  3510                 s4o.print("(");
       
  3511                 return_type_symbol->accept(*this);
       
  3512                 s4o.print(")__int_to_time(");
       
  3513                 IN_param_value->accept(*this);
       
  3514                 s4o.print(")");
       
  3515                 return NULL;
       
  3516                 
       
  3517             }
       
  3518             
       
  3519             ERROR;
       
  3520         }
       
  3521         
       
  3522     }/*function_usint_to_dt*/
       
  3523     break;
       
  3524 
       
  3525 /****
       
  3526  *USINT_TO_STRING
       
  3527  */
       
  3528     case function_usint_to_string :
       
  3529     {
       
  3530         symbol_c *last_type_symbol = NULL;
       
  3531 
       
  3532         {
       
  3533             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3534             symbol_c *IN_param_value = &this->default_variable_name;
       
  3535         
       
  3536             symbol_c *IN_type_symbol = param_data_type;
       
  3537             last_type_symbol = param_data_type;
       
  3538             
       
  3539             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3540             {
       
  3541         
       
  3542                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  3543                 s4o.print("(");
       
  3544                 return_type_symbol->accept(*this);
       
  3545                 s4o.print(")__uint_to_string(");
       
  3546                 IN_param_value->accept(*this);
       
  3547                 s4o.print(")");
       
  3548                 return NULL;
       
  3549                 
       
  3550             }
       
  3551             
       
  3552             ERROR;
       
  3553         }
       
  3554         
       
  3555     }/*function_usint_to_string*/
       
  3556     break;
       
  3557 
       
  3558 /****
       
  3559  *USINT_TO_BYTE
       
  3560  */
       
  3561     case function_usint_to_byte :
       
  3562     {
       
  3563         symbol_c *last_type_symbol = NULL;
       
  3564 
       
  3565         {
       
  3566             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3567             symbol_c *IN_param_value = &this->default_variable_name;
       
  3568         
       
  3569             symbol_c *IN_type_symbol = param_data_type;
       
  3570             last_type_symbol = param_data_type;
       
  3571             
       
  3572             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3573             {
       
  3574         
       
  3575                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  3576                 s4o.print("(");
       
  3577                 return_type_symbol->accept(*this);
       
  3578                 s4o.print(")");
       
  3579                 IN_param_value->accept(*this);
       
  3580                 return NULL;
       
  3581                 
       
  3582             }
       
  3583             
       
  3584             ERROR;
       
  3585         }
       
  3586         
       
  3587     }/*function_usint_to_byte*/
       
  3588     break;
       
  3589 
       
  3590 /****
       
  3591  *USINT_TO_WORD
       
  3592  */
       
  3593     case function_usint_to_word :
       
  3594     {
       
  3595         symbol_c *last_type_symbol = NULL;
       
  3596 
       
  3597         {
       
  3598             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3599             symbol_c *IN_param_value = &this->default_variable_name;
       
  3600         
       
  3601             symbol_c *IN_type_symbol = param_data_type;
       
  3602             last_type_symbol = param_data_type;
       
  3603             
       
  3604             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3605             {
       
  3606         
       
  3607                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  3608                 s4o.print("(");
       
  3609                 return_type_symbol->accept(*this);
       
  3610                 s4o.print(")");
       
  3611                 IN_param_value->accept(*this);
       
  3612                 return NULL;
       
  3613                 
       
  3614             }
       
  3615             
       
  3616             ERROR;
       
  3617         }
       
  3618         
       
  3619     }/*function_usint_to_word*/
       
  3620     break;
       
  3621 
       
  3622 /****
       
  3623  *USINT_TO_DWORD
       
  3624  */
       
  3625     case function_usint_to_dword :
       
  3626     {
       
  3627         symbol_c *last_type_symbol = NULL;
       
  3628 
       
  3629         {
       
  3630             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3631             symbol_c *IN_param_value = &this->default_variable_name;
       
  3632         
       
  3633             symbol_c *IN_type_symbol = param_data_type;
       
  3634             last_type_symbol = param_data_type;
       
  3635             
       
  3636             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3637             {
       
  3638         
       
  3639                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  3640                 s4o.print("(");
       
  3641                 return_type_symbol->accept(*this);
       
  3642                 s4o.print(")");
       
  3643                 IN_param_value->accept(*this);
       
  3644                 return NULL;
       
  3645                 
       
  3646             }
       
  3647             
       
  3648             ERROR;
       
  3649         }
       
  3650         
       
  3651     }/*function_usint_to_dword*/
       
  3652     break;
       
  3653 
       
  3654 /****
       
  3655  *USINT_TO_LWORD
       
  3656  */
       
  3657     case function_usint_to_lword :
       
  3658     {
       
  3659         symbol_c *last_type_symbol = NULL;
       
  3660 
       
  3661         {
       
  3662             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3663             symbol_c *IN_param_value = &this->default_variable_name;
       
  3664         
       
  3665             symbol_c *IN_type_symbol = param_data_type;
       
  3666             last_type_symbol = param_data_type;
       
  3667             
       
  3668             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3669             {
       
  3670         
       
  3671                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  3672                 s4o.print("(");
       
  3673                 return_type_symbol->accept(*this);
       
  3674                 s4o.print(")");
       
  3675                 IN_param_value->accept(*this);
       
  3676                 return NULL;
       
  3677                 
       
  3678             }
       
  3679             
       
  3680             ERROR;
       
  3681         }
       
  3682         
       
  3683     }/*function_usint_to_lword*/
       
  3684     break;
       
  3685 
       
  3686 /****
       
  3687  *UINT_TO_BOOL
       
  3688  */
       
  3689     case function_uint_to_bool :
       
  3690     {
       
  3691         symbol_c *last_type_symbol = NULL;
       
  3692 
       
  3693         {
       
  3694             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3695             symbol_c *IN_param_value = &this->default_variable_name;
       
  3696         
       
  3697             symbol_c *IN_type_symbol = param_data_type;
       
  3698             last_type_symbol = param_data_type;
       
  3699             
       
  3700             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  3701             {
       
  3702         
       
  3703                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  3704                 s4o.print("(");
       
  3705                 return_type_symbol->accept(*this);
       
  3706                 s4o.print(")");
       
  3707                 IN_param_value->accept(*this);
       
  3708                 return NULL;
       
  3709                 
       
  3710             }
       
  3711             
       
  3712             ERROR;
       
  3713         }
       
  3714         
       
  3715     }/*function_uint_to_bool*/
       
  3716     break;
       
  3717 
       
  3718 /****
       
  3719  *UINT_TO_SINT
       
  3720  */
       
  3721     case function_uint_to_sint :
       
  3722     {
       
  3723         symbol_c *last_type_symbol = NULL;
       
  3724 
       
  3725         {
       
  3726             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3727             symbol_c *IN_param_value = &this->default_variable_name;
       
  3728         
       
  3729             symbol_c *IN_type_symbol = param_data_type;
       
  3730             last_type_symbol = param_data_type;
       
  3731             
       
  3732             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  3733             {
       
  3734         
       
  3735                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  3736                 s4o.print("(");
       
  3737                 return_type_symbol->accept(*this);
       
  3738                 s4o.print(")");
       
  3739                 IN_param_value->accept(*this);
       
  3740                 return NULL;
       
  3741                 
       
  3742             }
       
  3743             
       
  3744             ERROR;
       
  3745         }
       
  3746         
       
  3747     }/*function_uint_to_sint*/
       
  3748     break;
       
  3749 
       
  3750 /****
       
  3751  *UINT_TO_INT
       
  3752  */
       
  3753     case function_uint_to_int :
       
  3754     {
       
  3755         symbol_c *last_type_symbol = NULL;
       
  3756 
       
  3757         {
       
  3758             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3759             symbol_c *IN_param_value = &this->default_variable_name;
       
  3760         
       
  3761             symbol_c *IN_type_symbol = param_data_type;
       
  3762             last_type_symbol = param_data_type;
       
  3763             
       
  3764             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  3765             {
       
  3766         
       
  3767                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  3768                 s4o.print("(");
       
  3769                 return_type_symbol->accept(*this);
       
  3770                 s4o.print(")");
       
  3771                 IN_param_value->accept(*this);
       
  3772                 return NULL;
       
  3773                 
       
  3774             }
       
  3775             
       
  3776             ERROR;
       
  3777         }
       
  3778         
       
  3779     }/*function_uint_to_int*/
       
  3780     break;
       
  3781 
       
  3782 /****
       
  3783  *UINT_TO_DINT
       
  3784  */
       
  3785     case function_uint_to_dint :
       
  3786     {
       
  3787         symbol_c *last_type_symbol = NULL;
       
  3788 
       
  3789         {
       
  3790             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3791             symbol_c *IN_param_value = &this->default_variable_name;
       
  3792         
       
  3793             symbol_c *IN_type_symbol = param_data_type;
       
  3794             last_type_symbol = param_data_type;
       
  3795             
       
  3796             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  3797             {
       
  3798         
       
  3799                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  3800                 s4o.print("(");
       
  3801                 return_type_symbol->accept(*this);
       
  3802                 s4o.print(")");
       
  3803                 IN_param_value->accept(*this);
       
  3804                 return NULL;
       
  3805                 
       
  3806             }
       
  3807             
       
  3808             ERROR;
       
  3809         }
       
  3810         
       
  3811     }/*function_uint_to_dint*/
       
  3812     break;
       
  3813 
       
  3814 /****
       
  3815  *UINT_TO_LINT
       
  3816  */
       
  3817     case function_uint_to_lint :
       
  3818     {
       
  3819         symbol_c *last_type_symbol = NULL;
       
  3820 
       
  3821         {
       
  3822             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3823             symbol_c *IN_param_value = &this->default_variable_name;
       
  3824         
       
  3825             symbol_c *IN_type_symbol = param_data_type;
       
  3826             last_type_symbol = param_data_type;
       
  3827             
       
  3828             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  3829             {
       
  3830         
       
  3831                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  3832                 s4o.print("(");
       
  3833                 return_type_symbol->accept(*this);
       
  3834                 s4o.print(")");
       
  3835                 IN_param_value->accept(*this);
       
  3836                 return NULL;
       
  3837                 
       
  3838             }
       
  3839             
       
  3840             ERROR;
       
  3841         }
       
  3842         
       
  3843     }/*function_uint_to_lint*/
       
  3844     break;
       
  3845 
       
  3846 /****
       
  3847  *UINT_TO_USINT
       
  3848  */
       
  3849     case function_uint_to_usint :
       
  3850     {
       
  3851         symbol_c *last_type_symbol = NULL;
       
  3852 
       
  3853         {
       
  3854             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3855             symbol_c *IN_param_value = &this->default_variable_name;
       
  3856         
       
  3857             symbol_c *IN_type_symbol = param_data_type;
       
  3858             last_type_symbol = param_data_type;
       
  3859             
       
  3860             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  3861             {
       
  3862         
       
  3863                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  3864                 s4o.print("(");
       
  3865                 return_type_symbol->accept(*this);
       
  3866                 s4o.print(")");
       
  3867                 IN_param_value->accept(*this);
       
  3868                 return NULL;
       
  3869                 
       
  3870             }
       
  3871             
       
  3872             ERROR;
       
  3873         }
       
  3874         
       
  3875     }/*function_uint_to_usint*/
       
  3876     break;
       
  3877 
       
  3878 /****
       
  3879  *UINT_TO_UDINT
       
  3880  */
       
  3881     case function_uint_to_udint :
       
  3882     {
       
  3883         symbol_c *last_type_symbol = NULL;
       
  3884 
       
  3885         {
       
  3886             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3887             symbol_c *IN_param_value = &this->default_variable_name;
       
  3888         
       
  3889             symbol_c *IN_type_symbol = param_data_type;
       
  3890             last_type_symbol = param_data_type;
       
  3891             
       
  3892             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  3893             {
       
  3894         
       
  3895                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  3896                 s4o.print("(");
       
  3897                 return_type_symbol->accept(*this);
       
  3898                 s4o.print(")");
       
  3899                 IN_param_value->accept(*this);
       
  3900                 return NULL;
       
  3901                 
       
  3902             }
       
  3903             
       
  3904             ERROR;
       
  3905         }
       
  3906         
       
  3907     }/*function_uint_to_udint*/
       
  3908     break;
       
  3909 
       
  3910 /****
       
  3911  *UINT_TO_ULINT
       
  3912  */
       
  3913     case function_uint_to_ulint :
       
  3914     {
       
  3915         symbol_c *last_type_symbol = NULL;
       
  3916 
       
  3917         {
       
  3918             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3919             symbol_c *IN_param_value = &this->default_variable_name;
       
  3920         
       
  3921             symbol_c *IN_type_symbol = param_data_type;
       
  3922             last_type_symbol = param_data_type;
       
  3923             
       
  3924             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  3925             {
       
  3926         
       
  3927                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  3928                 s4o.print("(");
       
  3929                 return_type_symbol->accept(*this);
       
  3930                 s4o.print(")");
       
  3931                 IN_param_value->accept(*this);
       
  3932                 return NULL;
       
  3933                 
       
  3934             }
       
  3935             
       
  3936             ERROR;
       
  3937         }
       
  3938         
       
  3939     }/*function_uint_to_ulint*/
       
  3940     break;
       
  3941 
       
  3942 /****
       
  3943  *UINT_TO_REAL
       
  3944  */
       
  3945     case function_uint_to_real :
       
  3946     {
       
  3947         symbol_c *last_type_symbol = NULL;
       
  3948 
       
  3949         {
       
  3950             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3951             symbol_c *IN_param_value = &this->default_variable_name;
       
  3952         
       
  3953             symbol_c *IN_type_symbol = param_data_type;
       
  3954             last_type_symbol = param_data_type;
       
  3955             
       
  3956             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  3957             {
       
  3958         
       
  3959                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  3960                 s4o.print("(");
       
  3961                 return_type_symbol->accept(*this);
       
  3962                 s4o.print(")");
       
  3963                 IN_param_value->accept(*this);
       
  3964                 return NULL;
       
  3965                 
       
  3966             }
       
  3967             
       
  3968             ERROR;
       
  3969         }
       
  3970         
       
  3971     }/*function_uint_to_real*/
       
  3972     break;
       
  3973 
       
  3974 /****
       
  3975  *UINT_TO_LREAL
       
  3976  */
       
  3977     case function_uint_to_lreal :
       
  3978     {
       
  3979         symbol_c *last_type_symbol = NULL;
       
  3980 
       
  3981         {
       
  3982             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3983             symbol_c *IN_param_value = &this->default_variable_name;
       
  3984         
       
  3985             symbol_c *IN_type_symbol = param_data_type;
       
  3986             last_type_symbol = param_data_type;
       
  3987             
       
  3988             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  3989             {
       
  3990         
       
  3991                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  3992                 s4o.print("(");
       
  3993                 return_type_symbol->accept(*this);
       
  3994                 s4o.print(")");
       
  3995                 IN_param_value->accept(*this);
       
  3996                 return NULL;
       
  3997                 
       
  3998             }
       
  3999             
       
  4000             ERROR;
       
  4001         }
       
  4002         
       
  4003     }/*function_uint_to_lreal*/
       
  4004     break;
       
  4005 
       
  4006 /****
       
  4007  *UINT_TO_TIME
       
  4008  */
       
  4009     case function_uint_to_time :
       
  4010     {
       
  4011         symbol_c *last_type_symbol = NULL;
       
  4012 
       
  4013         {
       
  4014             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4015             symbol_c *IN_param_value = &this->default_variable_name;
       
  4016         
       
  4017             symbol_c *IN_type_symbol = param_data_type;
       
  4018             last_type_symbol = param_data_type;
       
  4019             
       
  4020             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4021             {
       
  4022         
       
  4023                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  4024                 s4o.print("(");
       
  4025                 return_type_symbol->accept(*this);
       
  4026                 s4o.print(")__int_to_time(");
       
  4027                 IN_param_value->accept(*this);
       
  4028                 s4o.print(")");
       
  4029                 return NULL;
       
  4030                 
       
  4031             }
       
  4032             
       
  4033             ERROR;
       
  4034         }
       
  4035         
       
  4036     }/*function_uint_to_time*/
       
  4037     break;
       
  4038 
       
  4039 /****
       
  4040  *UINT_TO_DATE
       
  4041  */
       
  4042     case function_uint_to_date :
       
  4043     {
       
  4044         symbol_c *last_type_symbol = NULL;
       
  4045 
       
  4046         {
       
  4047             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4048             symbol_c *IN_param_value = &this->default_variable_name;
       
  4049         
       
  4050             symbol_c *IN_type_symbol = param_data_type;
       
  4051             last_type_symbol = param_data_type;
       
  4052             
       
  4053             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4054             {
       
  4055         
       
  4056                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  4057                 s4o.print("(");
       
  4058                 return_type_symbol->accept(*this);
       
  4059                 s4o.print(")__int_to_time(");
       
  4060                 IN_param_value->accept(*this);
       
  4061                 s4o.print(")");
       
  4062                 return NULL;
       
  4063                 
       
  4064             }
       
  4065             
       
  4066             ERROR;
       
  4067         }
       
  4068         
       
  4069     }/*function_uint_to_date*/
       
  4070     break;
       
  4071 
       
  4072 /****
       
  4073  *UINT_TO_TOD
       
  4074  */
       
  4075     case function_uint_to_tod :
       
  4076     {
       
  4077         symbol_c *last_type_symbol = NULL;
       
  4078 
       
  4079         {
       
  4080             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4081             symbol_c *IN_param_value = &this->default_variable_name;
       
  4082         
       
  4083             symbol_c *IN_type_symbol = param_data_type;
       
  4084             last_type_symbol = param_data_type;
       
  4085             
       
  4086             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4087             {
       
  4088         
       
  4089                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  4090                 s4o.print("(");
       
  4091                 return_type_symbol->accept(*this);
       
  4092                 s4o.print(")__int_to_time(");
       
  4093                 IN_param_value->accept(*this);
       
  4094                 s4o.print(")");
       
  4095                 return NULL;
       
  4096                 
       
  4097             }
       
  4098             
       
  4099             ERROR;
       
  4100         }
       
  4101         
       
  4102     }/*function_uint_to_tod*/
       
  4103     break;
       
  4104 
       
  4105 /****
       
  4106  *UINT_TO_DT
       
  4107  */
       
  4108     case function_uint_to_dt :
       
  4109     {
       
  4110         symbol_c *last_type_symbol = NULL;
       
  4111 
       
  4112         {
       
  4113             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4114             symbol_c *IN_param_value = &this->default_variable_name;
       
  4115         
       
  4116             symbol_c *IN_type_symbol = param_data_type;
       
  4117             last_type_symbol = param_data_type;
       
  4118             
       
  4119             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4120             {
       
  4121         
       
  4122                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  4123                 s4o.print("(");
       
  4124                 return_type_symbol->accept(*this);
       
  4125                 s4o.print(")__int_to_time(");
       
  4126                 IN_param_value->accept(*this);
       
  4127                 s4o.print(")");
       
  4128                 return NULL;
       
  4129                 
       
  4130             }
       
  4131             
       
  4132             ERROR;
       
  4133         }
       
  4134         
       
  4135     }/*function_uint_to_dt*/
       
  4136     break;
       
  4137 
       
  4138 /****
       
  4139  *UINT_TO_STRING
       
  4140  */
       
  4141     case function_uint_to_string :
       
  4142     {
       
  4143         symbol_c *last_type_symbol = NULL;
       
  4144 
       
  4145         {
       
  4146             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4147             symbol_c *IN_param_value = &this->default_variable_name;
       
  4148         
       
  4149             symbol_c *IN_type_symbol = param_data_type;
       
  4150             last_type_symbol = param_data_type;
       
  4151             
       
  4152             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4153             {
       
  4154         
       
  4155                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  4156                 s4o.print("(");
       
  4157                 return_type_symbol->accept(*this);
       
  4158                 s4o.print(")__uint_to_string(");
       
  4159                 IN_param_value->accept(*this);
       
  4160                 s4o.print(")");
       
  4161                 return NULL;
       
  4162                 
       
  4163             }
       
  4164             
       
  4165             ERROR;
       
  4166         }
       
  4167         
       
  4168     }/*function_uint_to_string*/
       
  4169     break;
       
  4170 
       
  4171 /****
       
  4172  *UINT_TO_BYTE
       
  4173  */
       
  4174     case function_uint_to_byte :
       
  4175     {
       
  4176         symbol_c *last_type_symbol = NULL;
       
  4177 
       
  4178         {
       
  4179             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4180             symbol_c *IN_param_value = &this->default_variable_name;
       
  4181         
       
  4182             symbol_c *IN_type_symbol = param_data_type;
       
  4183             last_type_symbol = param_data_type;
       
  4184             
       
  4185             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4186             {
       
  4187         
       
  4188                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  4189                 s4o.print("(");
       
  4190                 return_type_symbol->accept(*this);
       
  4191                 s4o.print(")");
       
  4192                 IN_param_value->accept(*this);
       
  4193                 return NULL;
       
  4194                 
       
  4195             }
       
  4196             
       
  4197             ERROR;
       
  4198         }
       
  4199         
       
  4200     }/*function_uint_to_byte*/
       
  4201     break;
       
  4202 
       
  4203 /****
       
  4204  *UINT_TO_WORD
       
  4205  */
       
  4206     case function_uint_to_word :
       
  4207     {
       
  4208         symbol_c *last_type_symbol = NULL;
       
  4209 
       
  4210         {
       
  4211             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4212             symbol_c *IN_param_value = &this->default_variable_name;
       
  4213         
       
  4214             symbol_c *IN_type_symbol = param_data_type;
       
  4215             last_type_symbol = param_data_type;
       
  4216             
       
  4217             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4218             {
       
  4219         
       
  4220                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  4221                 s4o.print("(");
       
  4222                 return_type_symbol->accept(*this);
       
  4223                 s4o.print(")");
       
  4224                 IN_param_value->accept(*this);
       
  4225                 return NULL;
       
  4226                 
       
  4227             }
       
  4228             
       
  4229             ERROR;
       
  4230         }
       
  4231         
       
  4232     }/*function_uint_to_word*/
       
  4233     break;
       
  4234 
       
  4235 /****
       
  4236  *UINT_TO_DWORD
       
  4237  */
       
  4238     case function_uint_to_dword :
       
  4239     {
       
  4240         symbol_c *last_type_symbol = NULL;
       
  4241 
       
  4242         {
       
  4243             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4244             symbol_c *IN_param_value = &this->default_variable_name;
       
  4245         
       
  4246             symbol_c *IN_type_symbol = param_data_type;
       
  4247             last_type_symbol = param_data_type;
       
  4248             
       
  4249             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4250             {
       
  4251         
       
  4252                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  4253                 s4o.print("(");
       
  4254                 return_type_symbol->accept(*this);
       
  4255                 s4o.print(")");
       
  4256                 IN_param_value->accept(*this);
       
  4257                 return NULL;
       
  4258                 
       
  4259             }
       
  4260             
       
  4261             ERROR;
       
  4262         }
       
  4263         
       
  4264     }/*function_uint_to_dword*/
       
  4265     break;
       
  4266 
       
  4267 /****
       
  4268  *UINT_TO_LWORD
       
  4269  */
       
  4270     case function_uint_to_lword :
       
  4271     {
       
  4272         symbol_c *last_type_symbol = NULL;
       
  4273 
       
  4274         {
       
  4275             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4276             symbol_c *IN_param_value = &this->default_variable_name;
       
  4277         
       
  4278             symbol_c *IN_type_symbol = param_data_type;
       
  4279             last_type_symbol = param_data_type;
       
  4280             
       
  4281             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4282             {
       
  4283         
       
  4284                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  4285                 s4o.print("(");
       
  4286                 return_type_symbol->accept(*this);
       
  4287                 s4o.print(")");
       
  4288                 IN_param_value->accept(*this);
       
  4289                 return NULL;
       
  4290                 
       
  4291             }
       
  4292             
       
  4293             ERROR;
       
  4294         }
       
  4295         
       
  4296     }/*function_uint_to_lword*/
       
  4297     break;
       
  4298 
       
  4299 /****
       
  4300  *UDINT_TO_BOOL
       
  4301  */
       
  4302     case function_udint_to_bool :
       
  4303     {
       
  4304         symbol_c *last_type_symbol = NULL;
       
  4305 
       
  4306         {
       
  4307             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4308             symbol_c *IN_param_value = &this->default_variable_name;
       
  4309         
       
  4310             symbol_c *IN_type_symbol = param_data_type;
       
  4311             last_type_symbol = param_data_type;
       
  4312             
       
  4313             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4314             {
       
  4315         
       
  4316                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  4317                 s4o.print("(");
       
  4318                 return_type_symbol->accept(*this);
       
  4319                 s4o.print(")");
       
  4320                 IN_param_value->accept(*this);
       
  4321                 return NULL;
       
  4322                 
       
  4323             }
       
  4324             
       
  4325             ERROR;
       
  4326         }
       
  4327         
       
  4328     }/*function_udint_to_bool*/
       
  4329     break;
       
  4330 
       
  4331 /****
       
  4332  *UDINT_TO_SINT
       
  4333  */
       
  4334     case function_udint_to_sint :
       
  4335     {
       
  4336         symbol_c *last_type_symbol = NULL;
       
  4337 
       
  4338         {
       
  4339             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4340             symbol_c *IN_param_value = &this->default_variable_name;
       
  4341         
       
  4342             symbol_c *IN_type_symbol = param_data_type;
       
  4343             last_type_symbol = param_data_type;
       
  4344             
       
  4345             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4346             {
       
  4347         
       
  4348                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  4349                 s4o.print("(");
       
  4350                 return_type_symbol->accept(*this);
       
  4351                 s4o.print(")");
       
  4352                 IN_param_value->accept(*this);
       
  4353                 return NULL;
       
  4354                 
       
  4355             }
       
  4356             
       
  4357             ERROR;
       
  4358         }
       
  4359         
       
  4360     }/*function_udint_to_sint*/
       
  4361     break;
       
  4362 
       
  4363 /****
       
  4364  *UDINT_TO_INT
       
  4365  */
       
  4366     case function_udint_to_int :
       
  4367     {
       
  4368         symbol_c *last_type_symbol = NULL;
       
  4369 
       
  4370         {
       
  4371             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4372             symbol_c *IN_param_value = &this->default_variable_name;
       
  4373         
       
  4374             symbol_c *IN_type_symbol = param_data_type;
       
  4375             last_type_symbol = param_data_type;
       
  4376             
       
  4377             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4378             {
       
  4379         
       
  4380                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  4381                 s4o.print("(");
       
  4382                 return_type_symbol->accept(*this);
       
  4383                 s4o.print(")");
       
  4384                 IN_param_value->accept(*this);
       
  4385                 return NULL;
       
  4386                 
       
  4387             }
       
  4388             
       
  4389             ERROR;
       
  4390         }
       
  4391         
       
  4392     }/*function_udint_to_int*/
       
  4393     break;
       
  4394 
       
  4395 /****
       
  4396  *UDINT_TO_DINT
       
  4397  */
       
  4398     case function_udint_to_dint :
       
  4399     {
       
  4400         symbol_c *last_type_symbol = NULL;
       
  4401 
       
  4402         {
       
  4403             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4404             symbol_c *IN_param_value = &this->default_variable_name;
       
  4405         
       
  4406             symbol_c *IN_type_symbol = param_data_type;
       
  4407             last_type_symbol = param_data_type;
       
  4408             
       
  4409             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4410             {
       
  4411         
       
  4412                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  4413                 s4o.print("(");
       
  4414                 return_type_symbol->accept(*this);
       
  4415                 s4o.print(")");
       
  4416                 IN_param_value->accept(*this);
       
  4417                 return NULL;
       
  4418                 
       
  4419             }
       
  4420             
       
  4421             ERROR;
       
  4422         }
       
  4423         
       
  4424     }/*function_udint_to_dint*/
       
  4425     break;
       
  4426 
       
  4427 /****
       
  4428  *UDINT_TO_LINT
       
  4429  */
       
  4430     case function_udint_to_lint :
       
  4431     {
       
  4432         symbol_c *last_type_symbol = NULL;
       
  4433 
       
  4434         {
       
  4435             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4436             symbol_c *IN_param_value = &this->default_variable_name;
       
  4437         
       
  4438             symbol_c *IN_type_symbol = param_data_type;
       
  4439             last_type_symbol = param_data_type;
       
  4440             
       
  4441             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4442             {
       
  4443         
       
  4444                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  4445                 s4o.print("(");
       
  4446                 return_type_symbol->accept(*this);
       
  4447                 s4o.print(")");
       
  4448                 IN_param_value->accept(*this);
       
  4449                 return NULL;
       
  4450                 
       
  4451             }
       
  4452             
       
  4453             ERROR;
       
  4454         }
       
  4455         
       
  4456     }/*function_udint_to_lint*/
       
  4457     break;
       
  4458 
       
  4459 /****
       
  4460  *UDINT_TO_USINT
       
  4461  */
       
  4462     case function_udint_to_usint :
       
  4463     {
       
  4464         symbol_c *last_type_symbol = NULL;
       
  4465 
       
  4466         {
       
  4467             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4468             symbol_c *IN_param_value = &this->default_variable_name;
       
  4469         
       
  4470             symbol_c *IN_type_symbol = param_data_type;
       
  4471             last_type_symbol = param_data_type;
       
  4472             
       
  4473             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4474             {
       
  4475         
       
  4476                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  4477                 s4o.print("(");
       
  4478                 return_type_symbol->accept(*this);
       
  4479                 s4o.print(")");
       
  4480                 IN_param_value->accept(*this);
       
  4481                 return NULL;
       
  4482                 
       
  4483             }
       
  4484             
       
  4485             ERROR;
       
  4486         }
       
  4487         
       
  4488     }/*function_udint_to_usint*/
       
  4489     break;
       
  4490 
       
  4491 /****
       
  4492  *UDINT_TO_UINT
       
  4493  */
       
  4494     case function_udint_to_uint :
       
  4495     {
       
  4496         symbol_c *last_type_symbol = NULL;
       
  4497 
       
  4498         {
       
  4499             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4500             symbol_c *IN_param_value = &this->default_variable_name;
       
  4501         
       
  4502             symbol_c *IN_type_symbol = param_data_type;
       
  4503             last_type_symbol = param_data_type;
       
  4504             
       
  4505             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4506             {
       
  4507         
       
  4508                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  4509                 s4o.print("(");
       
  4510                 return_type_symbol->accept(*this);
       
  4511                 s4o.print(")");
       
  4512                 IN_param_value->accept(*this);
       
  4513                 return NULL;
       
  4514                 
       
  4515             }
       
  4516             
       
  4517             ERROR;
       
  4518         }
       
  4519         
       
  4520     }/*function_udint_to_uint*/
       
  4521     break;
       
  4522 
       
  4523 /****
       
  4524  *UDINT_TO_ULINT
       
  4525  */
       
  4526     case function_udint_to_ulint :
       
  4527     {
       
  4528         symbol_c *last_type_symbol = NULL;
       
  4529 
       
  4530         {
       
  4531             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4532             symbol_c *IN_param_value = &this->default_variable_name;
       
  4533         
       
  4534             symbol_c *IN_type_symbol = param_data_type;
       
  4535             last_type_symbol = param_data_type;
       
  4536             
       
  4537             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4538             {
       
  4539         
       
  4540                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  4541                 s4o.print("(");
       
  4542                 return_type_symbol->accept(*this);
       
  4543                 s4o.print(")");
       
  4544                 IN_param_value->accept(*this);
       
  4545                 return NULL;
       
  4546                 
       
  4547             }
       
  4548             
       
  4549             ERROR;
       
  4550         }
       
  4551         
       
  4552     }/*function_udint_to_ulint*/
       
  4553     break;
       
  4554 
       
  4555 /****
       
  4556  *UDINT_TO_REAL
       
  4557  */
       
  4558     case function_udint_to_real :
       
  4559     {
       
  4560         symbol_c *last_type_symbol = NULL;
       
  4561 
       
  4562         {
       
  4563             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4564             symbol_c *IN_param_value = &this->default_variable_name;
       
  4565         
       
  4566             symbol_c *IN_type_symbol = param_data_type;
       
  4567             last_type_symbol = param_data_type;
       
  4568             
       
  4569             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4570             {
       
  4571         
       
  4572                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  4573                 s4o.print("(");
       
  4574                 return_type_symbol->accept(*this);
       
  4575                 s4o.print(")");
       
  4576                 IN_param_value->accept(*this);
       
  4577                 return NULL;
       
  4578                 
       
  4579             }
       
  4580             
       
  4581             ERROR;
       
  4582         }
       
  4583         
       
  4584     }/*function_udint_to_real*/
       
  4585     break;
       
  4586 
       
  4587 /****
       
  4588  *UDINT_TO_LREAL
       
  4589  */
       
  4590     case function_udint_to_lreal :
       
  4591     {
       
  4592         symbol_c *last_type_symbol = NULL;
       
  4593 
       
  4594         {
       
  4595             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4596             symbol_c *IN_param_value = &this->default_variable_name;
       
  4597         
       
  4598             symbol_c *IN_type_symbol = param_data_type;
       
  4599             last_type_symbol = param_data_type;
       
  4600             
       
  4601             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4602             {
       
  4603         
       
  4604                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  4605                 s4o.print("(");
       
  4606                 return_type_symbol->accept(*this);
       
  4607                 s4o.print(")");
       
  4608                 IN_param_value->accept(*this);
       
  4609                 return NULL;
       
  4610                 
       
  4611             }
       
  4612             
       
  4613             ERROR;
       
  4614         }
       
  4615         
       
  4616     }/*function_udint_to_lreal*/
       
  4617     break;
       
  4618 
       
  4619 /****
       
  4620  *UDINT_TO_TIME
       
  4621  */
       
  4622     case function_udint_to_time :
       
  4623     {
       
  4624         symbol_c *last_type_symbol = NULL;
       
  4625 
       
  4626         {
       
  4627             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4628             symbol_c *IN_param_value = &this->default_variable_name;
       
  4629         
       
  4630             symbol_c *IN_type_symbol = param_data_type;
       
  4631             last_type_symbol = param_data_type;
       
  4632             
       
  4633             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4634             {
       
  4635         
       
  4636                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  4637                 s4o.print("(");
       
  4638                 return_type_symbol->accept(*this);
       
  4639                 s4o.print(")__int_to_time(");
       
  4640                 IN_param_value->accept(*this);
       
  4641                 s4o.print(")");
       
  4642                 return NULL;
       
  4643                 
       
  4644             }
       
  4645             
       
  4646             ERROR;
       
  4647         }
       
  4648         
       
  4649     }/*function_udint_to_time*/
       
  4650     break;
       
  4651 
       
  4652 /****
       
  4653  *UDINT_TO_DATE
       
  4654  */
       
  4655     case function_udint_to_date :
       
  4656     {
       
  4657         symbol_c *last_type_symbol = NULL;
       
  4658 
       
  4659         {
       
  4660             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4661             symbol_c *IN_param_value = &this->default_variable_name;
       
  4662         
       
  4663             symbol_c *IN_type_symbol = param_data_type;
       
  4664             last_type_symbol = param_data_type;
       
  4665             
       
  4666             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4667             {
       
  4668         
       
  4669                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  4670                 s4o.print("(");
       
  4671                 return_type_symbol->accept(*this);
       
  4672                 s4o.print(")__int_to_time(");
       
  4673                 IN_param_value->accept(*this);
       
  4674                 s4o.print(")");
       
  4675                 return NULL;
       
  4676                 
       
  4677             }
       
  4678             
       
  4679             ERROR;
       
  4680         }
       
  4681         
       
  4682     }/*function_udint_to_date*/
       
  4683     break;
       
  4684 
       
  4685 /****
       
  4686  *UDINT_TO_TOD
       
  4687  */
       
  4688     case function_udint_to_tod :
       
  4689     {
       
  4690         symbol_c *last_type_symbol = NULL;
       
  4691 
       
  4692         {
       
  4693             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4694             symbol_c *IN_param_value = &this->default_variable_name;
       
  4695         
       
  4696             symbol_c *IN_type_symbol = param_data_type;
       
  4697             last_type_symbol = param_data_type;
       
  4698             
       
  4699             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4700             {
       
  4701         
       
  4702                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  4703                 s4o.print("(");
       
  4704                 return_type_symbol->accept(*this);
       
  4705                 s4o.print(")__int_to_time(");
       
  4706                 IN_param_value->accept(*this);
       
  4707                 s4o.print(")");
       
  4708                 return NULL;
       
  4709                 
       
  4710             }
       
  4711             
       
  4712             ERROR;
       
  4713         }
       
  4714         
       
  4715     }/*function_udint_to_tod*/
       
  4716     break;
       
  4717 
       
  4718 /****
       
  4719  *UDINT_TO_DT
       
  4720  */
       
  4721     case function_udint_to_dt :
       
  4722     {
       
  4723         symbol_c *last_type_symbol = NULL;
       
  4724 
       
  4725         {
       
  4726             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4727             symbol_c *IN_param_value = &this->default_variable_name;
       
  4728         
       
  4729             symbol_c *IN_type_symbol = param_data_type;
       
  4730             last_type_symbol = param_data_type;
       
  4731             
       
  4732             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4733             {
       
  4734         
       
  4735                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  4736                 s4o.print("(");
       
  4737                 return_type_symbol->accept(*this);
       
  4738                 s4o.print(")__int_to_time(");
       
  4739                 IN_param_value->accept(*this);
       
  4740                 s4o.print(")");
       
  4741                 return NULL;
       
  4742                 
       
  4743             }
       
  4744             
       
  4745             ERROR;
       
  4746         }
       
  4747         
       
  4748     }/*function_udint_to_dt*/
       
  4749     break;
       
  4750 
       
  4751 /****
       
  4752  *UDINT_TO_STRING
       
  4753  */
       
  4754     case function_udint_to_string :
       
  4755     {
       
  4756         symbol_c *last_type_symbol = NULL;
       
  4757 
       
  4758         {
       
  4759             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4760             symbol_c *IN_param_value = &this->default_variable_name;
       
  4761         
       
  4762             symbol_c *IN_type_symbol = param_data_type;
       
  4763             last_type_symbol = param_data_type;
       
  4764             
       
  4765             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4766             {
       
  4767         
       
  4768                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  4769                 s4o.print("(");
       
  4770                 return_type_symbol->accept(*this);
       
  4771                 s4o.print(")__uint_to_string(");
       
  4772                 IN_param_value->accept(*this);
       
  4773                 s4o.print(")");
       
  4774                 return NULL;
       
  4775                 
       
  4776             }
       
  4777             
       
  4778             ERROR;
       
  4779         }
       
  4780         
       
  4781     }/*function_udint_to_string*/
       
  4782     break;
       
  4783 
       
  4784 /****
       
  4785  *UDINT_TO_BYTE
       
  4786  */
       
  4787     case function_udint_to_byte :
       
  4788     {
       
  4789         symbol_c *last_type_symbol = NULL;
       
  4790 
       
  4791         {
       
  4792             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4793             symbol_c *IN_param_value = &this->default_variable_name;
       
  4794         
       
  4795             symbol_c *IN_type_symbol = param_data_type;
       
  4796             last_type_symbol = param_data_type;
       
  4797             
       
  4798             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4799             {
       
  4800         
       
  4801                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  4802                 s4o.print("(");
       
  4803                 return_type_symbol->accept(*this);
       
  4804                 s4o.print(")");
       
  4805                 IN_param_value->accept(*this);
       
  4806                 return NULL;
       
  4807                 
       
  4808             }
       
  4809             
       
  4810             ERROR;
       
  4811         }
       
  4812         
       
  4813     }/*function_udint_to_byte*/
       
  4814     break;
       
  4815 
       
  4816 /****
       
  4817  *UDINT_TO_WORD
       
  4818  */
       
  4819     case function_udint_to_word :
       
  4820     {
       
  4821         symbol_c *last_type_symbol = NULL;
       
  4822 
       
  4823         {
       
  4824             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4825             symbol_c *IN_param_value = &this->default_variable_name;
       
  4826         
       
  4827             symbol_c *IN_type_symbol = param_data_type;
       
  4828             last_type_symbol = param_data_type;
       
  4829             
       
  4830             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4831             {
       
  4832         
       
  4833                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  4834                 s4o.print("(");
       
  4835                 return_type_symbol->accept(*this);
       
  4836                 s4o.print(")");
       
  4837                 IN_param_value->accept(*this);
       
  4838                 return NULL;
       
  4839                 
       
  4840             }
       
  4841             
       
  4842             ERROR;
       
  4843         }
       
  4844         
       
  4845     }/*function_udint_to_word*/
       
  4846     break;
       
  4847 
       
  4848 /****
       
  4849  *UDINT_TO_DWORD
       
  4850  */
       
  4851     case function_udint_to_dword :
       
  4852     {
       
  4853         symbol_c *last_type_symbol = NULL;
       
  4854 
       
  4855         {
       
  4856             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4857             symbol_c *IN_param_value = &this->default_variable_name;
       
  4858         
       
  4859             symbol_c *IN_type_symbol = param_data_type;
       
  4860             last_type_symbol = param_data_type;
       
  4861             
       
  4862             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4863             {
       
  4864         
       
  4865                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  4866                 s4o.print("(");
       
  4867                 return_type_symbol->accept(*this);
       
  4868                 s4o.print(")");
       
  4869                 IN_param_value->accept(*this);
       
  4870                 return NULL;
       
  4871                 
       
  4872             }
       
  4873             
       
  4874             ERROR;
       
  4875         }
       
  4876         
       
  4877     }/*function_udint_to_dword*/
       
  4878     break;
       
  4879 
       
  4880 /****
       
  4881  *UDINT_TO_LWORD
       
  4882  */
       
  4883     case function_udint_to_lword :
       
  4884     {
       
  4885         symbol_c *last_type_symbol = NULL;
       
  4886 
       
  4887         {
       
  4888             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4889             symbol_c *IN_param_value = &this->default_variable_name;
       
  4890         
       
  4891             symbol_c *IN_type_symbol = param_data_type;
       
  4892             last_type_symbol = param_data_type;
       
  4893             
       
  4894             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4895             {
       
  4896         
       
  4897                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  4898                 s4o.print("(");
       
  4899                 return_type_symbol->accept(*this);
       
  4900                 s4o.print(")");
       
  4901                 IN_param_value->accept(*this);
       
  4902                 return NULL;
       
  4903                 
       
  4904             }
       
  4905             
       
  4906             ERROR;
       
  4907         }
       
  4908         
       
  4909     }/*function_udint_to_lword*/
       
  4910     break;
       
  4911 
       
  4912 /****
       
  4913  *ULINT_TO_BOOL
       
  4914  */
       
  4915     case function_ulint_to_bool :
       
  4916     {
       
  4917         symbol_c *last_type_symbol = NULL;
       
  4918 
       
  4919         {
       
  4920             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4921             symbol_c *IN_param_value = &this->default_variable_name;
       
  4922         
       
  4923             symbol_c *IN_type_symbol = param_data_type;
       
  4924             last_type_symbol = param_data_type;
       
  4925             
       
  4926             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  4927             {
       
  4928         
       
  4929                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  4930                 s4o.print("(");
       
  4931                 return_type_symbol->accept(*this);
       
  4932                 s4o.print(")");
       
  4933                 IN_param_value->accept(*this);
       
  4934                 return NULL;
       
  4935                 
       
  4936             }
       
  4937             
       
  4938             ERROR;
       
  4939         }
       
  4940         
       
  4941     }/*function_ulint_to_bool*/
       
  4942     break;
       
  4943 
       
  4944 /****
       
  4945  *ULINT_TO_SINT
       
  4946  */
       
  4947     case function_ulint_to_sint :
       
  4948     {
       
  4949         symbol_c *last_type_symbol = NULL;
       
  4950 
       
  4951         {
       
  4952             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4953             symbol_c *IN_param_value = &this->default_variable_name;
       
  4954         
       
  4955             symbol_c *IN_type_symbol = param_data_type;
       
  4956             last_type_symbol = param_data_type;
       
  4957             
       
  4958             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  4959             {
       
  4960         
       
  4961                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  4962                 s4o.print("(");
       
  4963                 return_type_symbol->accept(*this);
       
  4964                 s4o.print(")");
       
  4965                 IN_param_value->accept(*this);
       
  4966                 return NULL;
       
  4967                 
       
  4968             }
       
  4969             
       
  4970             ERROR;
       
  4971         }
       
  4972         
       
  4973     }/*function_ulint_to_sint*/
       
  4974     break;
       
  4975 
       
  4976 /****
       
  4977  *ULINT_TO_INT
       
  4978  */
       
  4979     case function_ulint_to_int :
       
  4980     {
       
  4981         symbol_c *last_type_symbol = NULL;
       
  4982 
       
  4983         {
       
  4984             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4985             symbol_c *IN_param_value = &this->default_variable_name;
       
  4986         
       
  4987             symbol_c *IN_type_symbol = param_data_type;
       
  4988             last_type_symbol = param_data_type;
       
  4989             
       
  4990             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  4991             {
       
  4992         
       
  4993                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  4994                 s4o.print("(");
       
  4995                 return_type_symbol->accept(*this);
       
  4996                 s4o.print(")");
       
  4997                 IN_param_value->accept(*this);
       
  4998                 return NULL;
       
  4999                 
       
  5000             }
       
  5001             
       
  5002             ERROR;
       
  5003         }
       
  5004         
       
  5005     }/*function_ulint_to_int*/
       
  5006     break;
       
  5007 
       
  5008 /****
       
  5009  *ULINT_TO_DINT
       
  5010  */
       
  5011     case function_ulint_to_dint :
       
  5012     {
       
  5013         symbol_c *last_type_symbol = NULL;
       
  5014 
       
  5015         {
       
  5016             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5017             symbol_c *IN_param_value = &this->default_variable_name;
       
  5018         
       
  5019             symbol_c *IN_type_symbol = param_data_type;
       
  5020             last_type_symbol = param_data_type;
       
  5021             
       
  5022             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5023             {
       
  5024         
       
  5025                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  5026                 s4o.print("(");
       
  5027                 return_type_symbol->accept(*this);
       
  5028                 s4o.print(")");
       
  5029                 IN_param_value->accept(*this);
       
  5030                 return NULL;
       
  5031                 
       
  5032             }
       
  5033             
       
  5034             ERROR;
       
  5035         }
       
  5036         
       
  5037     }/*function_ulint_to_dint*/
       
  5038     break;
       
  5039 
       
  5040 /****
       
  5041  *ULINT_TO_LINT
       
  5042  */
       
  5043     case function_ulint_to_lint :
       
  5044     {
       
  5045         symbol_c *last_type_symbol = NULL;
       
  5046 
       
  5047         {
       
  5048             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5049             symbol_c *IN_param_value = &this->default_variable_name;
       
  5050         
       
  5051             symbol_c *IN_type_symbol = param_data_type;
       
  5052             last_type_symbol = param_data_type;
       
  5053             
       
  5054             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5055             {
       
  5056         
       
  5057                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  5058                 s4o.print("(");
       
  5059                 return_type_symbol->accept(*this);
       
  5060                 s4o.print(")");
       
  5061                 IN_param_value->accept(*this);
       
  5062                 return NULL;
       
  5063                 
       
  5064             }
       
  5065             
       
  5066             ERROR;
       
  5067         }
       
  5068         
       
  5069     }/*function_ulint_to_lint*/
       
  5070     break;
       
  5071 
       
  5072 /****
       
  5073  *ULINT_TO_USINT
       
  5074  */
       
  5075     case function_ulint_to_usint :
       
  5076     {
       
  5077         symbol_c *last_type_symbol = NULL;
       
  5078 
       
  5079         {
       
  5080             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5081             symbol_c *IN_param_value = &this->default_variable_name;
       
  5082         
       
  5083             symbol_c *IN_type_symbol = param_data_type;
       
  5084             last_type_symbol = param_data_type;
       
  5085             
       
  5086             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5087             {
       
  5088         
       
  5089                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  5090                 s4o.print("(");
       
  5091                 return_type_symbol->accept(*this);
       
  5092                 s4o.print(")");
       
  5093                 IN_param_value->accept(*this);
       
  5094                 return NULL;
       
  5095                 
       
  5096             }
       
  5097             
       
  5098             ERROR;
       
  5099         }
       
  5100         
       
  5101     }/*function_ulint_to_usint*/
       
  5102     break;
       
  5103 
       
  5104 /****
       
  5105  *ULINT_TO_UINT
       
  5106  */
       
  5107     case function_ulint_to_uint :
       
  5108     {
       
  5109         symbol_c *last_type_symbol = NULL;
       
  5110 
       
  5111         {
       
  5112             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5113             symbol_c *IN_param_value = &this->default_variable_name;
       
  5114         
       
  5115             symbol_c *IN_type_symbol = param_data_type;
       
  5116             last_type_symbol = param_data_type;
       
  5117             
       
  5118             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5119             {
       
  5120         
       
  5121                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  5122                 s4o.print("(");
       
  5123                 return_type_symbol->accept(*this);
       
  5124                 s4o.print(")");
       
  5125                 IN_param_value->accept(*this);
       
  5126                 return NULL;
       
  5127                 
       
  5128             }
       
  5129             
       
  5130             ERROR;
       
  5131         }
       
  5132         
       
  5133     }/*function_ulint_to_uint*/
       
  5134     break;
       
  5135 
       
  5136 /****
       
  5137  *ULINT_TO_UDINT
       
  5138  */
       
  5139     case function_ulint_to_udint :
       
  5140     {
       
  5141         symbol_c *last_type_symbol = NULL;
       
  5142 
       
  5143         {
       
  5144             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5145             symbol_c *IN_param_value = &this->default_variable_name;
       
  5146         
       
  5147             symbol_c *IN_type_symbol = param_data_type;
       
  5148             last_type_symbol = param_data_type;
       
  5149             
       
  5150             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5151             {
       
  5152         
       
  5153                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  5154                 s4o.print("(");
       
  5155                 return_type_symbol->accept(*this);
       
  5156                 s4o.print(")");
       
  5157                 IN_param_value->accept(*this);
       
  5158                 return NULL;
       
  5159                 
       
  5160             }
       
  5161             
       
  5162             ERROR;
       
  5163         }
       
  5164         
       
  5165     }/*function_ulint_to_udint*/
       
  5166     break;
       
  5167 
       
  5168 /****
       
  5169  *ULINT_TO_REAL
       
  5170  */
       
  5171     case function_ulint_to_real :
       
  5172     {
       
  5173         symbol_c *last_type_symbol = NULL;
       
  5174 
       
  5175         {
       
  5176             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5177             symbol_c *IN_param_value = &this->default_variable_name;
       
  5178         
       
  5179             symbol_c *IN_type_symbol = param_data_type;
       
  5180             last_type_symbol = param_data_type;
       
  5181             
       
  5182             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5183             {
       
  5184         
       
  5185                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  5186                 s4o.print("(");
       
  5187                 return_type_symbol->accept(*this);
       
  5188                 s4o.print(")");
       
  5189                 IN_param_value->accept(*this);
       
  5190                 return NULL;
       
  5191                 
       
  5192             }
       
  5193             
       
  5194             ERROR;
       
  5195         }
       
  5196         
       
  5197     }/*function_ulint_to_real*/
       
  5198     break;
       
  5199 
       
  5200 /****
       
  5201  *ULINT_TO_LREAL
       
  5202  */
       
  5203     case function_ulint_to_lreal :
       
  5204     {
       
  5205         symbol_c *last_type_symbol = NULL;
       
  5206 
       
  5207         {
       
  5208             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5209             symbol_c *IN_param_value = &this->default_variable_name;
       
  5210         
       
  5211             symbol_c *IN_type_symbol = param_data_type;
       
  5212             last_type_symbol = param_data_type;
       
  5213             
       
  5214             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5215             {
       
  5216         
       
  5217                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  5218                 s4o.print("(");
       
  5219                 return_type_symbol->accept(*this);
       
  5220                 s4o.print(")");
       
  5221                 IN_param_value->accept(*this);
       
  5222                 return NULL;
       
  5223                 
       
  5224             }
       
  5225             
       
  5226             ERROR;
       
  5227         }
       
  5228         
       
  5229     }/*function_ulint_to_lreal*/
       
  5230     break;
       
  5231 
       
  5232 /****
       
  5233  *ULINT_TO_TIME
       
  5234  */
       
  5235     case function_ulint_to_time :
       
  5236     {
       
  5237         symbol_c *last_type_symbol = NULL;
       
  5238 
       
  5239         {
       
  5240             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5241             symbol_c *IN_param_value = &this->default_variable_name;
       
  5242         
       
  5243             symbol_c *IN_type_symbol = param_data_type;
       
  5244             last_type_symbol = param_data_type;
       
  5245             
       
  5246             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5247             {
       
  5248         
       
  5249                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  5250                 s4o.print("(");
       
  5251                 return_type_symbol->accept(*this);
       
  5252                 s4o.print(")__int_to_time(");
       
  5253                 IN_param_value->accept(*this);
       
  5254                 s4o.print(")");
       
  5255                 return NULL;
       
  5256                 
       
  5257             }
       
  5258             
       
  5259             ERROR;
       
  5260         }
       
  5261         
       
  5262     }/*function_ulint_to_time*/
       
  5263     break;
       
  5264 
       
  5265 /****
       
  5266  *ULINT_TO_DATE
       
  5267  */
       
  5268     case function_ulint_to_date :
       
  5269     {
       
  5270         symbol_c *last_type_symbol = NULL;
       
  5271 
       
  5272         {
       
  5273             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5274             symbol_c *IN_param_value = &this->default_variable_name;
       
  5275         
       
  5276             symbol_c *IN_type_symbol = param_data_type;
       
  5277             last_type_symbol = param_data_type;
       
  5278             
       
  5279             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5280             {
       
  5281         
       
  5282                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  5283                 s4o.print("(");
       
  5284                 return_type_symbol->accept(*this);
       
  5285                 s4o.print(")__int_to_time(");
       
  5286                 IN_param_value->accept(*this);
       
  5287                 s4o.print(")");
       
  5288                 return NULL;
       
  5289                 
       
  5290             }
       
  5291             
       
  5292             ERROR;
       
  5293         }
       
  5294         
       
  5295     }/*function_ulint_to_date*/
       
  5296     break;
       
  5297 
       
  5298 /****
       
  5299  *ULINT_TO_TOD
       
  5300  */
       
  5301     case function_ulint_to_tod :
       
  5302     {
       
  5303         symbol_c *last_type_symbol = NULL;
       
  5304 
       
  5305         {
       
  5306             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5307             symbol_c *IN_param_value = &this->default_variable_name;
       
  5308         
       
  5309             symbol_c *IN_type_symbol = param_data_type;
       
  5310             last_type_symbol = param_data_type;
       
  5311             
       
  5312             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5313             {
       
  5314         
       
  5315                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  5316                 s4o.print("(");
       
  5317                 return_type_symbol->accept(*this);
       
  5318                 s4o.print(")__int_to_time(");
       
  5319                 IN_param_value->accept(*this);
       
  5320                 s4o.print(")");
       
  5321                 return NULL;
       
  5322                 
       
  5323             }
       
  5324             
       
  5325             ERROR;
       
  5326         }
       
  5327         
       
  5328     }/*function_ulint_to_tod*/
       
  5329     break;
       
  5330 
       
  5331 /****
       
  5332  *ULINT_TO_DT
       
  5333  */
       
  5334     case function_ulint_to_dt :
       
  5335     {
       
  5336         symbol_c *last_type_symbol = NULL;
       
  5337 
       
  5338         {
       
  5339             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5340             symbol_c *IN_param_value = &this->default_variable_name;
       
  5341         
       
  5342             symbol_c *IN_type_symbol = param_data_type;
       
  5343             last_type_symbol = param_data_type;
       
  5344             
       
  5345             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5346             {
       
  5347         
       
  5348                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  5349                 s4o.print("(");
       
  5350                 return_type_symbol->accept(*this);
       
  5351                 s4o.print(")__int_to_time(");
       
  5352                 IN_param_value->accept(*this);
       
  5353                 s4o.print(")");
       
  5354                 return NULL;
       
  5355                 
       
  5356             }
       
  5357             
       
  5358             ERROR;
       
  5359         }
       
  5360         
       
  5361     }/*function_ulint_to_dt*/
       
  5362     break;
       
  5363 
       
  5364 /****
       
  5365  *ULINT_TO_STRING
       
  5366  */
       
  5367     case function_ulint_to_string :
       
  5368     {
       
  5369         symbol_c *last_type_symbol = NULL;
       
  5370 
       
  5371         {
       
  5372             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5373             symbol_c *IN_param_value = &this->default_variable_name;
       
  5374         
       
  5375             symbol_c *IN_type_symbol = param_data_type;
       
  5376             last_type_symbol = param_data_type;
       
  5377             
       
  5378             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5379             {
       
  5380         
       
  5381                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  5382                 s4o.print("(");
       
  5383                 return_type_symbol->accept(*this);
       
  5384                 s4o.print(")__uint_to_string(");
       
  5385                 IN_param_value->accept(*this);
       
  5386                 s4o.print(")");
       
  5387                 return NULL;
       
  5388                 
       
  5389             }
       
  5390             
       
  5391             ERROR;
       
  5392         }
       
  5393         
       
  5394     }/*function_ulint_to_string*/
       
  5395     break;
       
  5396 
       
  5397 /****
       
  5398  *ULINT_TO_BYTE
       
  5399  */
       
  5400     case function_ulint_to_byte :
       
  5401     {
       
  5402         symbol_c *last_type_symbol = NULL;
       
  5403 
       
  5404         {
       
  5405             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5406             symbol_c *IN_param_value = &this->default_variable_name;
       
  5407         
       
  5408             symbol_c *IN_type_symbol = param_data_type;
       
  5409             last_type_symbol = param_data_type;
       
  5410             
       
  5411             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5412             {
       
  5413         
       
  5414                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  5415                 s4o.print("(");
       
  5416                 return_type_symbol->accept(*this);
       
  5417                 s4o.print(")");
       
  5418                 IN_param_value->accept(*this);
       
  5419                 return NULL;
       
  5420                 
       
  5421             }
       
  5422             
       
  5423             ERROR;
       
  5424         }
       
  5425         
       
  5426     }/*function_ulint_to_byte*/
       
  5427     break;
       
  5428 
       
  5429 /****
       
  5430  *ULINT_TO_WORD
       
  5431  */
       
  5432     case function_ulint_to_word :
       
  5433     {
       
  5434         symbol_c *last_type_symbol = NULL;
       
  5435 
       
  5436         {
       
  5437             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5438             symbol_c *IN_param_value = &this->default_variable_name;
       
  5439         
       
  5440             symbol_c *IN_type_symbol = param_data_type;
       
  5441             last_type_symbol = param_data_type;
       
  5442             
       
  5443             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5444             {
       
  5445         
       
  5446                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  5447                 s4o.print("(");
       
  5448                 return_type_symbol->accept(*this);
       
  5449                 s4o.print(")");
       
  5450                 IN_param_value->accept(*this);
       
  5451                 return NULL;
       
  5452                 
       
  5453             }
       
  5454             
       
  5455             ERROR;
       
  5456         }
       
  5457         
       
  5458     }/*function_ulint_to_word*/
       
  5459     break;
       
  5460 
       
  5461 /****
       
  5462  *ULINT_TO_DWORD
       
  5463  */
       
  5464     case function_ulint_to_dword :
       
  5465     {
       
  5466         symbol_c *last_type_symbol = NULL;
       
  5467 
       
  5468         {
       
  5469             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5470             symbol_c *IN_param_value = &this->default_variable_name;
       
  5471         
       
  5472             symbol_c *IN_type_symbol = param_data_type;
       
  5473             last_type_symbol = param_data_type;
       
  5474             
       
  5475             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5476             {
       
  5477         
       
  5478                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  5479                 s4o.print("(");
       
  5480                 return_type_symbol->accept(*this);
       
  5481                 s4o.print(")");
       
  5482                 IN_param_value->accept(*this);
       
  5483                 return NULL;
       
  5484                 
       
  5485             }
       
  5486             
       
  5487             ERROR;
       
  5488         }
       
  5489         
       
  5490     }/*function_ulint_to_dword*/
       
  5491     break;
       
  5492 
       
  5493 /****
       
  5494  *ULINT_TO_LWORD
       
  5495  */
       
  5496     case function_ulint_to_lword :
       
  5497     {
       
  5498         symbol_c *last_type_symbol = NULL;
       
  5499 
       
  5500         {
       
  5501             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5502             symbol_c *IN_param_value = &this->default_variable_name;
       
  5503         
       
  5504             symbol_c *IN_type_symbol = param_data_type;
       
  5505             last_type_symbol = param_data_type;
       
  5506             
       
  5507             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5508             {
       
  5509         
       
  5510                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  5511                 s4o.print("(");
       
  5512                 return_type_symbol->accept(*this);
       
  5513                 s4o.print(")");
       
  5514                 IN_param_value->accept(*this);
       
  5515                 return NULL;
       
  5516                 
       
  5517             }
       
  5518             
       
  5519             ERROR;
       
  5520         }
       
  5521         
       
  5522     }/*function_ulint_to_lword*/
       
  5523     break;
       
  5524 
       
  5525 /****
       
  5526  *REAL_TO_BOOL
       
  5527  */
       
  5528     case function_real_to_bool :
       
  5529     {
       
  5530         symbol_c *last_type_symbol = NULL;
       
  5531 
       
  5532         {
       
  5533             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5534             symbol_c *IN_param_value = &this->default_variable_name;
       
  5535         
       
  5536             symbol_c *IN_type_symbol = param_data_type;
       
  5537             last_type_symbol = param_data_type;
       
  5538             
       
  5539             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5540             {
       
  5541         
       
  5542                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  5543                 s4o.print("(");
       
  5544                 return_type_symbol->accept(*this);
       
  5545                 s4o.print(")");
       
  5546                 IN_param_value->accept(*this);
       
  5547                 return NULL;
       
  5548                 
       
  5549             }
       
  5550             
       
  5551             ERROR;
       
  5552         }
       
  5553         
       
  5554     }/*function_real_to_bool*/
       
  5555     break;
       
  5556 
       
  5557 /****
       
  5558  *REAL_TO_SINT
       
  5559  */
       
  5560     case function_real_to_sint :
       
  5561     {
       
  5562         symbol_c *last_type_symbol = NULL;
       
  5563 
       
  5564         {
       
  5565             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5566             symbol_c *IN_param_value = &this->default_variable_name;
       
  5567         
       
  5568             symbol_c *IN_type_symbol = param_data_type;
       
  5569             last_type_symbol = param_data_type;
       
  5570             
       
  5571             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5572             {
       
  5573         
       
  5574                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  5575                 s4o.print("(");
       
  5576                 return_type_symbol->accept(*this);
       
  5577                 s4o.print(")");
       
  5578                 IN_param_value->accept(*this);
       
  5579                 return NULL;
       
  5580                 
       
  5581             }
       
  5582             
       
  5583             ERROR;
       
  5584         }
       
  5585         
       
  5586     }/*function_real_to_sint*/
       
  5587     break;
       
  5588 
       
  5589 /****
       
  5590  *REAL_TO_INT
       
  5591  */
       
  5592     case function_real_to_int :
       
  5593     {
       
  5594         symbol_c *last_type_symbol = NULL;
       
  5595 
       
  5596         {
       
  5597             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5598             symbol_c *IN_param_value = &this->default_variable_name;
       
  5599         
       
  5600             symbol_c *IN_type_symbol = param_data_type;
       
  5601             last_type_symbol = param_data_type;
       
  5602             
       
  5603             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5604             {
       
  5605         
       
  5606                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  5607                 s4o.print("(");
       
  5608                 return_type_symbol->accept(*this);
       
  5609                 s4o.print(")");
       
  5610                 IN_param_value->accept(*this);
       
  5611                 return NULL;
       
  5612                 
       
  5613             }
       
  5614             
       
  5615             ERROR;
       
  5616         }
       
  5617         
       
  5618     }/*function_real_to_int*/
       
  5619     break;
       
  5620 
       
  5621 /****
       
  5622  *REAL_TO_DINT
       
  5623  */
       
  5624     case function_real_to_dint :
       
  5625     {
       
  5626         symbol_c *last_type_symbol = NULL;
       
  5627 
       
  5628         {
       
  5629             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5630             symbol_c *IN_param_value = &this->default_variable_name;
       
  5631         
       
  5632             symbol_c *IN_type_symbol = param_data_type;
       
  5633             last_type_symbol = param_data_type;
       
  5634             
       
  5635             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5636             {
       
  5637         
       
  5638                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  5639                 s4o.print("(");
       
  5640                 return_type_symbol->accept(*this);
       
  5641                 s4o.print(")");
       
  5642                 IN_param_value->accept(*this);
       
  5643                 return NULL;
       
  5644                 
       
  5645             }
       
  5646             
       
  5647             ERROR;
       
  5648         }
       
  5649         
       
  5650     }/*function_real_to_dint*/
       
  5651     break;
       
  5652 
       
  5653 /****
       
  5654  *REAL_TO_LINT
       
  5655  */
       
  5656     case function_real_to_lint :
       
  5657     {
       
  5658         symbol_c *last_type_symbol = NULL;
       
  5659 
       
  5660         {
       
  5661             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5662             symbol_c *IN_param_value = &this->default_variable_name;
       
  5663         
       
  5664             symbol_c *IN_type_symbol = param_data_type;
       
  5665             last_type_symbol = param_data_type;
       
  5666             
       
  5667             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5668             {
       
  5669         
       
  5670                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  5671                 s4o.print("(");
       
  5672                 return_type_symbol->accept(*this);
       
  5673                 s4o.print(")");
       
  5674                 IN_param_value->accept(*this);
       
  5675                 return NULL;
       
  5676                 
       
  5677             }
       
  5678             
       
  5679             ERROR;
       
  5680         }
       
  5681         
       
  5682     }/*function_real_to_lint*/
       
  5683     break;
       
  5684 
       
  5685 /****
       
  5686  *REAL_TO_USINT
       
  5687  */
       
  5688     case function_real_to_usint :
       
  5689     {
       
  5690         symbol_c *last_type_symbol = NULL;
       
  5691 
       
  5692         {
       
  5693             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5694             symbol_c *IN_param_value = &this->default_variable_name;
       
  5695         
       
  5696             symbol_c *IN_type_symbol = param_data_type;
       
  5697             last_type_symbol = param_data_type;
       
  5698             
       
  5699             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5700             {
       
  5701         
       
  5702                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  5703                 s4o.print("(");
       
  5704                 return_type_symbol->accept(*this);
       
  5705                 s4o.print(")");
       
  5706                 IN_param_value->accept(*this);
       
  5707                 return NULL;
       
  5708                 
       
  5709             }
       
  5710             
       
  5711             ERROR;
       
  5712         }
       
  5713         
       
  5714     }/*function_real_to_usint*/
       
  5715     break;
       
  5716 
       
  5717 /****
       
  5718  *REAL_TO_UINT
       
  5719  */
       
  5720     case function_real_to_uint :
       
  5721     {
       
  5722         symbol_c *last_type_symbol = NULL;
       
  5723 
       
  5724         {
       
  5725             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5726             symbol_c *IN_param_value = &this->default_variable_name;
       
  5727         
       
  5728             symbol_c *IN_type_symbol = param_data_type;
       
  5729             last_type_symbol = param_data_type;
       
  5730             
       
  5731             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5732             {
       
  5733         
       
  5734                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  5735                 s4o.print("(");
       
  5736                 return_type_symbol->accept(*this);
       
  5737                 s4o.print(")");
       
  5738                 IN_param_value->accept(*this);
       
  5739                 return NULL;
       
  5740                 
       
  5741             }
       
  5742             
       
  5743             ERROR;
       
  5744         }
       
  5745         
       
  5746     }/*function_real_to_uint*/
       
  5747     break;
       
  5748 
       
  5749 /****
       
  5750  *REAL_TO_UDINT
       
  5751  */
       
  5752     case function_real_to_udint :
       
  5753     {
       
  5754         symbol_c *last_type_symbol = NULL;
       
  5755 
       
  5756         {
       
  5757             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5758             symbol_c *IN_param_value = &this->default_variable_name;
       
  5759         
       
  5760             symbol_c *IN_type_symbol = param_data_type;
       
  5761             last_type_symbol = param_data_type;
       
  5762             
       
  5763             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5764             {
       
  5765         
       
  5766                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  5767                 s4o.print("(");
       
  5768                 return_type_symbol->accept(*this);
       
  5769                 s4o.print(")");
       
  5770                 IN_param_value->accept(*this);
       
  5771                 return NULL;
       
  5772                 
       
  5773             }
       
  5774             
       
  5775             ERROR;
       
  5776         }
       
  5777         
       
  5778     }/*function_real_to_udint*/
       
  5779     break;
       
  5780 
       
  5781 /****
       
  5782  *REAL_TO_ULINT
       
  5783  */
       
  5784     case function_real_to_ulint :
       
  5785     {
       
  5786         symbol_c *last_type_symbol = NULL;
       
  5787 
       
  5788         {
       
  5789             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5790             symbol_c *IN_param_value = &this->default_variable_name;
       
  5791         
       
  5792             symbol_c *IN_type_symbol = param_data_type;
       
  5793             last_type_symbol = param_data_type;
       
  5794             
       
  5795             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5796             {
       
  5797         
       
  5798                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  5799                 s4o.print("(");
       
  5800                 return_type_symbol->accept(*this);
       
  5801                 s4o.print(")");
       
  5802                 IN_param_value->accept(*this);
       
  5803                 return NULL;
       
  5804                 
       
  5805             }
       
  5806             
       
  5807             ERROR;
       
  5808         }
       
  5809         
       
  5810     }/*function_real_to_ulint*/
       
  5811     break;
       
  5812 
       
  5813 /****
     9  *REAL_TO_LREAL
  5814  *REAL_TO_LREAL
    10  */
  5815  */
    11     case function_real_to_lreal :
  5816     case function_real_to_lreal :
    12     {
  5817     {
    13         symbol_c *last_type_symbol = NULL;
  5818         symbol_c *last_type_symbol = NULL;
    36         
  5841         
    37     }/*function_real_to_lreal*/
  5842     }/*function_real_to_lreal*/
    38     break;
  5843     break;
    39 
  5844 
    40 /****
  5845 /****
    41  *REAL_TO_SINT
  5846  *REAL_TO_TIME
    42  */
  5847  */
    43     case function_real_to_sint :
  5848     case function_real_to_time :
    44     {
  5849     {
    45         symbol_c *last_type_symbol = NULL;
  5850         symbol_c *last_type_symbol = NULL;
    46 
  5851 
    47         {
  5852         {
    48             /* Get the value from a foo(<param_name> = <param_value>) style call */
  5853             /* Get the value from a foo(<param_name> = <param_value>) style call */
    52             last_type_symbol = param_data_type;
  5857             last_type_symbol = param_data_type;
    53             
  5858             
    54             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  5859             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
    55             {
  5860             {
    56         
  5861         
       
  5862                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  5863                 s4o.print("(");
       
  5864                 return_type_symbol->accept(*this);
       
  5865                 s4o.print(")__real_to_time(");
       
  5866                 IN_param_value->accept(*this);
       
  5867                 s4o.print(")");
       
  5868                 return NULL;
       
  5869                 
       
  5870             }
       
  5871             
       
  5872             ERROR;
       
  5873         }
       
  5874         
       
  5875     }/*function_real_to_time*/
       
  5876     break;
       
  5877 
       
  5878 /****
       
  5879  *REAL_TO_DATE
       
  5880  */
       
  5881     case function_real_to_date :
       
  5882     {
       
  5883         symbol_c *last_type_symbol = NULL;
       
  5884 
       
  5885         {
       
  5886             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5887             symbol_c *IN_param_value = &this->default_variable_name;
       
  5888         
       
  5889             symbol_c *IN_type_symbol = param_data_type;
       
  5890             last_type_symbol = param_data_type;
       
  5891             
       
  5892             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5893             {
       
  5894         
       
  5895                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  5896                 s4o.print("(");
       
  5897                 return_type_symbol->accept(*this);
       
  5898                 s4o.print(")__real_to_time(");
       
  5899                 IN_param_value->accept(*this);
       
  5900                 s4o.print(")");
       
  5901                 return NULL;
       
  5902                 
       
  5903             }
       
  5904             
       
  5905             ERROR;
       
  5906         }
       
  5907         
       
  5908     }/*function_real_to_date*/
       
  5909     break;
       
  5910 
       
  5911 /****
       
  5912  *REAL_TO_TOD
       
  5913  */
       
  5914     case function_real_to_tod :
       
  5915     {
       
  5916         symbol_c *last_type_symbol = NULL;
       
  5917 
       
  5918         {
       
  5919             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5920             symbol_c *IN_param_value = &this->default_variable_name;
       
  5921         
       
  5922             symbol_c *IN_type_symbol = param_data_type;
       
  5923             last_type_symbol = param_data_type;
       
  5924             
       
  5925             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5926             {
       
  5927         
       
  5928                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  5929                 s4o.print("(");
       
  5930                 return_type_symbol->accept(*this);
       
  5931                 s4o.print(")__real_to_time(");
       
  5932                 IN_param_value->accept(*this);
       
  5933                 s4o.print(")");
       
  5934                 return NULL;
       
  5935                 
       
  5936             }
       
  5937             
       
  5938             ERROR;
       
  5939         }
       
  5940         
       
  5941     }/*function_real_to_tod*/
       
  5942     break;
       
  5943 
       
  5944 /****
       
  5945  *REAL_TO_DT
       
  5946  */
       
  5947     case function_real_to_dt :
       
  5948     {
       
  5949         symbol_c *last_type_symbol = NULL;
       
  5950 
       
  5951         {
       
  5952             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5953             symbol_c *IN_param_value = &this->default_variable_name;
       
  5954         
       
  5955             symbol_c *IN_type_symbol = param_data_type;
       
  5956             last_type_symbol = param_data_type;
       
  5957             
       
  5958             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5959             {
       
  5960         
       
  5961                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  5962                 s4o.print("(");
       
  5963                 return_type_symbol->accept(*this);
       
  5964                 s4o.print(")__real_to_time(");
       
  5965                 IN_param_value->accept(*this);
       
  5966                 s4o.print(")");
       
  5967                 return NULL;
       
  5968                 
       
  5969             }
       
  5970             
       
  5971             ERROR;
       
  5972         }
       
  5973         
       
  5974     }/*function_real_to_dt*/
       
  5975     break;
       
  5976 
       
  5977 /****
       
  5978  *REAL_TO_STRING
       
  5979  */
       
  5980     case function_real_to_string :
       
  5981     {
       
  5982         symbol_c *last_type_symbol = NULL;
       
  5983 
       
  5984         {
       
  5985             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5986             symbol_c *IN_param_value = &this->default_variable_name;
       
  5987         
       
  5988             symbol_c *IN_type_symbol = param_data_type;
       
  5989             last_type_symbol = param_data_type;
       
  5990             
       
  5991             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  5992             {
       
  5993         
       
  5994                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  5995                 s4o.print("(");
       
  5996                 return_type_symbol->accept(*this);
       
  5997                 s4o.print(")__real_to_string(");
       
  5998                 IN_param_value->accept(*this);
       
  5999                 s4o.print(")");
       
  6000                 return NULL;
       
  6001                 
       
  6002             }
       
  6003             
       
  6004             ERROR;
       
  6005         }
       
  6006         
       
  6007     }/*function_real_to_string*/
       
  6008     break;
       
  6009 
       
  6010 /****
       
  6011  *REAL_TO_BYTE
       
  6012  */
       
  6013     case function_real_to_byte :
       
  6014     {
       
  6015         symbol_c *last_type_symbol = NULL;
       
  6016 
       
  6017         {
       
  6018             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6019             symbol_c *IN_param_value = &this->default_variable_name;
       
  6020         
       
  6021             symbol_c *IN_type_symbol = param_data_type;
       
  6022             last_type_symbol = param_data_type;
       
  6023             
       
  6024             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  6025             {
       
  6026         
       
  6027                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  6028                 s4o.print("(");
       
  6029                 return_type_symbol->accept(*this);
       
  6030                 s4o.print(")");
       
  6031                 IN_param_value->accept(*this);
       
  6032                 return NULL;
       
  6033                 
       
  6034             }
       
  6035             
       
  6036             ERROR;
       
  6037         }
       
  6038         
       
  6039     }/*function_real_to_byte*/
       
  6040     break;
       
  6041 
       
  6042 /****
       
  6043  *REAL_TO_WORD
       
  6044  */
       
  6045     case function_real_to_word :
       
  6046     {
       
  6047         symbol_c *last_type_symbol = NULL;
       
  6048 
       
  6049         {
       
  6050             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6051             symbol_c *IN_param_value = &this->default_variable_name;
       
  6052         
       
  6053             symbol_c *IN_type_symbol = param_data_type;
       
  6054             last_type_symbol = param_data_type;
       
  6055             
       
  6056             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  6057             {
       
  6058         
       
  6059                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  6060                 s4o.print("(");
       
  6061                 return_type_symbol->accept(*this);
       
  6062                 s4o.print(")");
       
  6063                 IN_param_value->accept(*this);
       
  6064                 return NULL;
       
  6065                 
       
  6066             }
       
  6067             
       
  6068             ERROR;
       
  6069         }
       
  6070         
       
  6071     }/*function_real_to_word*/
       
  6072     break;
       
  6073 
       
  6074 /****
       
  6075  *REAL_TO_DWORD
       
  6076  */
       
  6077     case function_real_to_dword :
       
  6078     {
       
  6079         symbol_c *last_type_symbol = NULL;
       
  6080 
       
  6081         {
       
  6082             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6083             symbol_c *IN_param_value = &this->default_variable_name;
       
  6084         
       
  6085             symbol_c *IN_type_symbol = param_data_type;
       
  6086             last_type_symbol = param_data_type;
       
  6087             
       
  6088             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  6089             {
       
  6090         
       
  6091                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  6092                 s4o.print("(");
       
  6093                 return_type_symbol->accept(*this);
       
  6094                 s4o.print(")");
       
  6095                 IN_param_value->accept(*this);
       
  6096                 return NULL;
       
  6097                 
       
  6098             }
       
  6099             
       
  6100             ERROR;
       
  6101         }
       
  6102         
       
  6103     }/*function_real_to_dword*/
       
  6104     break;
       
  6105 
       
  6106 /****
       
  6107  *REAL_TO_LWORD
       
  6108  */
       
  6109     case function_real_to_lword :
       
  6110     {
       
  6111         symbol_c *last_type_symbol = NULL;
       
  6112 
       
  6113         {
       
  6114             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6115             symbol_c *IN_param_value = &this->default_variable_name;
       
  6116         
       
  6117             symbol_c *IN_type_symbol = param_data_type;
       
  6118             last_type_symbol = param_data_type;
       
  6119             
       
  6120             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
       
  6121             {
       
  6122         
       
  6123                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  6124                 s4o.print("(");
       
  6125                 return_type_symbol->accept(*this);
       
  6126                 s4o.print(")");
       
  6127                 IN_param_value->accept(*this);
       
  6128                 return NULL;
       
  6129                 
       
  6130             }
       
  6131             
       
  6132             ERROR;
       
  6133         }
       
  6134         
       
  6135     }/*function_real_to_lword*/
       
  6136     break;
       
  6137 
       
  6138 /****
       
  6139  *LREAL_TO_BOOL
       
  6140  */
       
  6141     case function_lreal_to_bool :
       
  6142     {
       
  6143         symbol_c *last_type_symbol = NULL;
       
  6144 
       
  6145         {
       
  6146             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6147             symbol_c *IN_param_value = &this->default_variable_name;
       
  6148         
       
  6149             symbol_c *IN_type_symbol = param_data_type;
       
  6150             last_type_symbol = param_data_type;
       
  6151             
       
  6152             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6153             {
       
  6154         
       
  6155                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  6156                 s4o.print("(");
       
  6157                 return_type_symbol->accept(*this);
       
  6158                 s4o.print(")");
       
  6159                 IN_param_value->accept(*this);
       
  6160                 return NULL;
       
  6161                 
       
  6162             }
       
  6163             
       
  6164             ERROR;
       
  6165         }
       
  6166         
       
  6167     }/*function_lreal_to_bool*/
       
  6168     break;
       
  6169 
       
  6170 /****
       
  6171  *LREAL_TO_SINT
       
  6172  */
       
  6173     case function_lreal_to_sint :
       
  6174     {
       
  6175         symbol_c *last_type_symbol = NULL;
       
  6176 
       
  6177         {
       
  6178             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6179             symbol_c *IN_param_value = &this->default_variable_name;
       
  6180         
       
  6181             symbol_c *IN_type_symbol = param_data_type;
       
  6182             last_type_symbol = param_data_type;
       
  6183             
       
  6184             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6185             {
       
  6186         
    57                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
  6187                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
    58                 s4o.print("(");
  6188                 s4o.print("(");
    59                 return_type_symbol->accept(*this);
  6189                 return_type_symbol->accept(*this);
    60                 s4o.print(")");
  6190                 s4o.print(")");
    61                 IN_param_value->accept(*this);
  6191                 IN_param_value->accept(*this);
    64             }
  6194             }
    65             
  6195             
    66             ERROR;
  6196             ERROR;
    67         }
  6197         }
    68         
  6198         
    69     }/*function_real_to_sint*/
  6199     }/*function_lreal_to_sint*/
    70     break;
  6200     break;
    71 
  6201 
    72 /****
  6202 /****
    73  *REAL_TO_INT
  6203  *LREAL_TO_INT
    74  */
  6204  */
    75     case function_real_to_int :
  6205     case function_lreal_to_int :
    76     {
  6206     {
    77         symbol_c *last_type_symbol = NULL;
  6207         symbol_c *last_type_symbol = NULL;
    78 
  6208 
    79         {
  6209         {
    80             /* Get the value from a foo(<param_name> = <param_value>) style call */
  6210             /* Get the value from a foo(<param_name> = <param_value>) style call */
    81             symbol_c *IN_param_value = &this->default_variable_name;
  6211             symbol_c *IN_param_value = &this->default_variable_name;
    82         
  6212         
    83             symbol_c *IN_type_symbol = param_data_type;
  6213             symbol_c *IN_type_symbol = param_data_type;
    84             last_type_symbol = param_data_type;
  6214             last_type_symbol = param_data_type;
    85             
  6215             
    86             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  6216             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
    87             {
  6217             {
    88         
  6218         
    89                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
  6219                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
    90                 s4o.print("(");
  6220                 s4o.print("(");
    91                 return_type_symbol->accept(*this);
  6221                 return_type_symbol->accept(*this);
    96             }
  6226             }
    97             
  6227             
    98             ERROR;
  6228             ERROR;
    99         }
  6229         }
   100         
  6230         
   101     }/*function_real_to_int*/
  6231     }/*function_lreal_to_int*/
   102     break;
  6232     break;
   103 
  6233 
   104 /****
  6234 /****
   105  *REAL_TO_DINT
  6235  *LREAL_TO_DINT
   106  */
  6236  */
   107     case function_real_to_dint :
  6237     case function_lreal_to_dint :
   108     {
  6238     {
   109         symbol_c *last_type_symbol = NULL;
  6239         symbol_c *last_type_symbol = NULL;
   110 
  6240 
   111         {
  6241         {
   112             /* Get the value from a foo(<param_name> = <param_value>) style call */
  6242             /* Get the value from a foo(<param_name> = <param_value>) style call */
   113             symbol_c *IN_param_value = &this->default_variable_name;
  6243             symbol_c *IN_param_value = &this->default_variable_name;
   114         
  6244         
   115             symbol_c *IN_type_symbol = param_data_type;
  6245             symbol_c *IN_type_symbol = param_data_type;
   116             last_type_symbol = param_data_type;
  6246             last_type_symbol = param_data_type;
   117             
  6247             
   118             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  6248             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
   119             {
  6249             {
   120         
  6250         
   121                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
  6251                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
   122                 s4o.print("(");
  6252                 s4o.print("(");
   123                 return_type_symbol->accept(*this);
  6253                 return_type_symbol->accept(*this);
   128             }
  6258             }
   129             
  6259             
   130             ERROR;
  6260             ERROR;
   131         }
  6261         }
   132         
  6262         
   133     }/*function_real_to_dint*/
  6263     }/*function_lreal_to_dint*/
   134     break;
  6264     break;
   135 
  6265 
   136 /****
  6266 /****
   137  *REAL_TO_LINT
  6267  *LREAL_TO_LINT
   138  */
  6268  */
   139     case function_real_to_lint :
  6269     case function_lreal_to_lint :
   140     {
  6270     {
   141         symbol_c *last_type_symbol = NULL;
  6271         symbol_c *last_type_symbol = NULL;
   142 
  6272 
   143         {
  6273         {
   144             /* Get the value from a foo(<param_name> = <param_value>) style call */
  6274             /* Get the value from a foo(<param_name> = <param_value>) style call */
   145             symbol_c *IN_param_value = &this->default_variable_name;
  6275             symbol_c *IN_param_value = &this->default_variable_name;
   146         
  6276         
   147             symbol_c *IN_type_symbol = param_data_type;
  6277             symbol_c *IN_type_symbol = param_data_type;
   148             last_type_symbol = param_data_type;
  6278             last_type_symbol = param_data_type;
   149             
  6279             
   150             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  6280             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
   151             {
  6281             {
   152         
  6282         
   153                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
  6283                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
   154                 s4o.print("(");
  6284                 s4o.print("(");
   155                 return_type_symbol->accept(*this);
  6285                 return_type_symbol->accept(*this);
   160             }
  6290             }
   161             
  6291             
   162             ERROR;
  6292             ERROR;
   163         }
  6293         }
   164         
  6294         
   165     }/*function_real_to_lint*/
  6295     }/*function_lreal_to_lint*/
   166     break;
  6296     break;
   167 
  6297 
   168 /****
  6298 /****
   169  *REAL_TO_USINT
  6299  *LREAL_TO_USINT
   170  */
  6300  */
   171     case function_real_to_usint :
  6301     case function_lreal_to_usint :
   172     {
  6302     {
   173         symbol_c *last_type_symbol = NULL;
  6303         symbol_c *last_type_symbol = NULL;
   174 
  6304 
   175         {
  6305         {
   176             /* Get the value from a foo(<param_name> = <param_value>) style call */
  6306             /* Get the value from a foo(<param_name> = <param_value>) style call */
   177             symbol_c *IN_param_value = &this->default_variable_name;
  6307             symbol_c *IN_param_value = &this->default_variable_name;
   178         
  6308         
   179             symbol_c *IN_type_symbol = param_data_type;
  6309             symbol_c *IN_type_symbol = param_data_type;
   180             last_type_symbol = param_data_type;
  6310             last_type_symbol = param_data_type;
   181             
  6311             
   182             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  6312             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
   183             {
  6313             {
   184         
  6314         
   185                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
  6315                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
   186                 s4o.print("(");
  6316                 s4o.print("(");
   187                 return_type_symbol->accept(*this);
  6317                 return_type_symbol->accept(*this);
   192             }
  6322             }
   193             
  6323             
   194             ERROR;
  6324             ERROR;
   195         }
  6325         }
   196         
  6326         
   197     }/*function_real_to_usint*/
  6327     }/*function_lreal_to_usint*/
   198     break;
  6328     break;
   199 
  6329 
   200 /****
  6330 /****
   201  *REAL_TO_UINT
  6331  *LREAL_TO_UINT
   202  */
  6332  */
   203     case function_real_to_uint :
  6333     case function_lreal_to_uint :
   204     {
  6334     {
   205         symbol_c *last_type_symbol = NULL;
  6335         symbol_c *last_type_symbol = NULL;
   206 
  6336 
   207         {
  6337         {
   208             /* Get the value from a foo(<param_name> = <param_value>) style call */
  6338             /* Get the value from a foo(<param_name> = <param_value>) style call */
   209             symbol_c *IN_param_value = &this->default_variable_name;
  6339             symbol_c *IN_param_value = &this->default_variable_name;
   210         
  6340         
   211             symbol_c *IN_type_symbol = param_data_type;
  6341             symbol_c *IN_type_symbol = param_data_type;
   212             last_type_symbol = param_data_type;
  6342             last_type_symbol = param_data_type;
   213             
  6343             
   214             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  6344             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
   215             {
  6345             {
   216         
  6346         
   217                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
  6347                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
   218                 s4o.print("(");
  6348                 s4o.print("(");
   219                 return_type_symbol->accept(*this);
  6349                 return_type_symbol->accept(*this);
   224             }
  6354             }
   225             
  6355             
   226             ERROR;
  6356             ERROR;
   227         }
  6357         }
   228         
  6358         
   229     }/*function_real_to_uint*/
  6359     }/*function_lreal_to_uint*/
   230     break;
  6360     break;
   231 
  6361 
   232 /****
  6362 /****
   233  *REAL_TO_UDINT
  6363  *LREAL_TO_UDINT
   234  */
  6364  */
   235     case function_real_to_udint :
  6365     case function_lreal_to_udint :
   236     {
  6366     {
   237         symbol_c *last_type_symbol = NULL;
  6367         symbol_c *last_type_symbol = NULL;
   238 
  6368 
   239         {
  6369         {
   240             /* Get the value from a foo(<param_name> = <param_value>) style call */
  6370             /* Get the value from a foo(<param_name> = <param_value>) style call */
   241             symbol_c *IN_param_value = &this->default_variable_name;
  6371             symbol_c *IN_param_value = &this->default_variable_name;
   242         
  6372         
   243             symbol_c *IN_type_symbol = param_data_type;
  6373             symbol_c *IN_type_symbol = param_data_type;
   244             last_type_symbol = param_data_type;
  6374             last_type_symbol = param_data_type;
   245             
  6375             
   246             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  6376             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
   247             {
  6377             {
   248         
  6378         
   249                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
  6379                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
   250                 s4o.print("(");
  6380                 s4o.print("(");
   251                 return_type_symbol->accept(*this);
  6381                 return_type_symbol->accept(*this);
   256             }
  6386             }
   257             
  6387             
   258             ERROR;
  6388             ERROR;
   259         }
  6389         }
   260         
  6390         
   261     }/*function_real_to_udint*/
  6391     }/*function_lreal_to_udint*/
   262     break;
  6392     break;
   263 
  6393 
   264 /****
  6394 /****
   265  *REAL_TO_ULINT
  6395  *LREAL_TO_ULINT
   266  */
  6396  */
   267     case function_real_to_ulint :
  6397     case function_lreal_to_ulint :
   268     {
  6398     {
   269         symbol_c *last_type_symbol = NULL;
  6399         symbol_c *last_type_symbol = NULL;
   270 
  6400 
   271         {
  6401         {
   272             /* Get the value from a foo(<param_name> = <param_value>) style call */
  6402             /* Get the value from a foo(<param_name> = <param_value>) style call */
   273             symbol_c *IN_param_value = &this->default_variable_name;
  6403             symbol_c *IN_param_value = &this->default_variable_name;
   274         
  6404         
   275             symbol_c *IN_type_symbol = param_data_type;
  6405             symbol_c *IN_type_symbol = param_data_type;
   276             last_type_symbol = param_data_type;
  6406             last_type_symbol = param_data_type;
   277             
  6407             
   278             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  6408             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
   279             {
  6409             {
   280         
  6410         
   281                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
  6411                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
   282                 s4o.print("(");
  6412                 s4o.print("(");
   283                 return_type_symbol->accept(*this);
  6413                 return_type_symbol->accept(*this);
   288             }
  6418             }
   289             
  6419             
   290             ERROR;
  6420             ERROR;
   291         }
  6421         }
   292         
  6422         
   293     }/*function_real_to_ulint*/
  6423     }/*function_lreal_to_ulint*/
   294     break;
  6424     break;
   295 
  6425 
   296 /****
  6426 /****
   297  *REAL_TO_TIME
  6427  *LREAL_TO_REAL
   298  */
  6428  */
   299     case function_real_to_time :
  6429     case function_lreal_to_real :
   300     {
  6430     {
   301         symbol_c *last_type_symbol = NULL;
  6431         symbol_c *last_type_symbol = NULL;
   302 
  6432 
   303         {
  6433         {
   304             /* Get the value from a foo(<param_name> = <param_value>) style call */
  6434             /* Get the value from a foo(<param_name> = <param_value>) style call */
   305             symbol_c *IN_param_value = &this->default_variable_name;
  6435             symbol_c *IN_param_value = &this->default_variable_name;
   306         
  6436         
   307             symbol_c *IN_type_symbol = param_data_type;
  6437             symbol_c *IN_type_symbol = param_data_type;
   308             last_type_symbol = param_data_type;
  6438             last_type_symbol = param_data_type;
   309             
  6439             
   310             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  6440             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6441             {
       
  6442         
       
  6443                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  6444                 s4o.print("(");
       
  6445                 return_type_symbol->accept(*this);
       
  6446                 s4o.print(")");
       
  6447                 IN_param_value->accept(*this);
       
  6448                 return NULL;
       
  6449                 
       
  6450             }
       
  6451             
       
  6452             ERROR;
       
  6453         }
       
  6454         
       
  6455     }/*function_lreal_to_real*/
       
  6456     break;
       
  6457 
       
  6458 /****
       
  6459  *LREAL_TO_TIME
       
  6460  */
       
  6461     case function_lreal_to_time :
       
  6462     {
       
  6463         symbol_c *last_type_symbol = NULL;
       
  6464 
       
  6465         {
       
  6466             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6467             symbol_c *IN_param_value = &this->default_variable_name;
       
  6468         
       
  6469             symbol_c *IN_type_symbol = param_data_type;
       
  6470             last_type_symbol = param_data_type;
       
  6471             
       
  6472             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
   311             {
  6473             {
   312         
  6474         
   313                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
  6475                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
   314                 s4o.print("(");
  6476                 s4o.print("(");
   315                 return_type_symbol->accept(*this);
  6477                 return_type_symbol->accept(*this);
   321             }
  6483             }
   322             
  6484             
   323             ERROR;
  6485             ERROR;
   324         }
  6486         }
   325         
  6487         
   326     }/*function_real_to_time*/
  6488     }/*function_lreal_to_time*/
   327     break;
  6489     break;
   328 
  6490 
   329 /****
  6491 /****
   330  *REAL_TO_BOOL
  6492  *LREAL_TO_DATE
   331  */
  6493  */
   332     case function_real_to_bool :
  6494     case function_lreal_to_date :
   333     {
  6495     {
   334         symbol_c *last_type_symbol = NULL;
  6496         symbol_c *last_type_symbol = NULL;
   335 
  6497 
   336         {
  6498         {
   337             /* Get the value from a foo(<param_name> = <param_value>) style call */
  6499             /* Get the value from a foo(<param_name> = <param_value>) style call */
   338             symbol_c *IN_param_value = &this->default_variable_name;
  6500             symbol_c *IN_param_value = &this->default_variable_name;
   339         
  6501         
   340             symbol_c *IN_type_symbol = param_data_type;
  6502             symbol_c *IN_type_symbol = param_data_type;
   341             last_type_symbol = param_data_type;
  6503             last_type_symbol = param_data_type;
   342             
  6504             
   343             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  6505             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6506             {
       
  6507         
       
  6508                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  6509                 s4o.print("(");
       
  6510                 return_type_symbol->accept(*this);
       
  6511                 s4o.print(")__real_to_time(");
       
  6512                 IN_param_value->accept(*this);
       
  6513                 s4o.print(")");
       
  6514                 return NULL;
       
  6515                 
       
  6516             }
       
  6517             
       
  6518             ERROR;
       
  6519         }
       
  6520         
       
  6521     }/*function_lreal_to_date*/
       
  6522     break;
       
  6523 
       
  6524 /****
       
  6525  *LREAL_TO_TOD
       
  6526  */
       
  6527     case function_lreal_to_tod :
       
  6528     {
       
  6529         symbol_c *last_type_symbol = NULL;
       
  6530 
       
  6531         {
       
  6532             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6533             symbol_c *IN_param_value = &this->default_variable_name;
       
  6534         
       
  6535             symbol_c *IN_type_symbol = param_data_type;
       
  6536             last_type_symbol = param_data_type;
       
  6537             
       
  6538             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6539             {
       
  6540         
       
  6541                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  6542                 s4o.print("(");
       
  6543                 return_type_symbol->accept(*this);
       
  6544                 s4o.print(")__real_to_time(");
       
  6545                 IN_param_value->accept(*this);
       
  6546                 s4o.print(")");
       
  6547                 return NULL;
       
  6548                 
       
  6549             }
       
  6550             
       
  6551             ERROR;
       
  6552         }
       
  6553         
       
  6554     }/*function_lreal_to_tod*/
       
  6555     break;
       
  6556 
       
  6557 /****
       
  6558  *LREAL_TO_DT
       
  6559  */
       
  6560     case function_lreal_to_dt :
       
  6561     {
       
  6562         symbol_c *last_type_symbol = NULL;
       
  6563 
       
  6564         {
       
  6565             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6566             symbol_c *IN_param_value = &this->default_variable_name;
       
  6567         
       
  6568             symbol_c *IN_type_symbol = param_data_type;
       
  6569             last_type_symbol = param_data_type;
       
  6570             
       
  6571             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6572             {
       
  6573         
       
  6574                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  6575                 s4o.print("(");
       
  6576                 return_type_symbol->accept(*this);
       
  6577                 s4o.print(")__real_to_time(");
       
  6578                 IN_param_value->accept(*this);
       
  6579                 s4o.print(")");
       
  6580                 return NULL;
       
  6581                 
       
  6582             }
       
  6583             
       
  6584             ERROR;
       
  6585         }
       
  6586         
       
  6587     }/*function_lreal_to_dt*/
       
  6588     break;
       
  6589 
       
  6590 /****
       
  6591  *LREAL_TO_STRING
       
  6592  */
       
  6593     case function_lreal_to_string :
       
  6594     {
       
  6595         symbol_c *last_type_symbol = NULL;
       
  6596 
       
  6597         {
       
  6598             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6599             symbol_c *IN_param_value = &this->default_variable_name;
       
  6600         
       
  6601             symbol_c *IN_type_symbol = param_data_type;
       
  6602             last_type_symbol = param_data_type;
       
  6603             
       
  6604             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6605             {
       
  6606         
       
  6607                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  6608                 s4o.print("(");
       
  6609                 return_type_symbol->accept(*this);
       
  6610                 s4o.print(")__real_to_string(");
       
  6611                 IN_param_value->accept(*this);
       
  6612                 s4o.print(")");
       
  6613                 return NULL;
       
  6614                 
       
  6615             }
       
  6616             
       
  6617             ERROR;
       
  6618         }
       
  6619         
       
  6620     }/*function_lreal_to_string*/
       
  6621     break;
       
  6622 
       
  6623 /****
       
  6624  *LREAL_TO_BYTE
       
  6625  */
       
  6626     case function_lreal_to_byte :
       
  6627     {
       
  6628         symbol_c *last_type_symbol = NULL;
       
  6629 
       
  6630         {
       
  6631             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6632             symbol_c *IN_param_value = &this->default_variable_name;
       
  6633         
       
  6634             symbol_c *IN_type_symbol = param_data_type;
       
  6635             last_type_symbol = param_data_type;
       
  6636             
       
  6637             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6638             {
       
  6639         
       
  6640                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  6641                 s4o.print("(");
       
  6642                 return_type_symbol->accept(*this);
       
  6643                 s4o.print(")");
       
  6644                 IN_param_value->accept(*this);
       
  6645                 return NULL;
       
  6646                 
       
  6647             }
       
  6648             
       
  6649             ERROR;
       
  6650         }
       
  6651         
       
  6652     }/*function_lreal_to_byte*/
       
  6653     break;
       
  6654 
       
  6655 /****
       
  6656  *LREAL_TO_WORD
       
  6657  */
       
  6658     case function_lreal_to_word :
       
  6659     {
       
  6660         symbol_c *last_type_symbol = NULL;
       
  6661 
       
  6662         {
       
  6663             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6664             symbol_c *IN_param_value = &this->default_variable_name;
       
  6665         
       
  6666             symbol_c *IN_type_symbol = param_data_type;
       
  6667             last_type_symbol = param_data_type;
       
  6668             
       
  6669             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6670             {
       
  6671         
       
  6672                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  6673                 s4o.print("(");
       
  6674                 return_type_symbol->accept(*this);
       
  6675                 s4o.print(")");
       
  6676                 IN_param_value->accept(*this);
       
  6677                 return NULL;
       
  6678                 
       
  6679             }
       
  6680             
       
  6681             ERROR;
       
  6682         }
       
  6683         
       
  6684     }/*function_lreal_to_word*/
       
  6685     break;
       
  6686 
       
  6687 /****
       
  6688  *LREAL_TO_DWORD
       
  6689  */
       
  6690     case function_lreal_to_dword :
       
  6691     {
       
  6692         symbol_c *last_type_symbol = NULL;
       
  6693 
       
  6694         {
       
  6695             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6696             symbol_c *IN_param_value = &this->default_variable_name;
       
  6697         
       
  6698             symbol_c *IN_type_symbol = param_data_type;
       
  6699             last_type_symbol = param_data_type;
       
  6700             
       
  6701             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6702             {
       
  6703         
       
  6704                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  6705                 s4o.print("(");
       
  6706                 return_type_symbol->accept(*this);
       
  6707                 s4o.print(")");
       
  6708                 IN_param_value->accept(*this);
       
  6709                 return NULL;
       
  6710                 
       
  6711             }
       
  6712             
       
  6713             ERROR;
       
  6714         }
       
  6715         
       
  6716     }/*function_lreal_to_dword*/
       
  6717     break;
       
  6718 
       
  6719 /****
       
  6720  *LREAL_TO_LWORD
       
  6721  */
       
  6722     case function_lreal_to_lword :
       
  6723     {
       
  6724         symbol_c *last_type_symbol = NULL;
       
  6725 
       
  6726         {
       
  6727             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6728             symbol_c *IN_param_value = &this->default_variable_name;
       
  6729         
       
  6730             symbol_c *IN_type_symbol = param_data_type;
       
  6731             last_type_symbol = param_data_type;
       
  6732             
       
  6733             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  6734             {
       
  6735         
       
  6736                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  6737                 s4o.print("(");
       
  6738                 return_type_symbol->accept(*this);
       
  6739                 s4o.print(")");
       
  6740                 IN_param_value->accept(*this);
       
  6741                 return NULL;
       
  6742                 
       
  6743             }
       
  6744             
       
  6745             ERROR;
       
  6746         }
       
  6747         
       
  6748     }/*function_lreal_to_lword*/
       
  6749     break;
       
  6750 
       
  6751 /****
       
  6752  *TIME_TO_BOOL
       
  6753  */
       
  6754     case function_time_to_bool :
       
  6755     {
       
  6756         symbol_c *last_type_symbol = NULL;
       
  6757 
       
  6758         {
       
  6759             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6760             symbol_c *IN_param_value = &this->default_variable_name;
       
  6761         
       
  6762             symbol_c *IN_type_symbol = param_data_type;
       
  6763             last_type_symbol = param_data_type;
       
  6764             
       
  6765             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
   344             {
  6766             {
   345         
  6767         
   346                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
  6768                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
   347                 s4o.print("(");
  6769                 s4o.print("(");
   348                 return_type_symbol->accept(*this);
  6770                 return_type_symbol->accept(*this);
   349                 s4o.print(")");
  6771                 s4o.print(")__time_to_int(");
   350                 IN_param_value->accept(*this);
  6772                 IN_param_value->accept(*this);
   351                 return NULL;
  6773                 s4o.print(")");
   352                 
  6774                 return NULL;
   353             }
  6775                 
   354             
  6776             }
   355             ERROR;
  6777             
   356         }
  6778             ERROR;
   357         
  6779         }
   358     }/*function_real_to_bool*/
  6780         
   359     break;
  6781     }/*function_time_to_bool*/
   360 
  6782     break;
   361 /****
  6783 
   362  *REAL_TO_BYTE
  6784 /****
   363  */
  6785  *TIME_TO_SINT
   364     case function_real_to_byte :
  6786  */
   365     {
  6787     case function_time_to_sint :
   366         symbol_c *last_type_symbol = NULL;
  6788     {
   367 
  6789         symbol_c *last_type_symbol = NULL;
   368         {
  6790 
   369             /* Get the value from a foo(<param_name> = <param_value>) style call */
  6791         {
   370             symbol_c *IN_param_value = &this->default_variable_name;
  6792             /* Get the value from a foo(<param_name> = <param_value>) style call */
   371         
  6793             symbol_c *IN_param_value = &this->default_variable_name;
   372             symbol_c *IN_type_symbol = param_data_type;
  6794         
   373             last_type_symbol = param_data_type;
  6795             symbol_c *IN_type_symbol = param_data_type;
   374             
  6796             last_type_symbol = param_data_type;
   375             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  6797             
       
  6798             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6799             {
       
  6800         
       
  6801                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  6802                 s4o.print("(");
       
  6803                 return_type_symbol->accept(*this);
       
  6804                 s4o.print(")__time_to_int(");
       
  6805                 IN_param_value->accept(*this);
       
  6806                 s4o.print(")");
       
  6807                 return NULL;
       
  6808                 
       
  6809             }
       
  6810             
       
  6811             ERROR;
       
  6812         }
       
  6813         
       
  6814     }/*function_time_to_sint*/
       
  6815     break;
       
  6816 
       
  6817 /****
       
  6818  *TIME_TO_INT
       
  6819  */
       
  6820     case function_time_to_int :
       
  6821     {
       
  6822         symbol_c *last_type_symbol = NULL;
       
  6823 
       
  6824         {
       
  6825             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6826             symbol_c *IN_param_value = &this->default_variable_name;
       
  6827         
       
  6828             symbol_c *IN_type_symbol = param_data_type;
       
  6829             last_type_symbol = param_data_type;
       
  6830             
       
  6831             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6832             {
       
  6833         
       
  6834                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  6835                 s4o.print("(");
       
  6836                 return_type_symbol->accept(*this);
       
  6837                 s4o.print(")__time_to_int(");
       
  6838                 IN_param_value->accept(*this);
       
  6839                 s4o.print(")");
       
  6840                 return NULL;
       
  6841                 
       
  6842             }
       
  6843             
       
  6844             ERROR;
       
  6845         }
       
  6846         
       
  6847     }/*function_time_to_int*/
       
  6848     break;
       
  6849 
       
  6850 /****
       
  6851  *TIME_TO_DINT
       
  6852  */
       
  6853     case function_time_to_dint :
       
  6854     {
       
  6855         symbol_c *last_type_symbol = NULL;
       
  6856 
       
  6857         {
       
  6858             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6859             symbol_c *IN_param_value = &this->default_variable_name;
       
  6860         
       
  6861             symbol_c *IN_type_symbol = param_data_type;
       
  6862             last_type_symbol = param_data_type;
       
  6863             
       
  6864             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6865             {
       
  6866         
       
  6867                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  6868                 s4o.print("(");
       
  6869                 return_type_symbol->accept(*this);
       
  6870                 s4o.print(")__time_to_int(");
       
  6871                 IN_param_value->accept(*this);
       
  6872                 s4o.print(")");
       
  6873                 return NULL;
       
  6874                 
       
  6875             }
       
  6876             
       
  6877             ERROR;
       
  6878         }
       
  6879         
       
  6880     }/*function_time_to_dint*/
       
  6881     break;
       
  6882 
       
  6883 /****
       
  6884  *TIME_TO_LINT
       
  6885  */
       
  6886     case function_time_to_lint :
       
  6887     {
       
  6888         symbol_c *last_type_symbol = NULL;
       
  6889 
       
  6890         {
       
  6891             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6892             symbol_c *IN_param_value = &this->default_variable_name;
       
  6893         
       
  6894             symbol_c *IN_type_symbol = param_data_type;
       
  6895             last_type_symbol = param_data_type;
       
  6896             
       
  6897             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6898             {
       
  6899         
       
  6900                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  6901                 s4o.print("(");
       
  6902                 return_type_symbol->accept(*this);
       
  6903                 s4o.print(")__time_to_int(");
       
  6904                 IN_param_value->accept(*this);
       
  6905                 s4o.print(")");
       
  6906                 return NULL;
       
  6907                 
       
  6908             }
       
  6909             
       
  6910             ERROR;
       
  6911         }
       
  6912         
       
  6913     }/*function_time_to_lint*/
       
  6914     break;
       
  6915 
       
  6916 /****
       
  6917  *TIME_TO_USINT
       
  6918  */
       
  6919     case function_time_to_usint :
       
  6920     {
       
  6921         symbol_c *last_type_symbol = NULL;
       
  6922 
       
  6923         {
       
  6924             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6925             symbol_c *IN_param_value = &this->default_variable_name;
       
  6926         
       
  6927             symbol_c *IN_type_symbol = param_data_type;
       
  6928             last_type_symbol = param_data_type;
       
  6929             
       
  6930             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6931             {
       
  6932         
       
  6933                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  6934                 s4o.print("(");
       
  6935                 return_type_symbol->accept(*this);
       
  6936                 s4o.print(")__time_to_int(");
       
  6937                 IN_param_value->accept(*this);
       
  6938                 s4o.print(")");
       
  6939                 return NULL;
       
  6940                 
       
  6941             }
       
  6942             
       
  6943             ERROR;
       
  6944         }
       
  6945         
       
  6946     }/*function_time_to_usint*/
       
  6947     break;
       
  6948 
       
  6949 /****
       
  6950  *TIME_TO_UINT
       
  6951  */
       
  6952     case function_time_to_uint :
       
  6953     {
       
  6954         symbol_c *last_type_symbol = NULL;
       
  6955 
       
  6956         {
       
  6957             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6958             symbol_c *IN_param_value = &this->default_variable_name;
       
  6959         
       
  6960             symbol_c *IN_type_symbol = param_data_type;
       
  6961             last_type_symbol = param_data_type;
       
  6962             
       
  6963             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6964             {
       
  6965         
       
  6966                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  6967                 s4o.print("(");
       
  6968                 return_type_symbol->accept(*this);
       
  6969                 s4o.print(")__time_to_int(");
       
  6970                 IN_param_value->accept(*this);
       
  6971                 s4o.print(")");
       
  6972                 return NULL;
       
  6973                 
       
  6974             }
       
  6975             
       
  6976             ERROR;
       
  6977         }
       
  6978         
       
  6979     }/*function_time_to_uint*/
       
  6980     break;
       
  6981 
       
  6982 /****
       
  6983  *TIME_TO_UDINT
       
  6984  */
       
  6985     case function_time_to_udint :
       
  6986     {
       
  6987         symbol_c *last_type_symbol = NULL;
       
  6988 
       
  6989         {
       
  6990             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6991             symbol_c *IN_param_value = &this->default_variable_name;
       
  6992         
       
  6993             symbol_c *IN_type_symbol = param_data_type;
       
  6994             last_type_symbol = param_data_type;
       
  6995             
       
  6996             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6997             {
       
  6998         
       
  6999                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  7000                 s4o.print("(");
       
  7001                 return_type_symbol->accept(*this);
       
  7002                 s4o.print(")__time_to_int(");
       
  7003                 IN_param_value->accept(*this);
       
  7004                 s4o.print(")");
       
  7005                 return NULL;
       
  7006                 
       
  7007             }
       
  7008             
       
  7009             ERROR;
       
  7010         }
       
  7011         
       
  7012     }/*function_time_to_udint*/
       
  7013     break;
       
  7014 
       
  7015 /****
       
  7016  *TIME_TO_ULINT
       
  7017  */
       
  7018     case function_time_to_ulint :
       
  7019     {
       
  7020         symbol_c *last_type_symbol = NULL;
       
  7021 
       
  7022         {
       
  7023             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7024             symbol_c *IN_param_value = &this->default_variable_name;
       
  7025         
       
  7026             symbol_c *IN_type_symbol = param_data_type;
       
  7027             last_type_symbol = param_data_type;
       
  7028             
       
  7029             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  7030             {
       
  7031         
       
  7032                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  7033                 s4o.print("(");
       
  7034                 return_type_symbol->accept(*this);
       
  7035                 s4o.print(")__time_to_int(");
       
  7036                 IN_param_value->accept(*this);
       
  7037                 s4o.print(")");
       
  7038                 return NULL;
       
  7039                 
       
  7040             }
       
  7041             
       
  7042             ERROR;
       
  7043         }
       
  7044         
       
  7045     }/*function_time_to_ulint*/
       
  7046     break;
       
  7047 
       
  7048 /****
       
  7049  *TIME_TO_REAL
       
  7050  */
       
  7051     case function_time_to_real :
       
  7052     {
       
  7053         symbol_c *last_type_symbol = NULL;
       
  7054 
       
  7055         {
       
  7056             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7057             symbol_c *IN_param_value = &this->default_variable_name;
       
  7058         
       
  7059             symbol_c *IN_type_symbol = param_data_type;
       
  7060             last_type_symbol = param_data_type;
       
  7061             
       
  7062             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  7063             {
       
  7064         
       
  7065                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  7066                 s4o.print("(");
       
  7067                 return_type_symbol->accept(*this);
       
  7068                 s4o.print(")__time_to_real(");
       
  7069                 IN_param_value->accept(*this);
       
  7070                 s4o.print(")");
       
  7071                 return NULL;
       
  7072                 
       
  7073             }
       
  7074             
       
  7075             ERROR;
       
  7076         }
       
  7077         
       
  7078     }/*function_time_to_real*/
       
  7079     break;
       
  7080 
       
  7081 /****
       
  7082  *TIME_TO_LREAL
       
  7083  */
       
  7084     case function_time_to_lreal :
       
  7085     {
       
  7086         symbol_c *last_type_symbol = NULL;
       
  7087 
       
  7088         {
       
  7089             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7090             symbol_c *IN_param_value = &this->default_variable_name;
       
  7091         
       
  7092             symbol_c *IN_type_symbol = param_data_type;
       
  7093             last_type_symbol = param_data_type;
       
  7094             
       
  7095             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  7096             {
       
  7097         
       
  7098                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  7099                 s4o.print("(");
       
  7100                 return_type_symbol->accept(*this);
       
  7101                 s4o.print(")__time_to_real(");
       
  7102                 IN_param_value->accept(*this);
       
  7103                 s4o.print(")");
       
  7104                 return NULL;
       
  7105                 
       
  7106             }
       
  7107             
       
  7108             ERROR;
       
  7109         }
       
  7110         
       
  7111     }/*function_time_to_lreal*/
       
  7112     break;
       
  7113 
       
  7114 /****
       
  7115  *TIME_TO_STRING
       
  7116  */
       
  7117     case function_time_to_string :
       
  7118     {
       
  7119         symbol_c *last_type_symbol = NULL;
       
  7120 
       
  7121         {
       
  7122             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7123             symbol_c *IN_param_value = &this->default_variable_name;
       
  7124         
       
  7125             symbol_c *IN_type_symbol = param_data_type;
       
  7126             last_type_symbol = param_data_type;
       
  7127             
       
  7128             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  7129             {
       
  7130         
       
  7131                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  7132                 s4o.print("(");
       
  7133                 return_type_symbol->accept(*this);
       
  7134                 s4o.print(")__time_to_string(");
       
  7135                 IN_param_value->accept(*this);
       
  7136                 s4o.print(")");
       
  7137                 return NULL;
       
  7138                 
       
  7139             }
       
  7140             
       
  7141             ERROR;
       
  7142         }
       
  7143         
       
  7144     }/*function_time_to_string*/
       
  7145     break;
       
  7146 
       
  7147 /****
       
  7148  *TIME_TO_BYTE
       
  7149  */
       
  7150     case function_time_to_byte :
       
  7151     {
       
  7152         symbol_c *last_type_symbol = NULL;
       
  7153 
       
  7154         {
       
  7155             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7156             symbol_c *IN_param_value = &this->default_variable_name;
       
  7157         
       
  7158             symbol_c *IN_type_symbol = param_data_type;
       
  7159             last_type_symbol = param_data_type;
       
  7160             
       
  7161             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
   376             {
  7162             {
   377         
  7163         
   378                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
  7164                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
   379                 s4o.print("(");
  7165                 s4o.print("(");
   380                 return_type_symbol->accept(*this);
  7166                 return_type_symbol->accept(*this);
   381                 s4o.print(")");
  7167                 s4o.print(")__time_to_int(");
   382                 IN_param_value->accept(*this);
  7168                 IN_param_value->accept(*this);
   383                 return NULL;
  7169                 s4o.print(")");
   384                 
  7170                 return NULL;
   385             }
  7171                 
   386             
  7172             }
   387             ERROR;
  7173             
   388         }
  7174             ERROR;
   389         
  7175         }
   390     }/*function_real_to_byte*/
  7176         
   391     break;
  7177     }/*function_time_to_byte*/
   392 
  7178     break;
   393 /****
  7179 
   394  *REAL_TO_WORD
  7180 /****
   395  */
  7181  *TIME_TO_WORD
   396     case function_real_to_word :
  7182  */
   397     {
  7183     case function_time_to_word :
   398         symbol_c *last_type_symbol = NULL;
  7184     {
   399 
  7185         symbol_c *last_type_symbol = NULL;
   400         {
  7186 
   401             /* Get the value from a foo(<param_name> = <param_value>) style call */
  7187         {
   402             symbol_c *IN_param_value = &this->default_variable_name;
  7188             /* Get the value from a foo(<param_name> = <param_value>) style call */
   403         
  7189             symbol_c *IN_param_value = &this->default_variable_name;
   404             symbol_c *IN_type_symbol = param_data_type;
  7190         
   405             last_type_symbol = param_data_type;
  7191             symbol_c *IN_type_symbol = param_data_type;
   406             
  7192             last_type_symbol = param_data_type;
   407             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  7193             
       
  7194             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
   408             {
  7195             {
   409         
  7196         
   410                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
  7197                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
   411                 s4o.print("(");
  7198                 s4o.print("(");
   412                 return_type_symbol->accept(*this);
  7199                 return_type_symbol->accept(*this);
   413                 s4o.print(")");
  7200                 s4o.print(")__time_to_int(");
   414                 IN_param_value->accept(*this);
  7201                 IN_param_value->accept(*this);
   415                 return NULL;
  7202                 s4o.print(")");
   416                 
  7203                 return NULL;
   417             }
  7204                 
   418             
  7205             }
   419             ERROR;
  7206             
   420         }
  7207             ERROR;
   421         
  7208         }
   422     }/*function_real_to_word*/
  7209         
   423     break;
  7210     }/*function_time_to_word*/
   424 
  7211     break;
   425 /****
  7212 
   426  *REAL_TO_DWORD
  7213 /****
   427  */
  7214  *TIME_TO_DWORD
   428     case function_real_to_dword :
  7215  */
   429     {
  7216     case function_time_to_dword :
   430         symbol_c *last_type_symbol = NULL;
  7217     {
   431 
  7218         symbol_c *last_type_symbol = NULL;
   432         {
  7219 
   433             /* Get the value from a foo(<param_name> = <param_value>) style call */
  7220         {
   434             symbol_c *IN_param_value = &this->default_variable_name;
  7221             /* Get the value from a foo(<param_name> = <param_value>) style call */
   435         
  7222             symbol_c *IN_param_value = &this->default_variable_name;
   436             symbol_c *IN_type_symbol = param_data_type;
  7223         
   437             last_type_symbol = param_data_type;
  7224             symbol_c *IN_type_symbol = param_data_type;
   438             
  7225             last_type_symbol = param_data_type;
   439             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  7226             
       
  7227             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
   440             {
  7228             {
   441         
  7229         
   442                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
  7230                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
   443                 s4o.print("(");
  7231                 s4o.print("(");
   444                 return_type_symbol->accept(*this);
  7232                 return_type_symbol->accept(*this);
   445                 s4o.print(")");
  7233                 s4o.print(")__time_to_int(");
   446                 IN_param_value->accept(*this);
  7234                 IN_param_value->accept(*this);
   447                 return NULL;
  7235                 s4o.print(")");
   448                 
  7236                 return NULL;
   449             }
  7237                 
   450             
  7238             }
   451             ERROR;
  7239             
   452         }
  7240             ERROR;
   453         
  7241         }
   454     }/*function_real_to_dword*/
  7242         
   455     break;
  7243     }/*function_time_to_dword*/
   456 
  7244     break;
   457 /****
  7245 
   458  *REAL_TO_LWORD
  7246 /****
   459  */
  7247  *TIME_TO_LWORD
   460     case function_real_to_lword :
  7248  */
   461     {
  7249     case function_time_to_lword :
   462         symbol_c *last_type_symbol = NULL;
  7250     {
   463 
  7251         symbol_c *last_type_symbol = NULL;
   464         {
  7252 
   465             /* Get the value from a foo(<param_name> = <param_value>) style call */
  7253         {
   466             symbol_c *IN_param_value = &this->default_variable_name;
  7254             /* Get the value from a foo(<param_name> = <param_value>) style call */
   467         
  7255             symbol_c *IN_param_value = &this->default_variable_name;
   468             symbol_c *IN_type_symbol = param_data_type;
  7256         
   469             last_type_symbol = param_data_type;
  7257             symbol_c *IN_type_symbol = param_data_type;
   470             
  7258             last_type_symbol = param_data_type;
   471             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  7259             
       
  7260             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
   472             {
  7261             {
   473         
  7262         
   474                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
  7263                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
   475                 s4o.print("(");
  7264                 s4o.print("(");
   476                 return_type_symbol->accept(*this);
  7265                 return_type_symbol->accept(*this);
   477                 s4o.print(")");
  7266                 s4o.print(")__time_to_int(");
   478                 IN_param_value->accept(*this);
  7267                 IN_param_value->accept(*this);
   479                 return NULL;
  7268                 s4o.print(")");
   480                 
  7269                 return NULL;
   481             }
  7270                 
   482             
  7271             }
   483             ERROR;
  7272             
   484         }
  7273             ERROR;
   485         
  7274         }
   486     }/*function_real_to_lword*/
  7275         
   487     break;
  7276     }/*function_time_to_lword*/
   488 
  7277     break;
   489 /****
  7278 
   490  *REAL_TO_STRING
  7279 /****
   491  */
  7280  *DATE_TO_BOOL
   492     case function_real_to_string :
  7281  */
   493     {
  7282     case function_date_to_bool :
   494         symbol_c *last_type_symbol = NULL;
  7283     {
   495 
  7284         symbol_c *last_type_symbol = NULL;
   496         {
  7285 
   497             /* Get the value from a foo(<param_name> = <param_value>) style call */
  7286         {
   498             symbol_c *IN_param_value = &this->default_variable_name;
  7287             /* Get the value from a foo(<param_name> = <param_value>) style call */
   499         
  7288             symbol_c *IN_param_value = &this->default_variable_name;
   500             symbol_c *IN_type_symbol = param_data_type;
  7289         
   501             last_type_symbol = param_data_type;
  7290             symbol_c *IN_type_symbol = param_data_type;
   502             
  7291             last_type_symbol = param_data_type;
   503             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  7292             
       
  7293             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7294             {
       
  7295         
       
  7296                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  7297                 s4o.print("(");
       
  7298                 return_type_symbol->accept(*this);
       
  7299                 s4o.print(")__time_to_int(");
       
  7300                 IN_param_value->accept(*this);
       
  7301                 s4o.print(")");
       
  7302                 return NULL;
       
  7303                 
       
  7304             }
       
  7305             
       
  7306             ERROR;
       
  7307         }
       
  7308         
       
  7309     }/*function_date_to_bool*/
       
  7310     break;
       
  7311 
       
  7312 /****
       
  7313  *DATE_TO_SINT
       
  7314  */
       
  7315     case function_date_to_sint :
       
  7316     {
       
  7317         symbol_c *last_type_symbol = NULL;
       
  7318 
       
  7319         {
       
  7320             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7321             symbol_c *IN_param_value = &this->default_variable_name;
       
  7322         
       
  7323             symbol_c *IN_type_symbol = param_data_type;
       
  7324             last_type_symbol = param_data_type;
       
  7325             
       
  7326             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7327             {
       
  7328         
       
  7329                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  7330                 s4o.print("(");
       
  7331                 return_type_symbol->accept(*this);
       
  7332                 s4o.print(")__time_to_int(");
       
  7333                 IN_param_value->accept(*this);
       
  7334                 s4o.print(")");
       
  7335                 return NULL;
       
  7336                 
       
  7337             }
       
  7338             
       
  7339             ERROR;
       
  7340         }
       
  7341         
       
  7342     }/*function_date_to_sint*/
       
  7343     break;
       
  7344 
       
  7345 /****
       
  7346  *DATE_TO_INT
       
  7347  */
       
  7348     case function_date_to_int :
       
  7349     {
       
  7350         symbol_c *last_type_symbol = NULL;
       
  7351 
       
  7352         {
       
  7353             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7354             symbol_c *IN_param_value = &this->default_variable_name;
       
  7355         
       
  7356             symbol_c *IN_type_symbol = param_data_type;
       
  7357             last_type_symbol = param_data_type;
       
  7358             
       
  7359             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7360             {
       
  7361         
       
  7362                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  7363                 s4o.print("(");
       
  7364                 return_type_symbol->accept(*this);
       
  7365                 s4o.print(")__time_to_int(");
       
  7366                 IN_param_value->accept(*this);
       
  7367                 s4o.print(")");
       
  7368                 return NULL;
       
  7369                 
       
  7370             }
       
  7371             
       
  7372             ERROR;
       
  7373         }
       
  7374         
       
  7375     }/*function_date_to_int*/
       
  7376     break;
       
  7377 
       
  7378 /****
       
  7379  *DATE_TO_DINT
       
  7380  */
       
  7381     case function_date_to_dint :
       
  7382     {
       
  7383         symbol_c *last_type_symbol = NULL;
       
  7384 
       
  7385         {
       
  7386             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7387             symbol_c *IN_param_value = &this->default_variable_name;
       
  7388         
       
  7389             symbol_c *IN_type_symbol = param_data_type;
       
  7390             last_type_symbol = param_data_type;
       
  7391             
       
  7392             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7393             {
       
  7394         
       
  7395                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  7396                 s4o.print("(");
       
  7397                 return_type_symbol->accept(*this);
       
  7398                 s4o.print(")__time_to_int(");
       
  7399                 IN_param_value->accept(*this);
       
  7400                 s4o.print(")");
       
  7401                 return NULL;
       
  7402                 
       
  7403             }
       
  7404             
       
  7405             ERROR;
       
  7406         }
       
  7407         
       
  7408     }/*function_date_to_dint*/
       
  7409     break;
       
  7410 
       
  7411 /****
       
  7412  *DATE_TO_LINT
       
  7413  */
       
  7414     case function_date_to_lint :
       
  7415     {
       
  7416         symbol_c *last_type_symbol = NULL;
       
  7417 
       
  7418         {
       
  7419             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7420             symbol_c *IN_param_value = &this->default_variable_name;
       
  7421         
       
  7422             symbol_c *IN_type_symbol = param_data_type;
       
  7423             last_type_symbol = param_data_type;
       
  7424             
       
  7425             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7426             {
       
  7427         
       
  7428                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  7429                 s4o.print("(");
       
  7430                 return_type_symbol->accept(*this);
       
  7431                 s4o.print(")__time_to_int(");
       
  7432                 IN_param_value->accept(*this);
       
  7433                 s4o.print(")");
       
  7434                 return NULL;
       
  7435                 
       
  7436             }
       
  7437             
       
  7438             ERROR;
       
  7439         }
       
  7440         
       
  7441     }/*function_date_to_lint*/
       
  7442     break;
       
  7443 
       
  7444 /****
       
  7445  *DATE_TO_USINT
       
  7446  */
       
  7447     case function_date_to_usint :
       
  7448     {
       
  7449         symbol_c *last_type_symbol = NULL;
       
  7450 
       
  7451         {
       
  7452             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7453             symbol_c *IN_param_value = &this->default_variable_name;
       
  7454         
       
  7455             symbol_c *IN_type_symbol = param_data_type;
       
  7456             last_type_symbol = param_data_type;
       
  7457             
       
  7458             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7459             {
       
  7460         
       
  7461                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  7462                 s4o.print("(");
       
  7463                 return_type_symbol->accept(*this);
       
  7464                 s4o.print(")__time_to_int(");
       
  7465                 IN_param_value->accept(*this);
       
  7466                 s4o.print(")");
       
  7467                 return NULL;
       
  7468                 
       
  7469             }
       
  7470             
       
  7471             ERROR;
       
  7472         }
       
  7473         
       
  7474     }/*function_date_to_usint*/
       
  7475     break;
       
  7476 
       
  7477 /****
       
  7478  *DATE_TO_UINT
       
  7479  */
       
  7480     case function_date_to_uint :
       
  7481     {
       
  7482         symbol_c *last_type_symbol = NULL;
       
  7483 
       
  7484         {
       
  7485             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7486             symbol_c *IN_param_value = &this->default_variable_name;
       
  7487         
       
  7488             symbol_c *IN_type_symbol = param_data_type;
       
  7489             last_type_symbol = param_data_type;
       
  7490             
       
  7491             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7492             {
       
  7493         
       
  7494                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  7495                 s4o.print("(");
       
  7496                 return_type_symbol->accept(*this);
       
  7497                 s4o.print(")__time_to_int(");
       
  7498                 IN_param_value->accept(*this);
       
  7499                 s4o.print(")");
       
  7500                 return NULL;
       
  7501                 
       
  7502             }
       
  7503             
       
  7504             ERROR;
       
  7505         }
       
  7506         
       
  7507     }/*function_date_to_uint*/
       
  7508     break;
       
  7509 
       
  7510 /****
       
  7511  *DATE_TO_UDINT
       
  7512  */
       
  7513     case function_date_to_udint :
       
  7514     {
       
  7515         symbol_c *last_type_symbol = NULL;
       
  7516 
       
  7517         {
       
  7518             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7519             symbol_c *IN_param_value = &this->default_variable_name;
       
  7520         
       
  7521             symbol_c *IN_type_symbol = param_data_type;
       
  7522             last_type_symbol = param_data_type;
       
  7523             
       
  7524             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7525             {
       
  7526         
       
  7527                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  7528                 s4o.print("(");
       
  7529                 return_type_symbol->accept(*this);
       
  7530                 s4o.print(")__time_to_int(");
       
  7531                 IN_param_value->accept(*this);
       
  7532                 s4o.print(")");
       
  7533                 return NULL;
       
  7534                 
       
  7535             }
       
  7536             
       
  7537             ERROR;
       
  7538         }
       
  7539         
       
  7540     }/*function_date_to_udint*/
       
  7541     break;
       
  7542 
       
  7543 /****
       
  7544  *DATE_TO_ULINT
       
  7545  */
       
  7546     case function_date_to_ulint :
       
  7547     {
       
  7548         symbol_c *last_type_symbol = NULL;
       
  7549 
       
  7550         {
       
  7551             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7552             symbol_c *IN_param_value = &this->default_variable_name;
       
  7553         
       
  7554             symbol_c *IN_type_symbol = param_data_type;
       
  7555             last_type_symbol = param_data_type;
       
  7556             
       
  7557             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7558             {
       
  7559         
       
  7560                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  7561                 s4o.print("(");
       
  7562                 return_type_symbol->accept(*this);
       
  7563                 s4o.print(")__time_to_int(");
       
  7564                 IN_param_value->accept(*this);
       
  7565                 s4o.print(")");
       
  7566                 return NULL;
       
  7567                 
       
  7568             }
       
  7569             
       
  7570             ERROR;
       
  7571         }
       
  7572         
       
  7573     }/*function_date_to_ulint*/
       
  7574     break;
       
  7575 
       
  7576 /****
       
  7577  *DATE_TO_REAL
       
  7578  */
       
  7579     case function_date_to_real :
       
  7580     {
       
  7581         symbol_c *last_type_symbol = NULL;
       
  7582 
       
  7583         {
       
  7584             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7585             symbol_c *IN_param_value = &this->default_variable_name;
       
  7586         
       
  7587             symbol_c *IN_type_symbol = param_data_type;
       
  7588             last_type_symbol = param_data_type;
       
  7589             
       
  7590             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7591             {
       
  7592         
       
  7593                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  7594                 s4o.print("(");
       
  7595                 return_type_symbol->accept(*this);
       
  7596                 s4o.print(")__time_to_real(");
       
  7597                 IN_param_value->accept(*this);
       
  7598                 s4o.print(")");
       
  7599                 return NULL;
       
  7600                 
       
  7601             }
       
  7602             
       
  7603             ERROR;
       
  7604         }
       
  7605         
       
  7606     }/*function_date_to_real*/
       
  7607     break;
       
  7608 
       
  7609 /****
       
  7610  *DATE_TO_LREAL
       
  7611  */
       
  7612     case function_date_to_lreal :
       
  7613     {
       
  7614         symbol_c *last_type_symbol = NULL;
       
  7615 
       
  7616         {
       
  7617             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7618             symbol_c *IN_param_value = &this->default_variable_name;
       
  7619         
       
  7620             symbol_c *IN_type_symbol = param_data_type;
       
  7621             last_type_symbol = param_data_type;
       
  7622             
       
  7623             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7624             {
       
  7625         
       
  7626                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  7627                 s4o.print("(");
       
  7628                 return_type_symbol->accept(*this);
       
  7629                 s4o.print(")__time_to_real(");
       
  7630                 IN_param_value->accept(*this);
       
  7631                 s4o.print(")");
       
  7632                 return NULL;
       
  7633                 
       
  7634             }
       
  7635             
       
  7636             ERROR;
       
  7637         }
       
  7638         
       
  7639     }/*function_date_to_lreal*/
       
  7640     break;
       
  7641 
       
  7642 /****
       
  7643  *DATE_TO_STRING
       
  7644  */
       
  7645     case function_date_to_string :
       
  7646     {
       
  7647         symbol_c *last_type_symbol = NULL;
       
  7648 
       
  7649         {
       
  7650             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7651             symbol_c *IN_param_value = &this->default_variable_name;
       
  7652         
       
  7653             symbol_c *IN_type_symbol = param_data_type;
       
  7654             last_type_symbol = param_data_type;
       
  7655             
       
  7656             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
   504             {
  7657             {
   505         
  7658         
   506                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
  7659                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
   507                 s4o.print("(");
  7660                 s4o.print("(");
   508                 return_type_symbol->accept(*this);
  7661                 return_type_symbol->accept(*this);
   509                 s4o.print(")__real_to_string(");
  7662                 s4o.print(")__date_to_string(");
   510                 IN_param_value->accept(*this);
  7663                 IN_param_value->accept(*this);
   511                 s4o.print(")");
  7664                 s4o.print(")");
   512                 return NULL;
  7665                 return NULL;
   513                 
  7666                 
   514             }
  7667             }
   515             
  7668             
   516             ERROR;
  7669             ERROR;
   517         }
  7670         }
   518         
  7671         
   519     }/*function_real_to_string*/
  7672     }/*function_date_to_string*/
   520     break;
  7673     break;
   521 
  7674 
   522 /****
  7675 /****
   523  *REAL_TO_DATE
  7676  *DATE_TO_BYTE
   524  */
  7677  */
   525     case function_real_to_date :
  7678     case function_date_to_byte :
   526     {
  7679     {
   527         symbol_c *last_type_symbol = NULL;
  7680         symbol_c *last_type_symbol = NULL;
   528 
  7681 
   529         {
  7682         {
   530             /* Get the value from a foo(<param_name> = <param_value>) style call */
  7683             /* Get the value from a foo(<param_name> = <param_value>) style call */
   531             symbol_c *IN_param_value = &this->default_variable_name;
  7684             symbol_c *IN_param_value = &this->default_variable_name;
   532         
  7685         
   533             symbol_c *IN_type_symbol = param_data_type;
  7686             symbol_c *IN_type_symbol = param_data_type;
   534             last_type_symbol = param_data_type;
  7687             last_type_symbol = param_data_type;
   535             
  7688             
   536             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  7689             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7690             {
       
  7691         
       
  7692                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  7693                 s4o.print("(");
       
  7694                 return_type_symbol->accept(*this);
       
  7695                 s4o.print(")__time_to_int(");
       
  7696                 IN_param_value->accept(*this);
       
  7697                 s4o.print(")");
       
  7698                 return NULL;
       
  7699                 
       
  7700             }
       
  7701             
       
  7702             ERROR;
       
  7703         }
       
  7704         
       
  7705     }/*function_date_to_byte*/
       
  7706     break;
       
  7707 
       
  7708 /****
       
  7709  *DATE_TO_WORD
       
  7710  */
       
  7711     case function_date_to_word :
       
  7712     {
       
  7713         symbol_c *last_type_symbol = NULL;
       
  7714 
       
  7715         {
       
  7716             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7717             symbol_c *IN_param_value = &this->default_variable_name;
       
  7718         
       
  7719             symbol_c *IN_type_symbol = param_data_type;
       
  7720             last_type_symbol = param_data_type;
       
  7721             
       
  7722             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7723             {
       
  7724         
       
  7725                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  7726                 s4o.print("(");
       
  7727                 return_type_symbol->accept(*this);
       
  7728                 s4o.print(")__time_to_int(");
       
  7729                 IN_param_value->accept(*this);
       
  7730                 s4o.print(")");
       
  7731                 return NULL;
       
  7732                 
       
  7733             }
       
  7734             
       
  7735             ERROR;
       
  7736         }
       
  7737         
       
  7738     }/*function_date_to_word*/
       
  7739     break;
       
  7740 
       
  7741 /****
       
  7742  *DATE_TO_DWORD
       
  7743  */
       
  7744     case function_date_to_dword :
       
  7745     {
       
  7746         symbol_c *last_type_symbol = NULL;
       
  7747 
       
  7748         {
       
  7749             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7750             symbol_c *IN_param_value = &this->default_variable_name;
       
  7751         
       
  7752             symbol_c *IN_type_symbol = param_data_type;
       
  7753             last_type_symbol = param_data_type;
       
  7754             
       
  7755             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7756             {
       
  7757         
       
  7758                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  7759                 s4o.print("(");
       
  7760                 return_type_symbol->accept(*this);
       
  7761                 s4o.print(")__time_to_int(");
       
  7762                 IN_param_value->accept(*this);
       
  7763                 s4o.print(")");
       
  7764                 return NULL;
       
  7765                 
       
  7766             }
       
  7767             
       
  7768             ERROR;
       
  7769         }
       
  7770         
       
  7771     }/*function_date_to_dword*/
       
  7772     break;
       
  7773 
       
  7774 /****
       
  7775  *DATE_TO_LWORD
       
  7776  */
       
  7777     case function_date_to_lword :
       
  7778     {
       
  7779         symbol_c *last_type_symbol = NULL;
       
  7780 
       
  7781         {
       
  7782             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7783             symbol_c *IN_param_value = &this->default_variable_name;
       
  7784         
       
  7785             symbol_c *IN_type_symbol = param_data_type;
       
  7786             last_type_symbol = param_data_type;
       
  7787             
       
  7788             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
  7789             {
       
  7790         
       
  7791                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  7792                 s4o.print("(");
       
  7793                 return_type_symbol->accept(*this);
       
  7794                 s4o.print(")__time_to_int(");
       
  7795                 IN_param_value->accept(*this);
       
  7796                 s4o.print(")");
       
  7797                 return NULL;
       
  7798                 
       
  7799             }
       
  7800             
       
  7801             ERROR;
       
  7802         }
       
  7803         
       
  7804     }/*function_date_to_lword*/
       
  7805     break;
       
  7806 
       
  7807 /****
       
  7808  *TOD_TO_BOOL
       
  7809  */
       
  7810     case function_tod_to_bool :
       
  7811     {
       
  7812         symbol_c *last_type_symbol = NULL;
       
  7813 
       
  7814         {
       
  7815             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7816             symbol_c *IN_param_value = &this->default_variable_name;
       
  7817         
       
  7818             symbol_c *IN_type_symbol = param_data_type;
       
  7819             last_type_symbol = param_data_type;
       
  7820             
       
  7821             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  7822             {
       
  7823         
       
  7824                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  7825                 s4o.print("(");
       
  7826                 return_type_symbol->accept(*this);
       
  7827                 s4o.print(")__time_to_int(");
       
  7828                 IN_param_value->accept(*this);
       
  7829                 s4o.print(")");
       
  7830                 return NULL;
       
  7831                 
       
  7832             }
       
  7833             
       
  7834             ERROR;
       
  7835         }
       
  7836         
       
  7837     }/*function_tod_to_bool*/
       
  7838     break;
       
  7839 
       
  7840 /****
       
  7841  *TOD_TO_SINT
       
  7842  */
       
  7843     case function_tod_to_sint :
       
  7844     {
       
  7845         symbol_c *last_type_symbol = NULL;
       
  7846 
       
  7847         {
       
  7848             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7849             symbol_c *IN_param_value = &this->default_variable_name;
       
  7850         
       
  7851             symbol_c *IN_type_symbol = param_data_type;
       
  7852             last_type_symbol = param_data_type;
       
  7853             
       
  7854             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  7855             {
       
  7856         
       
  7857                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  7858                 s4o.print("(");
       
  7859                 return_type_symbol->accept(*this);
       
  7860                 s4o.print(")__time_to_int(");
       
  7861                 IN_param_value->accept(*this);
       
  7862                 s4o.print(")");
       
  7863                 return NULL;
       
  7864                 
       
  7865             }
       
  7866             
       
  7867             ERROR;
       
  7868         }
       
  7869         
       
  7870     }/*function_tod_to_sint*/
       
  7871     break;
       
  7872 
       
  7873 /****
       
  7874  *TOD_TO_INT
       
  7875  */
       
  7876     case function_tod_to_int :
       
  7877     {
       
  7878         symbol_c *last_type_symbol = NULL;
       
  7879 
       
  7880         {
       
  7881             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7882             symbol_c *IN_param_value = &this->default_variable_name;
       
  7883         
       
  7884             symbol_c *IN_type_symbol = param_data_type;
       
  7885             last_type_symbol = param_data_type;
       
  7886             
       
  7887             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  7888             {
       
  7889         
       
  7890                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  7891                 s4o.print("(");
       
  7892                 return_type_symbol->accept(*this);
       
  7893                 s4o.print(")__time_to_int(");
       
  7894                 IN_param_value->accept(*this);
       
  7895                 s4o.print(")");
       
  7896                 return NULL;
       
  7897                 
       
  7898             }
       
  7899             
       
  7900             ERROR;
       
  7901         }
       
  7902         
       
  7903     }/*function_tod_to_int*/
       
  7904     break;
       
  7905 
       
  7906 /****
       
  7907  *TOD_TO_DINT
       
  7908  */
       
  7909     case function_tod_to_dint :
       
  7910     {
       
  7911         symbol_c *last_type_symbol = NULL;
       
  7912 
       
  7913         {
       
  7914             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7915             symbol_c *IN_param_value = &this->default_variable_name;
       
  7916         
       
  7917             symbol_c *IN_type_symbol = param_data_type;
       
  7918             last_type_symbol = param_data_type;
       
  7919             
       
  7920             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  7921             {
       
  7922         
       
  7923                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  7924                 s4o.print("(");
       
  7925                 return_type_symbol->accept(*this);
       
  7926                 s4o.print(")__time_to_int(");
       
  7927                 IN_param_value->accept(*this);
       
  7928                 s4o.print(")");
       
  7929                 return NULL;
       
  7930                 
       
  7931             }
       
  7932             
       
  7933             ERROR;
       
  7934         }
       
  7935         
       
  7936     }/*function_tod_to_dint*/
       
  7937     break;
       
  7938 
       
  7939 /****
       
  7940  *TOD_TO_LINT
       
  7941  */
       
  7942     case function_tod_to_lint :
       
  7943     {
       
  7944         symbol_c *last_type_symbol = NULL;
       
  7945 
       
  7946         {
       
  7947             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7948             symbol_c *IN_param_value = &this->default_variable_name;
       
  7949         
       
  7950             symbol_c *IN_type_symbol = param_data_type;
       
  7951             last_type_symbol = param_data_type;
       
  7952             
       
  7953             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  7954             {
       
  7955         
       
  7956                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  7957                 s4o.print("(");
       
  7958                 return_type_symbol->accept(*this);
       
  7959                 s4o.print(")__time_to_int(");
       
  7960                 IN_param_value->accept(*this);
       
  7961                 s4o.print(")");
       
  7962                 return NULL;
       
  7963                 
       
  7964             }
       
  7965             
       
  7966             ERROR;
       
  7967         }
       
  7968         
       
  7969     }/*function_tod_to_lint*/
       
  7970     break;
       
  7971 
       
  7972 /****
       
  7973  *TOD_TO_USINT
       
  7974  */
       
  7975     case function_tod_to_usint :
       
  7976     {
       
  7977         symbol_c *last_type_symbol = NULL;
       
  7978 
       
  7979         {
       
  7980             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7981             symbol_c *IN_param_value = &this->default_variable_name;
       
  7982         
       
  7983             symbol_c *IN_type_symbol = param_data_type;
       
  7984             last_type_symbol = param_data_type;
       
  7985             
       
  7986             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  7987             {
       
  7988         
       
  7989                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  7990                 s4o.print("(");
       
  7991                 return_type_symbol->accept(*this);
       
  7992                 s4o.print(")__time_to_int(");
       
  7993                 IN_param_value->accept(*this);
       
  7994                 s4o.print(")");
       
  7995                 return NULL;
       
  7996                 
       
  7997             }
       
  7998             
       
  7999             ERROR;
       
  8000         }
       
  8001         
       
  8002     }/*function_tod_to_usint*/
       
  8003     break;
       
  8004 
       
  8005 /****
       
  8006  *TOD_TO_UINT
       
  8007  */
       
  8008     case function_tod_to_uint :
       
  8009     {
       
  8010         symbol_c *last_type_symbol = NULL;
       
  8011 
       
  8012         {
       
  8013             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8014             symbol_c *IN_param_value = &this->default_variable_name;
       
  8015         
       
  8016             symbol_c *IN_type_symbol = param_data_type;
       
  8017             last_type_symbol = param_data_type;
       
  8018             
       
  8019             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  8020             {
       
  8021         
       
  8022                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  8023                 s4o.print("(");
       
  8024                 return_type_symbol->accept(*this);
       
  8025                 s4o.print(")__time_to_int(");
       
  8026                 IN_param_value->accept(*this);
       
  8027                 s4o.print(")");
       
  8028                 return NULL;
       
  8029                 
       
  8030             }
       
  8031             
       
  8032             ERROR;
       
  8033         }
       
  8034         
       
  8035     }/*function_tod_to_uint*/
       
  8036     break;
       
  8037 
       
  8038 /****
       
  8039  *TOD_TO_UDINT
       
  8040  */
       
  8041     case function_tod_to_udint :
       
  8042     {
       
  8043         symbol_c *last_type_symbol = NULL;
       
  8044 
       
  8045         {
       
  8046             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8047             symbol_c *IN_param_value = &this->default_variable_name;
       
  8048         
       
  8049             symbol_c *IN_type_symbol = param_data_type;
       
  8050             last_type_symbol = param_data_type;
       
  8051             
       
  8052             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  8053             {
       
  8054         
       
  8055                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  8056                 s4o.print("(");
       
  8057                 return_type_symbol->accept(*this);
       
  8058                 s4o.print(")__time_to_int(");
       
  8059                 IN_param_value->accept(*this);
       
  8060                 s4o.print(")");
       
  8061                 return NULL;
       
  8062                 
       
  8063             }
       
  8064             
       
  8065             ERROR;
       
  8066         }
       
  8067         
       
  8068     }/*function_tod_to_udint*/
       
  8069     break;
       
  8070 
       
  8071 /****
       
  8072  *TOD_TO_ULINT
       
  8073  */
       
  8074     case function_tod_to_ulint :
       
  8075     {
       
  8076         symbol_c *last_type_symbol = NULL;
       
  8077 
       
  8078         {
       
  8079             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8080             symbol_c *IN_param_value = &this->default_variable_name;
       
  8081         
       
  8082             symbol_c *IN_type_symbol = param_data_type;
       
  8083             last_type_symbol = param_data_type;
       
  8084             
       
  8085             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  8086             {
       
  8087         
       
  8088                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  8089                 s4o.print("(");
       
  8090                 return_type_symbol->accept(*this);
       
  8091                 s4o.print(")__time_to_int(");
       
  8092                 IN_param_value->accept(*this);
       
  8093                 s4o.print(")");
       
  8094                 return NULL;
       
  8095                 
       
  8096             }
       
  8097             
       
  8098             ERROR;
       
  8099         }
       
  8100         
       
  8101     }/*function_tod_to_ulint*/
       
  8102     break;
       
  8103 
       
  8104 /****
       
  8105  *TOD_TO_REAL
       
  8106  */
       
  8107     case function_tod_to_real :
       
  8108     {
       
  8109         symbol_c *last_type_symbol = NULL;
       
  8110 
       
  8111         {
       
  8112             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8113             symbol_c *IN_param_value = &this->default_variable_name;
       
  8114         
       
  8115             symbol_c *IN_type_symbol = param_data_type;
       
  8116             last_type_symbol = param_data_type;
       
  8117             
       
  8118             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  8119             {
       
  8120         
       
  8121                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  8122                 s4o.print("(");
       
  8123                 return_type_symbol->accept(*this);
       
  8124                 s4o.print(")__time_to_real(");
       
  8125                 IN_param_value->accept(*this);
       
  8126                 s4o.print(")");
       
  8127                 return NULL;
       
  8128                 
       
  8129             }
       
  8130             
       
  8131             ERROR;
       
  8132         }
       
  8133         
       
  8134     }/*function_tod_to_real*/
       
  8135     break;
       
  8136 
       
  8137 /****
       
  8138  *TOD_TO_LREAL
       
  8139  */
       
  8140     case function_tod_to_lreal :
       
  8141     {
       
  8142         symbol_c *last_type_symbol = NULL;
       
  8143 
       
  8144         {
       
  8145             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8146             symbol_c *IN_param_value = &this->default_variable_name;
       
  8147         
       
  8148             symbol_c *IN_type_symbol = param_data_type;
       
  8149             last_type_symbol = param_data_type;
       
  8150             
       
  8151             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  8152             {
       
  8153         
       
  8154                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  8155                 s4o.print("(");
       
  8156                 return_type_symbol->accept(*this);
       
  8157                 s4o.print(")__time_to_real(");
       
  8158                 IN_param_value->accept(*this);
       
  8159                 s4o.print(")");
       
  8160                 return NULL;
       
  8161                 
       
  8162             }
       
  8163             
       
  8164             ERROR;
       
  8165         }
       
  8166         
       
  8167     }/*function_tod_to_lreal*/
       
  8168     break;
       
  8169 
       
  8170 /****
       
  8171  *TOD_TO_STRING
       
  8172  */
       
  8173     case function_tod_to_string :
       
  8174     {
       
  8175         symbol_c *last_type_symbol = NULL;
       
  8176 
       
  8177         {
       
  8178             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8179             symbol_c *IN_param_value = &this->default_variable_name;
       
  8180         
       
  8181             symbol_c *IN_type_symbol = param_data_type;
       
  8182             last_type_symbol = param_data_type;
       
  8183             
       
  8184             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  8185             {
       
  8186         
       
  8187                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  8188                 s4o.print("(");
       
  8189                 return_type_symbol->accept(*this);
       
  8190                 s4o.print(")__tod_to_string(");
       
  8191                 IN_param_value->accept(*this);
       
  8192                 s4o.print(")");
       
  8193                 return NULL;
       
  8194                 
       
  8195             }
       
  8196             
       
  8197             ERROR;
       
  8198         }
       
  8199         
       
  8200     }/*function_tod_to_string*/
       
  8201     break;
       
  8202 
       
  8203 /****
       
  8204  *TOD_TO_BYTE
       
  8205  */
       
  8206     case function_tod_to_byte :
       
  8207     {
       
  8208         symbol_c *last_type_symbol = NULL;
       
  8209 
       
  8210         {
       
  8211             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8212             symbol_c *IN_param_value = &this->default_variable_name;
       
  8213         
       
  8214             symbol_c *IN_type_symbol = param_data_type;
       
  8215             last_type_symbol = param_data_type;
       
  8216             
       
  8217             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  8218             {
       
  8219         
       
  8220                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  8221                 s4o.print("(");
       
  8222                 return_type_symbol->accept(*this);
       
  8223                 s4o.print(")__time_to_int(");
       
  8224                 IN_param_value->accept(*this);
       
  8225                 s4o.print(")");
       
  8226                 return NULL;
       
  8227                 
       
  8228             }
       
  8229             
       
  8230             ERROR;
       
  8231         }
       
  8232         
       
  8233     }/*function_tod_to_byte*/
       
  8234     break;
       
  8235 
       
  8236 /****
       
  8237  *TOD_TO_WORD
       
  8238  */
       
  8239     case function_tod_to_word :
       
  8240     {
       
  8241         symbol_c *last_type_symbol = NULL;
       
  8242 
       
  8243         {
       
  8244             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8245             symbol_c *IN_param_value = &this->default_variable_name;
       
  8246         
       
  8247             symbol_c *IN_type_symbol = param_data_type;
       
  8248             last_type_symbol = param_data_type;
       
  8249             
       
  8250             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  8251             {
       
  8252         
       
  8253                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  8254                 s4o.print("(");
       
  8255                 return_type_symbol->accept(*this);
       
  8256                 s4o.print(")__time_to_int(");
       
  8257                 IN_param_value->accept(*this);
       
  8258                 s4o.print(")");
       
  8259                 return NULL;
       
  8260                 
       
  8261             }
       
  8262             
       
  8263             ERROR;
       
  8264         }
       
  8265         
       
  8266     }/*function_tod_to_word*/
       
  8267     break;
       
  8268 
       
  8269 /****
       
  8270  *TOD_TO_DWORD
       
  8271  */
       
  8272     case function_tod_to_dword :
       
  8273     {
       
  8274         symbol_c *last_type_symbol = NULL;
       
  8275 
       
  8276         {
       
  8277             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8278             symbol_c *IN_param_value = &this->default_variable_name;
       
  8279         
       
  8280             symbol_c *IN_type_symbol = param_data_type;
       
  8281             last_type_symbol = param_data_type;
       
  8282             
       
  8283             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  8284             {
       
  8285         
       
  8286                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  8287                 s4o.print("(");
       
  8288                 return_type_symbol->accept(*this);
       
  8289                 s4o.print(")__time_to_int(");
       
  8290                 IN_param_value->accept(*this);
       
  8291                 s4o.print(")");
       
  8292                 return NULL;
       
  8293                 
       
  8294             }
       
  8295             
       
  8296             ERROR;
       
  8297         }
       
  8298         
       
  8299     }/*function_tod_to_dword*/
       
  8300     break;
       
  8301 
       
  8302 /****
       
  8303  *TOD_TO_LWORD
       
  8304  */
       
  8305     case function_tod_to_lword :
       
  8306     {
       
  8307         symbol_c *last_type_symbol = NULL;
       
  8308 
       
  8309         {
       
  8310             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8311             symbol_c *IN_param_value = &this->default_variable_name;
       
  8312         
       
  8313             symbol_c *IN_type_symbol = param_data_type;
       
  8314             last_type_symbol = param_data_type;
       
  8315             
       
  8316             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
  8317             {
       
  8318         
       
  8319                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  8320                 s4o.print("(");
       
  8321                 return_type_symbol->accept(*this);
       
  8322                 s4o.print(")__time_to_int(");
       
  8323                 IN_param_value->accept(*this);
       
  8324                 s4o.print(")");
       
  8325                 return NULL;
       
  8326                 
       
  8327             }
       
  8328             
       
  8329             ERROR;
       
  8330         }
       
  8331         
       
  8332     }/*function_tod_to_lword*/
       
  8333     break;
       
  8334 
       
  8335 /****
       
  8336  *DT_TO_BOOL
       
  8337  */
       
  8338     case function_dt_to_bool :
       
  8339     {
       
  8340         symbol_c *last_type_symbol = NULL;
       
  8341 
       
  8342         {
       
  8343             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8344             symbol_c *IN_param_value = &this->default_variable_name;
       
  8345         
       
  8346             symbol_c *IN_type_symbol = param_data_type;
       
  8347             last_type_symbol = param_data_type;
       
  8348             
       
  8349             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8350             {
       
  8351         
       
  8352                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  8353                 s4o.print("(");
       
  8354                 return_type_symbol->accept(*this);
       
  8355                 s4o.print(")__time_to_int(");
       
  8356                 IN_param_value->accept(*this);
       
  8357                 s4o.print(")");
       
  8358                 return NULL;
       
  8359                 
       
  8360             }
       
  8361             
       
  8362             ERROR;
       
  8363         }
       
  8364         
       
  8365     }/*function_dt_to_bool*/
       
  8366     break;
       
  8367 
       
  8368 /****
       
  8369  *DT_TO_SINT
       
  8370  */
       
  8371     case function_dt_to_sint :
       
  8372     {
       
  8373         symbol_c *last_type_symbol = NULL;
       
  8374 
       
  8375         {
       
  8376             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8377             symbol_c *IN_param_value = &this->default_variable_name;
       
  8378         
       
  8379             symbol_c *IN_type_symbol = param_data_type;
       
  8380             last_type_symbol = param_data_type;
       
  8381             
       
  8382             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8383             {
       
  8384         
       
  8385                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  8386                 s4o.print("(");
       
  8387                 return_type_symbol->accept(*this);
       
  8388                 s4o.print(")__time_to_int(");
       
  8389                 IN_param_value->accept(*this);
       
  8390                 s4o.print(")");
       
  8391                 return NULL;
       
  8392                 
       
  8393             }
       
  8394             
       
  8395             ERROR;
       
  8396         }
       
  8397         
       
  8398     }/*function_dt_to_sint*/
       
  8399     break;
       
  8400 
       
  8401 /****
       
  8402  *DT_TO_INT
       
  8403  */
       
  8404     case function_dt_to_int :
       
  8405     {
       
  8406         symbol_c *last_type_symbol = NULL;
       
  8407 
       
  8408         {
       
  8409             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8410             symbol_c *IN_param_value = &this->default_variable_name;
       
  8411         
       
  8412             symbol_c *IN_type_symbol = param_data_type;
       
  8413             last_type_symbol = param_data_type;
       
  8414             
       
  8415             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8416             {
       
  8417         
       
  8418                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  8419                 s4o.print("(");
       
  8420                 return_type_symbol->accept(*this);
       
  8421                 s4o.print(")__time_to_int(");
       
  8422                 IN_param_value->accept(*this);
       
  8423                 s4o.print(")");
       
  8424                 return NULL;
       
  8425                 
       
  8426             }
       
  8427             
       
  8428             ERROR;
       
  8429         }
       
  8430         
       
  8431     }/*function_dt_to_int*/
       
  8432     break;
       
  8433 
       
  8434 /****
       
  8435  *DT_TO_DINT
       
  8436  */
       
  8437     case function_dt_to_dint :
       
  8438     {
       
  8439         symbol_c *last_type_symbol = NULL;
       
  8440 
       
  8441         {
       
  8442             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8443             symbol_c *IN_param_value = &this->default_variable_name;
       
  8444         
       
  8445             symbol_c *IN_type_symbol = param_data_type;
       
  8446             last_type_symbol = param_data_type;
       
  8447             
       
  8448             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8449             {
       
  8450         
       
  8451                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  8452                 s4o.print("(");
       
  8453                 return_type_symbol->accept(*this);
       
  8454                 s4o.print(")__time_to_int(");
       
  8455                 IN_param_value->accept(*this);
       
  8456                 s4o.print(")");
       
  8457                 return NULL;
       
  8458                 
       
  8459             }
       
  8460             
       
  8461             ERROR;
       
  8462         }
       
  8463         
       
  8464     }/*function_dt_to_dint*/
       
  8465     break;
       
  8466 
       
  8467 /****
       
  8468  *DT_TO_LINT
       
  8469  */
       
  8470     case function_dt_to_lint :
       
  8471     {
       
  8472         symbol_c *last_type_symbol = NULL;
       
  8473 
       
  8474         {
       
  8475             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8476             symbol_c *IN_param_value = &this->default_variable_name;
       
  8477         
       
  8478             symbol_c *IN_type_symbol = param_data_type;
       
  8479             last_type_symbol = param_data_type;
       
  8480             
       
  8481             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8482             {
       
  8483         
       
  8484                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  8485                 s4o.print("(");
       
  8486                 return_type_symbol->accept(*this);
       
  8487                 s4o.print(")__time_to_int(");
       
  8488                 IN_param_value->accept(*this);
       
  8489                 s4o.print(")");
       
  8490                 return NULL;
       
  8491                 
       
  8492             }
       
  8493             
       
  8494             ERROR;
       
  8495         }
       
  8496         
       
  8497     }/*function_dt_to_lint*/
       
  8498     break;
       
  8499 
       
  8500 /****
       
  8501  *DT_TO_USINT
       
  8502  */
       
  8503     case function_dt_to_usint :
       
  8504     {
       
  8505         symbol_c *last_type_symbol = NULL;
       
  8506 
       
  8507         {
       
  8508             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8509             symbol_c *IN_param_value = &this->default_variable_name;
       
  8510         
       
  8511             symbol_c *IN_type_symbol = param_data_type;
       
  8512             last_type_symbol = param_data_type;
       
  8513             
       
  8514             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8515             {
       
  8516         
       
  8517                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  8518                 s4o.print("(");
       
  8519                 return_type_symbol->accept(*this);
       
  8520                 s4o.print(")__time_to_int(");
       
  8521                 IN_param_value->accept(*this);
       
  8522                 s4o.print(")");
       
  8523                 return NULL;
       
  8524                 
       
  8525             }
       
  8526             
       
  8527             ERROR;
       
  8528         }
       
  8529         
       
  8530     }/*function_dt_to_usint*/
       
  8531     break;
       
  8532 
       
  8533 /****
       
  8534  *DT_TO_UINT
       
  8535  */
       
  8536     case function_dt_to_uint :
       
  8537     {
       
  8538         symbol_c *last_type_symbol = NULL;
       
  8539 
       
  8540         {
       
  8541             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8542             symbol_c *IN_param_value = &this->default_variable_name;
       
  8543         
       
  8544             symbol_c *IN_type_symbol = param_data_type;
       
  8545             last_type_symbol = param_data_type;
       
  8546             
       
  8547             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8548             {
       
  8549         
       
  8550                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  8551                 s4o.print("(");
       
  8552                 return_type_symbol->accept(*this);
       
  8553                 s4o.print(")__time_to_int(");
       
  8554                 IN_param_value->accept(*this);
       
  8555                 s4o.print(")");
       
  8556                 return NULL;
       
  8557                 
       
  8558             }
       
  8559             
       
  8560             ERROR;
       
  8561         }
       
  8562         
       
  8563     }/*function_dt_to_uint*/
       
  8564     break;
       
  8565 
       
  8566 /****
       
  8567  *DT_TO_UDINT
       
  8568  */
       
  8569     case function_dt_to_udint :
       
  8570     {
       
  8571         symbol_c *last_type_symbol = NULL;
       
  8572 
       
  8573         {
       
  8574             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8575             symbol_c *IN_param_value = &this->default_variable_name;
       
  8576         
       
  8577             symbol_c *IN_type_symbol = param_data_type;
       
  8578             last_type_symbol = param_data_type;
       
  8579             
       
  8580             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8581             {
       
  8582         
       
  8583                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  8584                 s4o.print("(");
       
  8585                 return_type_symbol->accept(*this);
       
  8586                 s4o.print(")__time_to_int(");
       
  8587                 IN_param_value->accept(*this);
       
  8588                 s4o.print(")");
       
  8589                 return NULL;
       
  8590                 
       
  8591             }
       
  8592             
       
  8593             ERROR;
       
  8594         }
       
  8595         
       
  8596     }/*function_dt_to_udint*/
       
  8597     break;
       
  8598 
       
  8599 /****
       
  8600  *DT_TO_ULINT
       
  8601  */
       
  8602     case function_dt_to_ulint :
       
  8603     {
       
  8604         symbol_c *last_type_symbol = NULL;
       
  8605 
       
  8606         {
       
  8607             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8608             symbol_c *IN_param_value = &this->default_variable_name;
       
  8609         
       
  8610             symbol_c *IN_type_symbol = param_data_type;
       
  8611             last_type_symbol = param_data_type;
       
  8612             
       
  8613             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8614             {
       
  8615         
       
  8616                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  8617                 s4o.print("(");
       
  8618                 return_type_symbol->accept(*this);
       
  8619                 s4o.print(")__time_to_int(");
       
  8620                 IN_param_value->accept(*this);
       
  8621                 s4o.print(")");
       
  8622                 return NULL;
       
  8623                 
       
  8624             }
       
  8625             
       
  8626             ERROR;
       
  8627         }
       
  8628         
       
  8629     }/*function_dt_to_ulint*/
       
  8630     break;
       
  8631 
       
  8632 /****
       
  8633  *DT_TO_REAL
       
  8634  */
       
  8635     case function_dt_to_real :
       
  8636     {
       
  8637         symbol_c *last_type_symbol = NULL;
       
  8638 
       
  8639         {
       
  8640             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8641             symbol_c *IN_param_value = &this->default_variable_name;
       
  8642         
       
  8643             symbol_c *IN_type_symbol = param_data_type;
       
  8644             last_type_symbol = param_data_type;
       
  8645             
       
  8646             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8647             {
       
  8648         
       
  8649                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  8650                 s4o.print("(");
       
  8651                 return_type_symbol->accept(*this);
       
  8652                 s4o.print(")__time_to_real(");
       
  8653                 IN_param_value->accept(*this);
       
  8654                 s4o.print(")");
       
  8655                 return NULL;
       
  8656                 
       
  8657             }
       
  8658             
       
  8659             ERROR;
       
  8660         }
       
  8661         
       
  8662     }/*function_dt_to_real*/
       
  8663     break;
       
  8664 
       
  8665 /****
       
  8666  *DT_TO_LREAL
       
  8667  */
       
  8668     case function_dt_to_lreal :
       
  8669     {
       
  8670         symbol_c *last_type_symbol = NULL;
       
  8671 
       
  8672         {
       
  8673             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8674             symbol_c *IN_param_value = &this->default_variable_name;
       
  8675         
       
  8676             symbol_c *IN_type_symbol = param_data_type;
       
  8677             last_type_symbol = param_data_type;
       
  8678             
       
  8679             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8680             {
       
  8681         
       
  8682                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  8683                 s4o.print("(");
       
  8684                 return_type_symbol->accept(*this);
       
  8685                 s4o.print(")__time_to_real(");
       
  8686                 IN_param_value->accept(*this);
       
  8687                 s4o.print(")");
       
  8688                 return NULL;
       
  8689                 
       
  8690             }
       
  8691             
       
  8692             ERROR;
       
  8693         }
       
  8694         
       
  8695     }/*function_dt_to_lreal*/
       
  8696     break;
       
  8697 
       
  8698 /****
       
  8699  *DT_TO_STRING
       
  8700  */
       
  8701     case function_dt_to_string :
       
  8702     {
       
  8703         symbol_c *last_type_symbol = NULL;
       
  8704 
       
  8705         {
       
  8706             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8707             symbol_c *IN_param_value = &this->default_variable_name;
       
  8708         
       
  8709             symbol_c *IN_type_symbol = param_data_type;
       
  8710             last_type_symbol = param_data_type;
       
  8711             
       
  8712             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8713             {
       
  8714         
       
  8715                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  8716                 s4o.print("(");
       
  8717                 return_type_symbol->accept(*this);
       
  8718                 s4o.print(")__dt_to_string(");
       
  8719                 IN_param_value->accept(*this);
       
  8720                 s4o.print(")");
       
  8721                 return NULL;
       
  8722                 
       
  8723             }
       
  8724             
       
  8725             ERROR;
       
  8726         }
       
  8727         
       
  8728     }/*function_dt_to_string*/
       
  8729     break;
       
  8730 
       
  8731 /****
       
  8732  *DT_TO_BYTE
       
  8733  */
       
  8734     case function_dt_to_byte :
       
  8735     {
       
  8736         symbol_c *last_type_symbol = NULL;
       
  8737 
       
  8738         {
       
  8739             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8740             symbol_c *IN_param_value = &this->default_variable_name;
       
  8741         
       
  8742             symbol_c *IN_type_symbol = param_data_type;
       
  8743             last_type_symbol = param_data_type;
       
  8744             
       
  8745             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8746             {
       
  8747         
       
  8748                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  8749                 s4o.print("(");
       
  8750                 return_type_symbol->accept(*this);
       
  8751                 s4o.print(")__time_to_int(");
       
  8752                 IN_param_value->accept(*this);
       
  8753                 s4o.print(")");
       
  8754                 return NULL;
       
  8755                 
       
  8756             }
       
  8757             
       
  8758             ERROR;
       
  8759         }
       
  8760         
       
  8761     }/*function_dt_to_byte*/
       
  8762     break;
       
  8763 
       
  8764 /****
       
  8765  *DT_TO_WORD
       
  8766  */
       
  8767     case function_dt_to_word :
       
  8768     {
       
  8769         symbol_c *last_type_symbol = NULL;
       
  8770 
       
  8771         {
       
  8772             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8773             symbol_c *IN_param_value = &this->default_variable_name;
       
  8774         
       
  8775             symbol_c *IN_type_symbol = param_data_type;
       
  8776             last_type_symbol = param_data_type;
       
  8777             
       
  8778             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8779             {
       
  8780         
       
  8781                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  8782                 s4o.print("(");
       
  8783                 return_type_symbol->accept(*this);
       
  8784                 s4o.print(")__time_to_int(");
       
  8785                 IN_param_value->accept(*this);
       
  8786                 s4o.print(")");
       
  8787                 return NULL;
       
  8788                 
       
  8789             }
       
  8790             
       
  8791             ERROR;
       
  8792         }
       
  8793         
       
  8794     }/*function_dt_to_word*/
       
  8795     break;
       
  8796 
       
  8797 /****
       
  8798  *DT_TO_DWORD
       
  8799  */
       
  8800     case function_dt_to_dword :
       
  8801     {
       
  8802         symbol_c *last_type_symbol = NULL;
       
  8803 
       
  8804         {
       
  8805             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8806             symbol_c *IN_param_value = &this->default_variable_name;
       
  8807         
       
  8808             symbol_c *IN_type_symbol = param_data_type;
       
  8809             last_type_symbol = param_data_type;
       
  8810             
       
  8811             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8812             {
       
  8813         
       
  8814                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  8815                 s4o.print("(");
       
  8816                 return_type_symbol->accept(*this);
       
  8817                 s4o.print(")__time_to_int(");
       
  8818                 IN_param_value->accept(*this);
       
  8819                 s4o.print(")");
       
  8820                 return NULL;
       
  8821                 
       
  8822             }
       
  8823             
       
  8824             ERROR;
       
  8825         }
       
  8826         
       
  8827     }/*function_dt_to_dword*/
       
  8828     break;
       
  8829 
       
  8830 /****
       
  8831  *DT_TO_LWORD
       
  8832  */
       
  8833     case function_dt_to_lword :
       
  8834     {
       
  8835         symbol_c *last_type_symbol = NULL;
       
  8836 
       
  8837         {
       
  8838             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8839             symbol_c *IN_param_value = &this->default_variable_name;
       
  8840         
       
  8841             symbol_c *IN_type_symbol = param_data_type;
       
  8842             last_type_symbol = param_data_type;
       
  8843             
       
  8844             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
  8845             {
       
  8846         
       
  8847                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  8848                 s4o.print("(");
       
  8849                 return_type_symbol->accept(*this);
       
  8850                 s4o.print(")__time_to_int(");
       
  8851                 IN_param_value->accept(*this);
       
  8852                 s4o.print(")");
       
  8853                 return NULL;
       
  8854                 
       
  8855             }
       
  8856             
       
  8857             ERROR;
       
  8858         }
       
  8859         
       
  8860     }/*function_dt_to_lword*/
       
  8861     break;
       
  8862 
       
  8863 /****
       
  8864  *STRING_TO_BOOL
       
  8865  */
       
  8866     case function_string_to_bool :
       
  8867     {
       
  8868         symbol_c *last_type_symbol = NULL;
       
  8869 
       
  8870         {
       
  8871             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8872             symbol_c *IN_param_value = &this->default_variable_name;
       
  8873         
       
  8874             symbol_c *IN_type_symbol = param_data_type;
       
  8875             last_type_symbol = param_data_type;
       
  8876             
       
  8877             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  8878             {
       
  8879         
       
  8880                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  8881                 s4o.print("(");
       
  8882                 return_type_symbol->accept(*this);
       
  8883                 s4o.print(")__string_to_bool(");
       
  8884                 IN_param_value->accept(*this);
       
  8885                 s4o.print(")");
       
  8886                 return NULL;
       
  8887                 
       
  8888             }
       
  8889             
       
  8890             ERROR;
       
  8891         }
       
  8892         
       
  8893     }/*function_string_to_bool*/
       
  8894     break;
       
  8895 
       
  8896 /****
       
  8897  *STRING_TO_SINT
       
  8898  */
       
  8899     case function_string_to_sint :
       
  8900     {
       
  8901         symbol_c *last_type_symbol = NULL;
       
  8902 
       
  8903         {
       
  8904             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8905             symbol_c *IN_param_value = &this->default_variable_name;
       
  8906         
       
  8907             symbol_c *IN_type_symbol = param_data_type;
       
  8908             last_type_symbol = param_data_type;
       
  8909             
       
  8910             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  8911             {
       
  8912         
       
  8913                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  8914                 s4o.print("(");
       
  8915                 return_type_symbol->accept(*this);
       
  8916                 s4o.print(")__string_to_sint(");
       
  8917                 IN_param_value->accept(*this);
       
  8918                 s4o.print(")");
       
  8919                 return NULL;
       
  8920                 
       
  8921             }
       
  8922             
       
  8923             ERROR;
       
  8924         }
       
  8925         
       
  8926     }/*function_string_to_sint*/
       
  8927     break;
       
  8928 
       
  8929 /****
       
  8930  *STRING_TO_INT
       
  8931  */
       
  8932     case function_string_to_int :
       
  8933     {
       
  8934         symbol_c *last_type_symbol = NULL;
       
  8935 
       
  8936         {
       
  8937             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8938             symbol_c *IN_param_value = &this->default_variable_name;
       
  8939         
       
  8940             symbol_c *IN_type_symbol = param_data_type;
       
  8941             last_type_symbol = param_data_type;
       
  8942             
       
  8943             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  8944             {
       
  8945         
       
  8946                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  8947                 s4o.print("(");
       
  8948                 return_type_symbol->accept(*this);
       
  8949                 s4o.print(")__string_to_sint(");
       
  8950                 IN_param_value->accept(*this);
       
  8951                 s4o.print(")");
       
  8952                 return NULL;
       
  8953                 
       
  8954             }
       
  8955             
       
  8956             ERROR;
       
  8957         }
       
  8958         
       
  8959     }/*function_string_to_int*/
       
  8960     break;
       
  8961 
       
  8962 /****
       
  8963  *STRING_TO_DINT
       
  8964  */
       
  8965     case function_string_to_dint :
       
  8966     {
       
  8967         symbol_c *last_type_symbol = NULL;
       
  8968 
       
  8969         {
       
  8970             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8971             symbol_c *IN_param_value = &this->default_variable_name;
       
  8972         
       
  8973             symbol_c *IN_type_symbol = param_data_type;
       
  8974             last_type_symbol = param_data_type;
       
  8975             
       
  8976             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  8977             {
       
  8978         
       
  8979                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  8980                 s4o.print("(");
       
  8981                 return_type_symbol->accept(*this);
       
  8982                 s4o.print(")__string_to_sint(");
       
  8983                 IN_param_value->accept(*this);
       
  8984                 s4o.print(")");
       
  8985                 return NULL;
       
  8986                 
       
  8987             }
       
  8988             
       
  8989             ERROR;
       
  8990         }
       
  8991         
       
  8992     }/*function_string_to_dint*/
       
  8993     break;
       
  8994 
       
  8995 /****
       
  8996  *STRING_TO_LINT
       
  8997  */
       
  8998     case function_string_to_lint :
       
  8999     {
       
  9000         symbol_c *last_type_symbol = NULL;
       
  9001 
       
  9002         {
       
  9003             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9004             symbol_c *IN_param_value = &this->default_variable_name;
       
  9005         
       
  9006             symbol_c *IN_type_symbol = param_data_type;
       
  9007             last_type_symbol = param_data_type;
       
  9008             
       
  9009             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9010             {
       
  9011         
       
  9012                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  9013                 s4o.print("(");
       
  9014                 return_type_symbol->accept(*this);
       
  9015                 s4o.print(")__string_to_sint(");
       
  9016                 IN_param_value->accept(*this);
       
  9017                 s4o.print(")");
       
  9018                 return NULL;
       
  9019                 
       
  9020             }
       
  9021             
       
  9022             ERROR;
       
  9023         }
       
  9024         
       
  9025     }/*function_string_to_lint*/
       
  9026     break;
       
  9027 
       
  9028 /****
       
  9029  *STRING_TO_USINT
       
  9030  */
       
  9031     case function_string_to_usint :
       
  9032     {
       
  9033         symbol_c *last_type_symbol = NULL;
       
  9034 
       
  9035         {
       
  9036             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9037             symbol_c *IN_param_value = &this->default_variable_name;
       
  9038         
       
  9039             symbol_c *IN_type_symbol = param_data_type;
       
  9040             last_type_symbol = param_data_type;
       
  9041             
       
  9042             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9043             {
       
  9044         
       
  9045                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  9046                 s4o.print("(");
       
  9047                 return_type_symbol->accept(*this);
       
  9048                 s4o.print(")__string_to_uint(");
       
  9049                 IN_param_value->accept(*this);
       
  9050                 s4o.print(")");
       
  9051                 return NULL;
       
  9052                 
       
  9053             }
       
  9054             
       
  9055             ERROR;
       
  9056         }
       
  9057         
       
  9058     }/*function_string_to_usint*/
       
  9059     break;
       
  9060 
       
  9061 /****
       
  9062  *STRING_TO_UINT
       
  9063  */
       
  9064     case function_string_to_uint :
       
  9065     {
       
  9066         symbol_c *last_type_symbol = NULL;
       
  9067 
       
  9068         {
       
  9069             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9070             symbol_c *IN_param_value = &this->default_variable_name;
       
  9071         
       
  9072             symbol_c *IN_type_symbol = param_data_type;
       
  9073             last_type_symbol = param_data_type;
       
  9074             
       
  9075             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9076             {
       
  9077         
       
  9078                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  9079                 s4o.print("(");
       
  9080                 return_type_symbol->accept(*this);
       
  9081                 s4o.print(")__string_to_uint(");
       
  9082                 IN_param_value->accept(*this);
       
  9083                 s4o.print(")");
       
  9084                 return NULL;
       
  9085                 
       
  9086             }
       
  9087             
       
  9088             ERROR;
       
  9089         }
       
  9090         
       
  9091     }/*function_string_to_uint*/
       
  9092     break;
       
  9093 
       
  9094 /****
       
  9095  *STRING_TO_UDINT
       
  9096  */
       
  9097     case function_string_to_udint :
       
  9098     {
       
  9099         symbol_c *last_type_symbol = NULL;
       
  9100 
       
  9101         {
       
  9102             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9103             symbol_c *IN_param_value = &this->default_variable_name;
       
  9104         
       
  9105             symbol_c *IN_type_symbol = param_data_type;
       
  9106             last_type_symbol = param_data_type;
       
  9107             
       
  9108             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9109             {
       
  9110         
       
  9111                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  9112                 s4o.print("(");
       
  9113                 return_type_symbol->accept(*this);
       
  9114                 s4o.print(")__string_to_uint(");
       
  9115                 IN_param_value->accept(*this);
       
  9116                 s4o.print(")");
       
  9117                 return NULL;
       
  9118                 
       
  9119             }
       
  9120             
       
  9121             ERROR;
       
  9122         }
       
  9123         
       
  9124     }/*function_string_to_udint*/
       
  9125     break;
       
  9126 
       
  9127 /****
       
  9128  *STRING_TO_ULINT
       
  9129  */
       
  9130     case function_string_to_ulint :
       
  9131     {
       
  9132         symbol_c *last_type_symbol = NULL;
       
  9133 
       
  9134         {
       
  9135             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9136             symbol_c *IN_param_value = &this->default_variable_name;
       
  9137         
       
  9138             symbol_c *IN_type_symbol = param_data_type;
       
  9139             last_type_symbol = param_data_type;
       
  9140             
       
  9141             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9142             {
       
  9143         
       
  9144                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  9145                 s4o.print("(");
       
  9146                 return_type_symbol->accept(*this);
       
  9147                 s4o.print(")__string_to_uint(");
       
  9148                 IN_param_value->accept(*this);
       
  9149                 s4o.print(")");
       
  9150                 return NULL;
       
  9151                 
       
  9152             }
       
  9153             
       
  9154             ERROR;
       
  9155         }
       
  9156         
       
  9157     }/*function_string_to_ulint*/
       
  9158     break;
       
  9159 
       
  9160 /****
       
  9161  *STRING_TO_REAL
       
  9162  */
       
  9163     case function_string_to_real :
       
  9164     {
       
  9165         symbol_c *last_type_symbol = NULL;
       
  9166 
       
  9167         {
       
  9168             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9169             symbol_c *IN_param_value = &this->default_variable_name;
       
  9170         
       
  9171             symbol_c *IN_type_symbol = param_data_type;
       
  9172             last_type_symbol = param_data_type;
       
  9173             
       
  9174             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9175             {
       
  9176         
       
  9177                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  9178                 s4o.print("(");
       
  9179                 return_type_symbol->accept(*this);
       
  9180                 s4o.print(")__string_to_real(");
       
  9181                 IN_param_value->accept(*this);
       
  9182                 s4o.print(")");
       
  9183                 return NULL;
       
  9184                 
       
  9185             }
       
  9186             
       
  9187             ERROR;
       
  9188         }
       
  9189         
       
  9190     }/*function_string_to_real*/
       
  9191     break;
       
  9192 
       
  9193 /****
       
  9194  *STRING_TO_LREAL
       
  9195  */
       
  9196     case function_string_to_lreal :
       
  9197     {
       
  9198         symbol_c *last_type_symbol = NULL;
       
  9199 
       
  9200         {
       
  9201             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9202             symbol_c *IN_param_value = &this->default_variable_name;
       
  9203         
       
  9204             symbol_c *IN_type_symbol = param_data_type;
       
  9205             last_type_symbol = param_data_type;
       
  9206             
       
  9207             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9208             {
       
  9209         
       
  9210                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  9211                 s4o.print("(");
       
  9212                 return_type_symbol->accept(*this);
       
  9213                 s4o.print(")__string_to_real(");
       
  9214                 IN_param_value->accept(*this);
       
  9215                 s4o.print(")");
       
  9216                 return NULL;
       
  9217                 
       
  9218             }
       
  9219             
       
  9220             ERROR;
       
  9221         }
       
  9222         
       
  9223     }/*function_string_to_lreal*/
       
  9224     break;
       
  9225 
       
  9226 /****
       
  9227  *STRING_TO_TIME
       
  9228  */
       
  9229     case function_string_to_time :
       
  9230     {
       
  9231         symbol_c *last_type_symbol = NULL;
       
  9232 
       
  9233         {
       
  9234             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9235             symbol_c *IN_param_value = &this->default_variable_name;
       
  9236         
       
  9237             symbol_c *IN_type_symbol = param_data_type;
       
  9238             last_type_symbol = param_data_type;
       
  9239             
       
  9240             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9241             {
       
  9242         
       
  9243                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  9244                 s4o.print("(");
       
  9245                 return_type_symbol->accept(*this);
       
  9246                 s4o.print(")__string_to_time(");
       
  9247                 IN_param_value->accept(*this);
       
  9248                 s4o.print(")");
       
  9249                 return NULL;
       
  9250                 
       
  9251             }
       
  9252             
       
  9253             ERROR;
       
  9254         }
       
  9255         
       
  9256     }/*function_string_to_time*/
       
  9257     break;
       
  9258 
       
  9259 /****
       
  9260  *STRING_TO_DATE
       
  9261  */
       
  9262     case function_string_to_date :
       
  9263     {
       
  9264         symbol_c *last_type_symbol = NULL;
       
  9265 
       
  9266         {
       
  9267             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9268             symbol_c *IN_param_value = &this->default_variable_name;
       
  9269         
       
  9270             symbol_c *IN_type_symbol = param_data_type;
       
  9271             last_type_symbol = param_data_type;
       
  9272             
       
  9273             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
   537             {
  9274             {
   538         
  9275         
   539                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
  9276                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
   540                 s4o.print("(");
  9277                 s4o.print("(");
   541                 return_type_symbol->accept(*this);
  9278                 return_type_symbol->accept(*this);
   542                 s4o.print(")__real_to_time(");
  9279                 s4o.print(")__string_to_time(");
   543                 IN_param_value->accept(*this);
  9280                 IN_param_value->accept(*this);
   544                 s4o.print(")");
  9281                 s4o.print(")");
   545                 return NULL;
  9282                 return NULL;
   546                 
  9283                 
   547             }
  9284             }
   548             
  9285             
   549             ERROR;
  9286             ERROR;
   550         }
  9287         }
   551         
  9288         
   552     }/*function_real_to_date*/
  9289     }/*function_string_to_date*/
   553     break;
  9290     break;
   554 
  9291 
   555 /****
  9292 /****
   556  *REAL_TO_TOD
  9293  *STRING_TO_TOD
   557  */
  9294  */
   558     case function_real_to_tod :
  9295     case function_string_to_tod :
   559     {
  9296     {
   560         symbol_c *last_type_symbol = NULL;
  9297         symbol_c *last_type_symbol = NULL;
   561 
  9298 
   562         {
  9299         {
   563             /* Get the value from a foo(<param_name> = <param_value>) style call */
  9300             /* Get the value from a foo(<param_name> = <param_value>) style call */
   564             symbol_c *IN_param_value = &this->default_variable_name;
  9301             symbol_c *IN_param_value = &this->default_variable_name;
   565         
  9302         
   566             symbol_c *IN_type_symbol = param_data_type;
  9303             symbol_c *IN_type_symbol = param_data_type;
   567             last_type_symbol = param_data_type;
  9304             last_type_symbol = param_data_type;
   568             
  9305             
   569             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  9306             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
   570             {
  9307             {
   571         
  9308         
   572                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
  9309                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
   573                 s4o.print("(");
  9310                 s4o.print("(");
   574                 return_type_symbol->accept(*this);
  9311                 return_type_symbol->accept(*this);
   575                 s4o.print(")__real_to_time(");
  9312                 s4o.print(")__string_to_time(");
   576                 IN_param_value->accept(*this);
  9313                 IN_param_value->accept(*this);
   577                 s4o.print(")");
  9314                 s4o.print(")");
   578                 return NULL;
  9315                 return NULL;
   579                 
  9316                 
   580             }
  9317             }
   581             
  9318             
   582             ERROR;
  9319             ERROR;
   583         }
  9320         }
   584         
  9321         
   585     }/*function_real_to_tod*/
  9322     }/*function_string_to_tod*/
   586     break;
  9323     break;
   587 
  9324 
   588 /****
  9325 /****
   589  *REAL_TO_DT
  9326  *STRING_TO_DT
   590  */
  9327  */
   591     case function_real_to_dt :
  9328     case function_string_to_dt :
   592     {
  9329     {
   593         symbol_c *last_type_symbol = NULL;
  9330         symbol_c *last_type_symbol = NULL;
   594 
  9331 
   595         {
  9332         {
   596             /* Get the value from a foo(<param_name> = <param_value>) style call */
  9333             /* Get the value from a foo(<param_name> = <param_value>) style call */
   597             symbol_c *IN_param_value = &this->default_variable_name;
  9334             symbol_c *IN_param_value = &this->default_variable_name;
   598         
  9335         
   599             symbol_c *IN_type_symbol = param_data_type;
  9336             symbol_c *IN_type_symbol = param_data_type;
   600             last_type_symbol = param_data_type;
  9337             last_type_symbol = param_data_type;
   601             
  9338             
   602             if (typeid(*last_type_symbol) == typeid(real_type_name_c))
  9339             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
   603             {
  9340             {
   604         
  9341         
   605                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
  9342                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
   606                 s4o.print("(");
  9343                 s4o.print("(");
   607                 return_type_symbol->accept(*this);
  9344                 return_type_symbol->accept(*this);
   608                 s4o.print(")__real_to_time(");
  9345                 s4o.print(")__string_to_time(");
   609                 IN_param_value->accept(*this);
  9346                 IN_param_value->accept(*this);
   610                 s4o.print(")");
  9347                 s4o.print(")");
   611                 return NULL;
  9348                 return NULL;
   612                 
  9349                 
   613             }
  9350             }
   614             
  9351             
   615             ERROR;
  9352             ERROR;
   616         }
  9353         }
   617         
  9354         
   618     }/*function_real_to_dt*/
  9355     }/*function_string_to_dt*/
   619     break;
  9356     break;
   620 
  9357 
   621 /****
  9358 /****
   622  *LREAL_TO_REAL
  9359  *STRING_TO_BYTE
   623  */
  9360  */
   624     case function_lreal_to_real :
  9361     case function_string_to_byte :
   625     {
  9362     {
   626         symbol_c *last_type_symbol = NULL;
  9363         symbol_c *last_type_symbol = NULL;
   627 
  9364 
   628         {
  9365         {
   629             /* Get the value from a foo(<param_name> = <param_value>) style call */
  9366             /* Get the value from a foo(<param_name> = <param_value>) style call */
   630             symbol_c *IN_param_value = &this->default_variable_name;
  9367             symbol_c *IN_param_value = &this->default_variable_name;
   631         
  9368         
   632             symbol_c *IN_type_symbol = param_data_type;
  9369             symbol_c *IN_type_symbol = param_data_type;
   633             last_type_symbol = param_data_type;
  9370             last_type_symbol = param_data_type;
   634             
  9371             
   635             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
  9372             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9373             {
       
  9374         
       
  9375                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  9376                 s4o.print("(");
       
  9377                 return_type_symbol->accept(*this);
       
  9378                 s4o.print(")__string_to_bit(");
       
  9379                 IN_param_value->accept(*this);
       
  9380                 s4o.print(")");
       
  9381                 return NULL;
       
  9382                 
       
  9383             }
       
  9384             
       
  9385             ERROR;
       
  9386         }
       
  9387         
       
  9388     }/*function_string_to_byte*/
       
  9389     break;
       
  9390 
       
  9391 /****
       
  9392  *STRING_TO_WORD
       
  9393  */
       
  9394     case function_string_to_word :
       
  9395     {
       
  9396         symbol_c *last_type_symbol = NULL;
       
  9397 
       
  9398         {
       
  9399             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9400             symbol_c *IN_param_value = &this->default_variable_name;
       
  9401         
       
  9402             symbol_c *IN_type_symbol = param_data_type;
       
  9403             last_type_symbol = param_data_type;
       
  9404             
       
  9405             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9406             {
       
  9407         
       
  9408                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  9409                 s4o.print("(");
       
  9410                 return_type_symbol->accept(*this);
       
  9411                 s4o.print(")__string_to_bit(");
       
  9412                 IN_param_value->accept(*this);
       
  9413                 s4o.print(")");
       
  9414                 return NULL;
       
  9415                 
       
  9416             }
       
  9417             
       
  9418             ERROR;
       
  9419         }
       
  9420         
       
  9421     }/*function_string_to_word*/
       
  9422     break;
       
  9423 
       
  9424 /****
       
  9425  *STRING_TO_DWORD
       
  9426  */
       
  9427     case function_string_to_dword :
       
  9428     {
       
  9429         symbol_c *last_type_symbol = NULL;
       
  9430 
       
  9431         {
       
  9432             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9433             symbol_c *IN_param_value = &this->default_variable_name;
       
  9434         
       
  9435             symbol_c *IN_type_symbol = param_data_type;
       
  9436             last_type_symbol = param_data_type;
       
  9437             
       
  9438             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9439             {
       
  9440         
       
  9441                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  9442                 s4o.print("(");
       
  9443                 return_type_symbol->accept(*this);
       
  9444                 s4o.print(")__string_to_bit(");
       
  9445                 IN_param_value->accept(*this);
       
  9446                 s4o.print(")");
       
  9447                 return NULL;
       
  9448                 
       
  9449             }
       
  9450             
       
  9451             ERROR;
       
  9452         }
       
  9453         
       
  9454     }/*function_string_to_dword*/
       
  9455     break;
       
  9456 
       
  9457 /****
       
  9458  *STRING_TO_LWORD
       
  9459  */
       
  9460     case function_string_to_lword :
       
  9461     {
       
  9462         symbol_c *last_type_symbol = NULL;
       
  9463 
       
  9464         {
       
  9465             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9466             symbol_c *IN_param_value = &this->default_variable_name;
       
  9467         
       
  9468             symbol_c *IN_type_symbol = param_data_type;
       
  9469             last_type_symbol = param_data_type;
       
  9470             
       
  9471             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9472             {
       
  9473         
       
  9474                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  9475                 s4o.print("(");
       
  9476                 return_type_symbol->accept(*this);
       
  9477                 s4o.print(")__string_to_bit(");
       
  9478                 IN_param_value->accept(*this);
       
  9479                 s4o.print(")");
       
  9480                 return NULL;
       
  9481                 
       
  9482             }
       
  9483             
       
  9484             ERROR;
       
  9485         }
       
  9486         
       
  9487     }/*function_string_to_lword*/
       
  9488     break;
       
  9489 
       
  9490 /****
       
  9491  *BYTE_TO_BOOL
       
  9492  */
       
  9493     case function_byte_to_bool :
       
  9494     {
       
  9495         symbol_c *last_type_symbol = NULL;
       
  9496 
       
  9497         {
       
  9498             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9499             symbol_c *IN_param_value = &this->default_variable_name;
       
  9500         
       
  9501             symbol_c *IN_type_symbol = param_data_type;
       
  9502             last_type_symbol = param_data_type;
       
  9503             
       
  9504             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9505             {
       
  9506         
       
  9507                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  9508                 s4o.print("(");
       
  9509                 return_type_symbol->accept(*this);
       
  9510                 s4o.print(")");
       
  9511                 IN_param_value->accept(*this);
       
  9512                 return NULL;
       
  9513                 
       
  9514             }
       
  9515             
       
  9516             ERROR;
       
  9517         }
       
  9518         
       
  9519     }/*function_byte_to_bool*/
       
  9520     break;
       
  9521 
       
  9522 /****
       
  9523  *BYTE_TO_SINT
       
  9524  */
       
  9525     case function_byte_to_sint :
       
  9526     {
       
  9527         symbol_c *last_type_symbol = NULL;
       
  9528 
       
  9529         {
       
  9530             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9531             symbol_c *IN_param_value = &this->default_variable_name;
       
  9532         
       
  9533             symbol_c *IN_type_symbol = param_data_type;
       
  9534             last_type_symbol = param_data_type;
       
  9535             
       
  9536             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9537             {
       
  9538         
       
  9539                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  9540                 s4o.print("(");
       
  9541                 return_type_symbol->accept(*this);
       
  9542                 s4o.print(")");
       
  9543                 IN_param_value->accept(*this);
       
  9544                 return NULL;
       
  9545                 
       
  9546             }
       
  9547             
       
  9548             ERROR;
       
  9549         }
       
  9550         
       
  9551     }/*function_byte_to_sint*/
       
  9552     break;
       
  9553 
       
  9554 /****
       
  9555  *BYTE_TO_INT
       
  9556  */
       
  9557     case function_byte_to_int :
       
  9558     {
       
  9559         symbol_c *last_type_symbol = NULL;
       
  9560 
       
  9561         {
       
  9562             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9563             symbol_c *IN_param_value = &this->default_variable_name;
       
  9564         
       
  9565             symbol_c *IN_type_symbol = param_data_type;
       
  9566             last_type_symbol = param_data_type;
       
  9567             
       
  9568             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9569             {
       
  9570         
       
  9571                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  9572                 s4o.print("(");
       
  9573                 return_type_symbol->accept(*this);
       
  9574                 s4o.print(")");
       
  9575                 IN_param_value->accept(*this);
       
  9576                 return NULL;
       
  9577                 
       
  9578             }
       
  9579             
       
  9580             ERROR;
       
  9581         }
       
  9582         
       
  9583     }/*function_byte_to_int*/
       
  9584     break;
       
  9585 
       
  9586 /****
       
  9587  *BYTE_TO_DINT
       
  9588  */
       
  9589     case function_byte_to_dint :
       
  9590     {
       
  9591         symbol_c *last_type_symbol = NULL;
       
  9592 
       
  9593         {
       
  9594             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9595             symbol_c *IN_param_value = &this->default_variable_name;
       
  9596         
       
  9597             symbol_c *IN_type_symbol = param_data_type;
       
  9598             last_type_symbol = param_data_type;
       
  9599             
       
  9600             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9601             {
       
  9602         
       
  9603                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  9604                 s4o.print("(");
       
  9605                 return_type_symbol->accept(*this);
       
  9606                 s4o.print(")");
       
  9607                 IN_param_value->accept(*this);
       
  9608                 return NULL;
       
  9609                 
       
  9610             }
       
  9611             
       
  9612             ERROR;
       
  9613         }
       
  9614         
       
  9615     }/*function_byte_to_dint*/
       
  9616     break;
       
  9617 
       
  9618 /****
       
  9619  *BYTE_TO_LINT
       
  9620  */
       
  9621     case function_byte_to_lint :
       
  9622     {
       
  9623         symbol_c *last_type_symbol = NULL;
       
  9624 
       
  9625         {
       
  9626             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9627             symbol_c *IN_param_value = &this->default_variable_name;
       
  9628         
       
  9629             symbol_c *IN_type_symbol = param_data_type;
       
  9630             last_type_symbol = param_data_type;
       
  9631             
       
  9632             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9633             {
       
  9634         
       
  9635                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  9636                 s4o.print("(");
       
  9637                 return_type_symbol->accept(*this);
       
  9638                 s4o.print(")");
       
  9639                 IN_param_value->accept(*this);
       
  9640                 return NULL;
       
  9641                 
       
  9642             }
       
  9643             
       
  9644             ERROR;
       
  9645         }
       
  9646         
       
  9647     }/*function_byte_to_lint*/
       
  9648     break;
       
  9649 
       
  9650 /****
       
  9651  *BYTE_TO_USINT
       
  9652  */
       
  9653     case function_byte_to_usint :
       
  9654     {
       
  9655         symbol_c *last_type_symbol = NULL;
       
  9656 
       
  9657         {
       
  9658             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9659             symbol_c *IN_param_value = &this->default_variable_name;
       
  9660         
       
  9661             symbol_c *IN_type_symbol = param_data_type;
       
  9662             last_type_symbol = param_data_type;
       
  9663             
       
  9664             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9665             {
       
  9666         
       
  9667                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  9668                 s4o.print("(");
       
  9669                 return_type_symbol->accept(*this);
       
  9670                 s4o.print(")");
       
  9671                 IN_param_value->accept(*this);
       
  9672                 return NULL;
       
  9673                 
       
  9674             }
       
  9675             
       
  9676             ERROR;
       
  9677         }
       
  9678         
       
  9679     }/*function_byte_to_usint*/
       
  9680     break;
       
  9681 
       
  9682 /****
       
  9683  *BYTE_TO_UINT
       
  9684  */
       
  9685     case function_byte_to_uint :
       
  9686     {
       
  9687         symbol_c *last_type_symbol = NULL;
       
  9688 
       
  9689         {
       
  9690             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9691             symbol_c *IN_param_value = &this->default_variable_name;
       
  9692         
       
  9693             symbol_c *IN_type_symbol = param_data_type;
       
  9694             last_type_symbol = param_data_type;
       
  9695             
       
  9696             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9697             {
       
  9698         
       
  9699                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  9700                 s4o.print("(");
       
  9701                 return_type_symbol->accept(*this);
       
  9702                 s4o.print(")");
       
  9703                 IN_param_value->accept(*this);
       
  9704                 return NULL;
       
  9705                 
       
  9706             }
       
  9707             
       
  9708             ERROR;
       
  9709         }
       
  9710         
       
  9711     }/*function_byte_to_uint*/
       
  9712     break;
       
  9713 
       
  9714 /****
       
  9715  *BYTE_TO_UDINT
       
  9716  */
       
  9717     case function_byte_to_udint :
       
  9718     {
       
  9719         symbol_c *last_type_symbol = NULL;
       
  9720 
       
  9721         {
       
  9722             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9723             symbol_c *IN_param_value = &this->default_variable_name;
       
  9724         
       
  9725             symbol_c *IN_type_symbol = param_data_type;
       
  9726             last_type_symbol = param_data_type;
       
  9727             
       
  9728             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9729             {
       
  9730         
       
  9731                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  9732                 s4o.print("(");
       
  9733                 return_type_symbol->accept(*this);
       
  9734                 s4o.print(")");
       
  9735                 IN_param_value->accept(*this);
       
  9736                 return NULL;
       
  9737                 
       
  9738             }
       
  9739             
       
  9740             ERROR;
       
  9741         }
       
  9742         
       
  9743     }/*function_byte_to_udint*/
       
  9744     break;
       
  9745 
       
  9746 /****
       
  9747  *BYTE_TO_ULINT
       
  9748  */
       
  9749     case function_byte_to_ulint :
       
  9750     {
       
  9751         symbol_c *last_type_symbol = NULL;
       
  9752 
       
  9753         {
       
  9754             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9755             symbol_c *IN_param_value = &this->default_variable_name;
       
  9756         
       
  9757             symbol_c *IN_type_symbol = param_data_type;
       
  9758             last_type_symbol = param_data_type;
       
  9759             
       
  9760             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9761             {
       
  9762         
       
  9763                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  9764                 s4o.print("(");
       
  9765                 return_type_symbol->accept(*this);
       
  9766                 s4o.print(")");
       
  9767                 IN_param_value->accept(*this);
       
  9768                 return NULL;
       
  9769                 
       
  9770             }
       
  9771             
       
  9772             ERROR;
       
  9773         }
       
  9774         
       
  9775     }/*function_byte_to_ulint*/
       
  9776     break;
       
  9777 
       
  9778 /****
       
  9779  *BYTE_TO_REAL
       
  9780  */
       
  9781     case function_byte_to_real :
       
  9782     {
       
  9783         symbol_c *last_type_symbol = NULL;
       
  9784 
       
  9785         {
       
  9786             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9787             symbol_c *IN_param_value = &this->default_variable_name;
       
  9788         
       
  9789             symbol_c *IN_type_symbol = param_data_type;
       
  9790             last_type_symbol = param_data_type;
       
  9791             
       
  9792             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
   636             {
  9793             {
   637         
  9794         
   638                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
  9795                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
   639                 s4o.print("(");
  9796                 s4o.print("(");
   640                 return_type_symbol->accept(*this);
  9797                 return_type_symbol->accept(*this);
   645             }
  9802             }
   646             
  9803             
   647             ERROR;
  9804             ERROR;
   648         }
  9805         }
   649         
  9806         
   650     }/*function_lreal_to_real*/
  9807     }/*function_byte_to_real*/
   651     break;
  9808     break;
   652 
  9809 
   653 /****
  9810 /****
   654  *LREAL_TO_SINT
  9811  *BYTE_TO_LREAL
   655  */
  9812  */
   656     case function_lreal_to_sint :
  9813     case function_byte_to_lreal :
   657     {
  9814     {
   658         symbol_c *last_type_symbol = NULL;
  9815         symbol_c *last_type_symbol = NULL;
   659 
  9816 
   660         {
  9817         {
   661             /* Get the value from a foo(<param_name> = <param_value>) style call */
  9818             /* Get the value from a foo(<param_name> = <param_value>) style call */
   662             symbol_c *IN_param_value = &this->default_variable_name;
  9819             symbol_c *IN_param_value = &this->default_variable_name;
   663         
  9820         
   664             symbol_c *IN_type_symbol = param_data_type;
  9821             symbol_c *IN_type_symbol = param_data_type;
   665             last_type_symbol = param_data_type;
  9822             last_type_symbol = param_data_type;
   666             
  9823             
   667             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
  9824             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9825             {
       
  9826         
       
  9827                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  9828                 s4o.print("(");
       
  9829                 return_type_symbol->accept(*this);
       
  9830                 s4o.print(")");
       
  9831                 IN_param_value->accept(*this);
       
  9832                 return NULL;
       
  9833                 
       
  9834             }
       
  9835             
       
  9836             ERROR;
       
  9837         }
       
  9838         
       
  9839     }/*function_byte_to_lreal*/
       
  9840     break;
       
  9841 
       
  9842 /****
       
  9843  *BYTE_TO_TIME
       
  9844  */
       
  9845     case function_byte_to_time :
       
  9846     {
       
  9847         symbol_c *last_type_symbol = NULL;
       
  9848 
       
  9849         {
       
  9850             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9851             symbol_c *IN_param_value = &this->default_variable_name;
       
  9852         
       
  9853             symbol_c *IN_type_symbol = param_data_type;
       
  9854             last_type_symbol = param_data_type;
       
  9855             
       
  9856             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9857             {
       
  9858         
       
  9859                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  9860                 s4o.print("(");
       
  9861                 return_type_symbol->accept(*this);
       
  9862                 s4o.print(")__int_to_time(");
       
  9863                 IN_param_value->accept(*this);
       
  9864                 s4o.print(")");
       
  9865                 return NULL;
       
  9866                 
       
  9867             }
       
  9868             
       
  9869             ERROR;
       
  9870         }
       
  9871         
       
  9872     }/*function_byte_to_time*/
       
  9873     break;
       
  9874 
       
  9875 /****
       
  9876  *BYTE_TO_DATE
       
  9877  */
       
  9878     case function_byte_to_date :
       
  9879     {
       
  9880         symbol_c *last_type_symbol = NULL;
       
  9881 
       
  9882         {
       
  9883             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9884             symbol_c *IN_param_value = &this->default_variable_name;
       
  9885         
       
  9886             symbol_c *IN_type_symbol = param_data_type;
       
  9887             last_type_symbol = param_data_type;
       
  9888             
       
  9889             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9890             {
       
  9891         
       
  9892                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  9893                 s4o.print("(");
       
  9894                 return_type_symbol->accept(*this);
       
  9895                 s4o.print(")__int_to_time(");
       
  9896                 IN_param_value->accept(*this);
       
  9897                 s4o.print(")");
       
  9898                 return NULL;
       
  9899                 
       
  9900             }
       
  9901             
       
  9902             ERROR;
       
  9903         }
       
  9904         
       
  9905     }/*function_byte_to_date*/
       
  9906     break;
       
  9907 
       
  9908 /****
       
  9909  *BYTE_TO_TOD
       
  9910  */
       
  9911     case function_byte_to_tod :
       
  9912     {
       
  9913         symbol_c *last_type_symbol = NULL;
       
  9914 
       
  9915         {
       
  9916             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9917             symbol_c *IN_param_value = &this->default_variable_name;
       
  9918         
       
  9919             symbol_c *IN_type_symbol = param_data_type;
       
  9920             last_type_symbol = param_data_type;
       
  9921             
       
  9922             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9923             {
       
  9924         
       
  9925                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  9926                 s4o.print("(");
       
  9927                 return_type_symbol->accept(*this);
       
  9928                 s4o.print(")__int_to_time(");
       
  9929                 IN_param_value->accept(*this);
       
  9930                 s4o.print(")");
       
  9931                 return NULL;
       
  9932                 
       
  9933             }
       
  9934             
       
  9935             ERROR;
       
  9936         }
       
  9937         
       
  9938     }/*function_byte_to_tod*/
       
  9939     break;
       
  9940 
       
  9941 /****
       
  9942  *BYTE_TO_DT
       
  9943  */
       
  9944     case function_byte_to_dt :
       
  9945     {
       
  9946         symbol_c *last_type_symbol = NULL;
       
  9947 
       
  9948         {
       
  9949             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9950             symbol_c *IN_param_value = &this->default_variable_name;
       
  9951         
       
  9952             symbol_c *IN_type_symbol = param_data_type;
       
  9953             last_type_symbol = param_data_type;
       
  9954             
       
  9955             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9956             {
       
  9957         
       
  9958                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  9959                 s4o.print("(");
       
  9960                 return_type_symbol->accept(*this);
       
  9961                 s4o.print(")__int_to_time(");
       
  9962                 IN_param_value->accept(*this);
       
  9963                 s4o.print(")");
       
  9964                 return NULL;
       
  9965                 
       
  9966             }
       
  9967             
       
  9968             ERROR;
       
  9969         }
       
  9970         
       
  9971     }/*function_byte_to_dt*/
       
  9972     break;
       
  9973 
       
  9974 /****
       
  9975  *BYTE_TO_STRING
       
  9976  */
       
  9977     case function_byte_to_string :
       
  9978     {
       
  9979         symbol_c *last_type_symbol = NULL;
       
  9980 
       
  9981         {
       
  9982             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9983             symbol_c *IN_param_value = &this->default_variable_name;
       
  9984         
       
  9985             symbol_c *IN_type_symbol = param_data_type;
       
  9986             last_type_symbol = param_data_type;
       
  9987             
       
  9988             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  9989             {
       
  9990         
       
  9991                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  9992                 s4o.print("(");
       
  9993                 return_type_symbol->accept(*this);
       
  9994                 s4o.print(")__bit_to_string(");
       
  9995                 IN_param_value->accept(*this);
       
  9996                 s4o.print(")");
       
  9997                 return NULL;
       
  9998                 
       
  9999             }
       
 10000             
       
 10001             ERROR;
       
 10002         }
       
 10003         
       
 10004     }/*function_byte_to_string*/
       
 10005     break;
       
 10006 
       
 10007 /****
       
 10008  *BYTE_TO_WORD
       
 10009  */
       
 10010     case function_byte_to_word :
       
 10011     {
       
 10012         symbol_c *last_type_symbol = NULL;
       
 10013 
       
 10014         {
       
 10015             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10016             symbol_c *IN_param_value = &this->default_variable_name;
       
 10017         
       
 10018             symbol_c *IN_type_symbol = param_data_type;
       
 10019             last_type_symbol = param_data_type;
       
 10020             
       
 10021             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
 10022             {
       
 10023         
       
 10024                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
 10025                 s4o.print("(");
       
 10026                 return_type_symbol->accept(*this);
       
 10027                 s4o.print(")");
       
 10028                 IN_param_value->accept(*this);
       
 10029                 return NULL;
       
 10030                 
       
 10031             }
       
 10032             
       
 10033             ERROR;
       
 10034         }
       
 10035         
       
 10036     }/*function_byte_to_word*/
       
 10037     break;
       
 10038 
       
 10039 /****
       
 10040  *BYTE_TO_DWORD
       
 10041  */
       
 10042     case function_byte_to_dword :
       
 10043     {
       
 10044         symbol_c *last_type_symbol = NULL;
       
 10045 
       
 10046         {
       
 10047             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10048             symbol_c *IN_param_value = &this->default_variable_name;
       
 10049         
       
 10050             symbol_c *IN_type_symbol = param_data_type;
       
 10051             last_type_symbol = param_data_type;
       
 10052             
       
 10053             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
 10054             {
       
 10055         
       
 10056                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
 10057                 s4o.print("(");
       
 10058                 return_type_symbol->accept(*this);
       
 10059                 s4o.print(")");
       
 10060                 IN_param_value->accept(*this);
       
 10061                 return NULL;
       
 10062                 
       
 10063             }
       
 10064             
       
 10065             ERROR;
       
 10066         }
       
 10067         
       
 10068     }/*function_byte_to_dword*/
       
 10069     break;
       
 10070 
       
 10071 /****
       
 10072  *BYTE_TO_LWORD
       
 10073  */
       
 10074     case function_byte_to_lword :
       
 10075     {
       
 10076         symbol_c *last_type_symbol = NULL;
       
 10077 
       
 10078         {
       
 10079             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10080             symbol_c *IN_param_value = &this->default_variable_name;
       
 10081         
       
 10082             symbol_c *IN_type_symbol = param_data_type;
       
 10083             last_type_symbol = param_data_type;
       
 10084             
       
 10085             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
 10086             {
       
 10087         
       
 10088                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
 10089                 s4o.print("(");
       
 10090                 return_type_symbol->accept(*this);
       
 10091                 s4o.print(")");
       
 10092                 IN_param_value->accept(*this);
       
 10093                 return NULL;
       
 10094                 
       
 10095             }
       
 10096             
       
 10097             ERROR;
       
 10098         }
       
 10099         
       
 10100     }/*function_byte_to_lword*/
       
 10101     break;
       
 10102 
       
 10103 /****
       
 10104  *WORD_TO_BOOL
       
 10105  */
       
 10106     case function_word_to_bool :
       
 10107     {
       
 10108         symbol_c *last_type_symbol = NULL;
       
 10109 
       
 10110         {
       
 10111             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10112             symbol_c *IN_param_value = &this->default_variable_name;
       
 10113         
       
 10114             symbol_c *IN_type_symbol = param_data_type;
       
 10115             last_type_symbol = param_data_type;
       
 10116             
       
 10117             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
 10118             {
       
 10119         
       
 10120                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
 10121                 s4o.print("(");
       
 10122                 return_type_symbol->accept(*this);
       
 10123                 s4o.print(")");
       
 10124                 IN_param_value->accept(*this);
       
 10125                 return NULL;
       
 10126                 
       
 10127             }
       
 10128             
       
 10129             ERROR;
       
 10130         }
       
 10131         
       
 10132     }/*function_word_to_bool*/
       
 10133     break;
       
 10134 
       
 10135 /****
       
 10136  *WORD_TO_SINT
       
 10137  */
       
 10138     case function_word_to_sint :
       
 10139     {
       
 10140         symbol_c *last_type_symbol = NULL;
       
 10141 
       
 10142         {
       
 10143             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10144             symbol_c *IN_param_value = &this->default_variable_name;
       
 10145         
       
 10146             symbol_c *IN_type_symbol = param_data_type;
       
 10147             last_type_symbol = param_data_type;
       
 10148             
       
 10149             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
   668             {
 10150             {
   669         
 10151         
   670                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
 10152                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
   671                 s4o.print("(");
 10153                 s4o.print("(");
   672                 return_type_symbol->accept(*this);
 10154                 return_type_symbol->accept(*this);
   677             }
 10159             }
   678             
 10160             
   679             ERROR;
 10161             ERROR;
   680         }
 10162         }
   681         
 10163         
   682     }/*function_lreal_to_sint*/
 10164     }/*function_word_to_sint*/
   683     break;
 10165     break;
   684 
 10166 
   685 /****
 10167 /****
   686  *LREAL_TO_INT
 10168  *WORD_TO_INT
   687  */
 10169  */
   688     case function_lreal_to_int :
 10170     case function_word_to_int :
   689     {
 10171     {
   690         symbol_c *last_type_symbol = NULL;
 10172         symbol_c *last_type_symbol = NULL;
   691 
 10173 
   692         {
 10174         {
   693             /* Get the value from a foo(<param_name> = <param_value>) style call */
 10175             /* Get the value from a foo(<param_name> = <param_value>) style call */
   694             symbol_c *IN_param_value = &this->default_variable_name;
 10176             symbol_c *IN_param_value = &this->default_variable_name;
   695         
 10177         
   696             symbol_c *IN_type_symbol = param_data_type;
 10178             symbol_c *IN_type_symbol = param_data_type;
   697             last_type_symbol = param_data_type;
 10179             last_type_symbol = param_data_type;
   698             
 10180             
   699             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 10181             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
   700             {
 10182             {
   701         
 10183         
   702                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
 10184                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
   703                 s4o.print("(");
 10185                 s4o.print("(");
   704                 return_type_symbol->accept(*this);
 10186                 return_type_symbol->accept(*this);
   709             }
 10191             }
   710             
 10192             
   711             ERROR;
 10193             ERROR;
   712         }
 10194         }
   713         
 10195         
   714     }/*function_lreal_to_int*/
 10196     }/*function_word_to_int*/
   715     break;
 10197     break;
   716 
 10198 
   717 /****
 10199 /****
   718  *LREAL_TO_DINT
 10200  *WORD_TO_DINT
   719  */
 10201  */
   720     case function_lreal_to_dint :
 10202     case function_word_to_dint :
   721     {
 10203     {
   722         symbol_c *last_type_symbol = NULL;
 10204         symbol_c *last_type_symbol = NULL;
   723 
 10205 
   724         {
 10206         {
   725             /* Get the value from a foo(<param_name> = <param_value>) style call */
 10207             /* Get the value from a foo(<param_name> = <param_value>) style call */
   726             symbol_c *IN_param_value = &this->default_variable_name;
 10208             symbol_c *IN_param_value = &this->default_variable_name;
   727         
 10209         
   728             symbol_c *IN_type_symbol = param_data_type;
 10210             symbol_c *IN_type_symbol = param_data_type;
   729             last_type_symbol = param_data_type;
 10211             last_type_symbol = param_data_type;
   730             
 10212             
   731             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 10213             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
   732             {
 10214             {
   733         
 10215         
   734                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
 10216                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
   735                 s4o.print("(");
 10217                 s4o.print("(");
   736                 return_type_symbol->accept(*this);
 10218                 return_type_symbol->accept(*this);
   741             }
 10223             }
   742             
 10224             
   743             ERROR;
 10225             ERROR;
   744         }
 10226         }
   745         
 10227         
   746     }/*function_lreal_to_dint*/
 10228     }/*function_word_to_dint*/
   747     break;
 10229     break;
   748 
 10230 
   749 /****
 10231 /****
   750  *LREAL_TO_LINT
 10232  *WORD_TO_LINT
   751  */
 10233  */
   752     case function_lreal_to_lint :
 10234     case function_word_to_lint :
   753     {
 10235     {
   754         symbol_c *last_type_symbol = NULL;
 10236         symbol_c *last_type_symbol = NULL;
   755 
 10237 
   756         {
 10238         {
   757             /* Get the value from a foo(<param_name> = <param_value>) style call */
 10239             /* Get the value from a foo(<param_name> = <param_value>) style call */
   758             symbol_c *IN_param_value = &this->default_variable_name;
 10240             symbol_c *IN_param_value = &this->default_variable_name;
   759         
 10241         
   760             symbol_c *IN_type_symbol = param_data_type;
 10242             symbol_c *IN_type_symbol = param_data_type;
   761             last_type_symbol = param_data_type;
 10243             last_type_symbol = param_data_type;
   762             
 10244             
   763             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 10245             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
   764             {
 10246             {
   765         
 10247         
   766                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
 10248                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
   767                 s4o.print("(");
 10249                 s4o.print("(");
   768                 return_type_symbol->accept(*this);
 10250                 return_type_symbol->accept(*this);
   773             }
 10255             }
   774             
 10256             
   775             ERROR;
 10257             ERROR;
   776         }
 10258         }
   777         
 10259         
   778     }/*function_lreal_to_lint*/
 10260     }/*function_word_to_lint*/
   779     break;
 10261     break;
   780 
 10262 
   781 /****
 10263 /****
   782  *LREAL_TO_USINT
 10264  *WORD_TO_USINT
   783  */
 10265  */
   784     case function_lreal_to_usint :
 10266     case function_word_to_usint :
   785     {
 10267     {
   786         symbol_c *last_type_symbol = NULL;
 10268         symbol_c *last_type_symbol = NULL;
   787 
 10269 
   788         {
 10270         {
   789             /* Get the value from a foo(<param_name> = <param_value>) style call */
 10271             /* Get the value from a foo(<param_name> = <param_value>) style call */
   790             symbol_c *IN_param_value = &this->default_variable_name;
 10272             symbol_c *IN_param_value = &this->default_variable_name;
   791         
 10273         
   792             symbol_c *IN_type_symbol = param_data_type;
 10274             symbol_c *IN_type_symbol = param_data_type;
   793             last_type_symbol = param_data_type;
 10275             last_type_symbol = param_data_type;
   794             
 10276             
   795             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 10277             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
   796             {
 10278             {
   797         
 10279         
   798                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
 10280                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
   799                 s4o.print("(");
 10281                 s4o.print("(");
   800                 return_type_symbol->accept(*this);
 10282                 return_type_symbol->accept(*this);
   805             }
 10287             }
   806             
 10288             
   807             ERROR;
 10289             ERROR;
   808         }
 10290         }
   809         
 10291         
   810     }/*function_lreal_to_usint*/
 10292     }/*function_word_to_usint*/
   811     break;
 10293     break;
   812 
 10294 
   813 /****
 10295 /****
   814  *LREAL_TO_UINT
 10296  *WORD_TO_UINT
   815  */
 10297  */
   816     case function_lreal_to_uint :
 10298     case function_word_to_uint :
   817     {
 10299     {
   818         symbol_c *last_type_symbol = NULL;
 10300         symbol_c *last_type_symbol = NULL;
   819 
 10301 
   820         {
 10302         {
   821             /* Get the value from a foo(<param_name> = <param_value>) style call */
 10303             /* Get the value from a foo(<param_name> = <param_value>) style call */
   822             symbol_c *IN_param_value = &this->default_variable_name;
 10304             symbol_c *IN_param_value = &this->default_variable_name;
   823         
 10305         
   824             symbol_c *IN_type_symbol = param_data_type;
 10306             symbol_c *IN_type_symbol = param_data_type;
   825             last_type_symbol = param_data_type;
 10307             last_type_symbol = param_data_type;
   826             
 10308             
   827             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 10309             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
   828             {
 10310             {
   829         
 10311         
   830                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
 10312                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
   831                 s4o.print("(");
 10313                 s4o.print("(");
   832                 return_type_symbol->accept(*this);
 10314                 return_type_symbol->accept(*this);
   837             }
 10319             }
   838             
 10320             
   839             ERROR;
 10321             ERROR;
   840         }
 10322         }
   841         
 10323         
   842     }/*function_lreal_to_uint*/
 10324     }/*function_word_to_uint*/
   843     break;
 10325     break;
   844 
 10326 
   845 /****
 10327 /****
   846  *LREAL_TO_UDINT
 10328  *WORD_TO_UDINT
   847  */
 10329  */
   848     case function_lreal_to_udint :
 10330     case function_word_to_udint :
   849     {
 10331     {
   850         symbol_c *last_type_symbol = NULL;
 10332         symbol_c *last_type_symbol = NULL;
   851 
 10333 
   852         {
 10334         {
   853             /* Get the value from a foo(<param_name> = <param_value>) style call */
 10335             /* Get the value from a foo(<param_name> = <param_value>) style call */
   854             symbol_c *IN_param_value = &this->default_variable_name;
 10336             symbol_c *IN_param_value = &this->default_variable_name;
   855         
 10337         
   856             symbol_c *IN_type_symbol = param_data_type;
 10338             symbol_c *IN_type_symbol = param_data_type;
   857             last_type_symbol = param_data_type;
 10339             last_type_symbol = param_data_type;
   858             
 10340             
   859             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 10341             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
   860             {
 10342             {
   861         
 10343         
   862                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
 10344                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
   863                 s4o.print("(");
 10345                 s4o.print("(");
   864                 return_type_symbol->accept(*this);
 10346                 return_type_symbol->accept(*this);
   869             }
 10351             }
   870             
 10352             
   871             ERROR;
 10353             ERROR;
   872         }
 10354         }
   873         
 10355         
   874     }/*function_lreal_to_udint*/
 10356     }/*function_word_to_udint*/
   875     break;
 10357     break;
   876 
 10358 
   877 /****
 10359 /****
   878  *LREAL_TO_ULINT
 10360  *WORD_TO_ULINT
   879  */
 10361  */
   880     case function_lreal_to_ulint :
 10362     case function_word_to_ulint :
   881     {
 10363     {
   882         symbol_c *last_type_symbol = NULL;
 10364         symbol_c *last_type_symbol = NULL;
   883 
 10365 
   884         {
 10366         {
   885             /* Get the value from a foo(<param_name> = <param_value>) style call */
 10367             /* Get the value from a foo(<param_name> = <param_value>) style call */
   886             symbol_c *IN_param_value = &this->default_variable_name;
 10368             symbol_c *IN_param_value = &this->default_variable_name;
   887         
 10369         
   888             symbol_c *IN_type_symbol = param_data_type;
 10370             symbol_c *IN_type_symbol = param_data_type;
   889             last_type_symbol = param_data_type;
 10371             last_type_symbol = param_data_type;
   890             
 10372             
   891             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 10373             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
   892             {
 10374             {
   893         
 10375         
   894                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
 10376                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
   895                 s4o.print("(");
 10377                 s4o.print("(");
   896                 return_type_symbol->accept(*this);
 10378                 return_type_symbol->accept(*this);
   901             }
 10383             }
   902             
 10384             
   903             ERROR;
 10385             ERROR;
   904         }
 10386         }
   905         
 10387         
   906     }/*function_lreal_to_ulint*/
 10388     }/*function_word_to_ulint*/
   907     break;
 10389     break;
   908 
 10390 
   909 /****
 10391 /****
   910  *LREAL_TO_TIME
 10392  *WORD_TO_REAL
   911  */
 10393  */
   912     case function_lreal_to_time :
 10394     case function_word_to_real :
   913     {
 10395     {
   914         symbol_c *last_type_symbol = NULL;
 10396         symbol_c *last_type_symbol = NULL;
   915 
 10397 
   916         {
 10398         {
   917             /* Get the value from a foo(<param_name> = <param_value>) style call */
 10399             /* Get the value from a foo(<param_name> = <param_value>) style call */
   918             symbol_c *IN_param_value = &this->default_variable_name;
 10400             symbol_c *IN_param_value = &this->default_variable_name;
   919         
 10401         
   920             symbol_c *IN_type_symbol = param_data_type;
 10402             symbol_c *IN_type_symbol = param_data_type;
   921             last_type_symbol = param_data_type;
 10403             last_type_symbol = param_data_type;
   922             
 10404             
   923             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 10405             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
 10406             {
       
 10407         
       
 10408                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
 10409                 s4o.print("(");
       
 10410                 return_type_symbol->accept(*this);
       
 10411                 s4o.print(")");
       
 10412                 IN_param_value->accept(*this);
       
 10413                 return NULL;
       
 10414                 
       
 10415             }
       
 10416             
       
 10417             ERROR;
       
 10418         }
       
 10419         
       
 10420     }/*function_word_to_real*/
       
 10421     break;
       
 10422 
       
 10423 /****
       
 10424  *WORD_TO_LREAL
       
 10425  */
       
 10426     case function_word_to_lreal :
       
 10427     {
       
 10428         symbol_c *last_type_symbol = NULL;
       
 10429 
       
 10430         {
       
 10431             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10432             symbol_c *IN_param_value = &this->default_variable_name;
       
 10433         
       
 10434             symbol_c *IN_type_symbol = param_data_type;
       
 10435             last_type_symbol = param_data_type;
       
 10436             
       
 10437             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
 10438             {
       
 10439         
       
 10440                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
 10441                 s4o.print("(");
       
 10442                 return_type_symbol->accept(*this);
       
 10443                 s4o.print(")");
       
 10444                 IN_param_value->accept(*this);
       
 10445                 return NULL;
       
 10446                 
       
 10447             }
       
 10448             
       
 10449             ERROR;
       
 10450         }
       
 10451         
       
 10452     }/*function_word_to_lreal*/
       
 10453     break;
       
 10454 
       
 10455 /****
       
 10456  *WORD_TO_TIME
       
 10457  */
       
 10458     case function_word_to_time :
       
 10459     {
       
 10460         symbol_c *last_type_symbol = NULL;
       
 10461 
       
 10462         {
       
 10463             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10464             symbol_c *IN_param_value = &this->default_variable_name;
       
 10465         
       
 10466             symbol_c *IN_type_symbol = param_data_type;
       
 10467             last_type_symbol = param_data_type;
       
 10468             
       
 10469             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
   924             {
 10470             {
   925         
 10471         
   926                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
 10472                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
   927                 s4o.print("(");
 10473                 s4o.print("(");
   928                 return_type_symbol->accept(*this);
 10474                 return_type_symbol->accept(*this);
   929                 s4o.print(")__real_to_time(");
 10475                 s4o.print(")__int_to_time(");
   930                 IN_param_value->accept(*this);
 10476                 IN_param_value->accept(*this);
   931                 s4o.print(")");
 10477                 s4o.print(")");
   932                 return NULL;
 10478                 return NULL;
   933                 
 10479                 
   934             }
 10480             }
   935             
 10481             
   936             ERROR;
 10482             ERROR;
   937         }
 10483         }
   938         
 10484         
   939     }/*function_lreal_to_time*/
 10485     }/*function_word_to_time*/
   940     break;
 10486     break;
   941 
 10487 
   942 /****
 10488 /****
   943  *LREAL_TO_BOOL
 10489  *WORD_TO_DATE
   944  */
 10490  */
   945     case function_lreal_to_bool :
 10491     case function_word_to_date :
   946     {
 10492     {
   947         symbol_c *last_type_symbol = NULL;
 10493         symbol_c *last_type_symbol = NULL;
   948 
 10494 
   949         {
 10495         {
   950             /* Get the value from a foo(<param_name> = <param_value>) style call */
 10496             /* Get the value from a foo(<param_name> = <param_value>) style call */
   951             symbol_c *IN_param_value = &this->default_variable_name;
 10497             symbol_c *IN_param_value = &this->default_variable_name;
   952         
 10498         
   953             symbol_c *IN_type_symbol = param_data_type;
 10499             symbol_c *IN_type_symbol = param_data_type;
   954             last_type_symbol = param_data_type;
 10500             last_type_symbol = param_data_type;
   955             
 10501             
   956             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 10502             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
 10503             {
       
 10504         
       
 10505                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
 10506                 s4o.print("(");
       
 10507                 return_type_symbol->accept(*this);
       
 10508                 s4o.print(")__int_to_time(");
       
 10509                 IN_param_value->accept(*this);
       
 10510                 s4o.print(")");
       
 10511                 return NULL;
       
 10512                 
       
 10513             }
       
 10514             
       
 10515             ERROR;
       
 10516         }
       
 10517         
       
 10518     }/*function_word_to_date*/
       
 10519     break;
       
 10520 
       
 10521 /****
       
 10522  *WORD_TO_TOD
       
 10523  */
       
 10524     case function_word_to_tod :
       
 10525     {
       
 10526         symbol_c *last_type_symbol = NULL;
       
 10527 
       
 10528         {
       
 10529             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10530             symbol_c *IN_param_value = &this->default_variable_name;
       
 10531         
       
 10532             symbol_c *IN_type_symbol = param_data_type;
       
 10533             last_type_symbol = param_data_type;
       
 10534             
       
 10535             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
 10536             {
       
 10537         
       
 10538                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
 10539                 s4o.print("(");
       
 10540                 return_type_symbol->accept(*this);
       
 10541                 s4o.print(")__int_to_time(");
       
 10542                 IN_param_value->accept(*this);
       
 10543                 s4o.print(")");
       
 10544                 return NULL;
       
 10545                 
       
 10546             }
       
 10547             
       
 10548             ERROR;
       
 10549         }
       
 10550         
       
 10551     }/*function_word_to_tod*/
       
 10552     break;
       
 10553 
       
 10554 /****
       
 10555  *WORD_TO_DT
       
 10556  */
       
 10557     case function_word_to_dt :
       
 10558     {
       
 10559         symbol_c *last_type_symbol = NULL;
       
 10560 
       
 10561         {
       
 10562             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10563             symbol_c *IN_param_value = &this->default_variable_name;
       
 10564         
       
 10565             symbol_c *IN_type_symbol = param_data_type;
       
 10566             last_type_symbol = param_data_type;
       
 10567             
       
 10568             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
 10569             {
       
 10570         
       
 10571                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
 10572                 s4o.print("(");
       
 10573                 return_type_symbol->accept(*this);
       
 10574                 s4o.print(")__int_to_time(");
       
 10575                 IN_param_value->accept(*this);
       
 10576                 s4o.print(")");
       
 10577                 return NULL;
       
 10578                 
       
 10579             }
       
 10580             
       
 10581             ERROR;
       
 10582         }
       
 10583         
       
 10584     }/*function_word_to_dt*/
       
 10585     break;
       
 10586 
       
 10587 /****
       
 10588  *WORD_TO_STRING
       
 10589  */
       
 10590     case function_word_to_string :
       
 10591     {
       
 10592         symbol_c *last_type_symbol = NULL;
       
 10593 
       
 10594         {
       
 10595             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10596             symbol_c *IN_param_value = &this->default_variable_name;
       
 10597         
       
 10598             symbol_c *IN_type_symbol = param_data_type;
       
 10599             last_type_symbol = param_data_type;
       
 10600             
       
 10601             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
 10602             {
       
 10603         
       
 10604                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
 10605                 s4o.print("(");
       
 10606                 return_type_symbol->accept(*this);
       
 10607                 s4o.print(")__bit_to_string(");
       
 10608                 IN_param_value->accept(*this);
       
 10609                 s4o.print(")");
       
 10610                 return NULL;
       
 10611                 
       
 10612             }
       
 10613             
       
 10614             ERROR;
       
 10615         }
       
 10616         
       
 10617     }/*function_word_to_string*/
       
 10618     break;
       
 10619 
       
 10620 /****
       
 10621  *WORD_TO_BYTE
       
 10622  */
       
 10623     case function_word_to_byte :
       
 10624     {
       
 10625         symbol_c *last_type_symbol = NULL;
       
 10626 
       
 10627         {
       
 10628             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10629             symbol_c *IN_param_value = &this->default_variable_name;
       
 10630         
       
 10631             symbol_c *IN_type_symbol = param_data_type;
       
 10632             last_type_symbol = param_data_type;
       
 10633             
       
 10634             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
 10635             {
       
 10636         
       
 10637                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
 10638                 s4o.print("(");
       
 10639                 return_type_symbol->accept(*this);
       
 10640                 s4o.print(")");
       
 10641                 IN_param_value->accept(*this);
       
 10642                 return NULL;
       
 10643                 
       
 10644             }
       
 10645             
       
 10646             ERROR;
       
 10647         }
       
 10648         
       
 10649     }/*function_word_to_byte*/
       
 10650     break;
       
 10651 
       
 10652 /****
       
 10653  *WORD_TO_DWORD
       
 10654  */
       
 10655     case function_word_to_dword :
       
 10656     {
       
 10657         symbol_c *last_type_symbol = NULL;
       
 10658 
       
 10659         {
       
 10660             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10661             symbol_c *IN_param_value = &this->default_variable_name;
       
 10662         
       
 10663             symbol_c *IN_type_symbol = param_data_type;
       
 10664             last_type_symbol = param_data_type;
       
 10665             
       
 10666             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
 10667             {
       
 10668         
       
 10669                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
 10670                 s4o.print("(");
       
 10671                 return_type_symbol->accept(*this);
       
 10672                 s4o.print(")");
       
 10673                 IN_param_value->accept(*this);
       
 10674                 return NULL;
       
 10675                 
       
 10676             }
       
 10677             
       
 10678             ERROR;
       
 10679         }
       
 10680         
       
 10681     }/*function_word_to_dword*/
       
 10682     break;
       
 10683 
       
 10684 /****
       
 10685  *WORD_TO_LWORD
       
 10686  */
       
 10687     case function_word_to_lword :
       
 10688     {
       
 10689         symbol_c *last_type_symbol = NULL;
       
 10690 
       
 10691         {
       
 10692             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10693             symbol_c *IN_param_value = &this->default_variable_name;
       
 10694         
       
 10695             symbol_c *IN_type_symbol = param_data_type;
       
 10696             last_type_symbol = param_data_type;
       
 10697             
       
 10698             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
 10699             {
       
 10700         
       
 10701                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
 10702                 s4o.print("(");
       
 10703                 return_type_symbol->accept(*this);
       
 10704                 s4o.print(")");
       
 10705                 IN_param_value->accept(*this);
       
 10706                 return NULL;
       
 10707                 
       
 10708             }
       
 10709             
       
 10710             ERROR;
       
 10711         }
       
 10712         
       
 10713     }/*function_word_to_lword*/
       
 10714     break;
       
 10715 
       
 10716 /****
       
 10717  *DWORD_TO_BOOL
       
 10718  */
       
 10719     case function_dword_to_bool :
       
 10720     {
       
 10721         symbol_c *last_type_symbol = NULL;
       
 10722 
       
 10723         {
       
 10724             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10725             symbol_c *IN_param_value = &this->default_variable_name;
       
 10726         
       
 10727             symbol_c *IN_type_symbol = param_data_type;
       
 10728             last_type_symbol = param_data_type;
       
 10729             
       
 10730             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
   957             {
 10731             {
   958         
 10732         
   959                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
 10733                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
   960                 s4o.print("(");
 10734                 s4o.print("(");
   961                 return_type_symbol->accept(*this);
 10735                 return_type_symbol->accept(*this);
   966             }
 10740             }
   967             
 10741             
   968             ERROR;
 10742             ERROR;
   969         }
 10743         }
   970         
 10744         
   971     }/*function_lreal_to_bool*/
 10745     }/*function_dword_to_bool*/
   972     break;
 10746     break;
   973 
 10747 
   974 /****
 10748 /****
   975  *LREAL_TO_BYTE
 10749  *DWORD_TO_SINT
   976  */
 10750  */
   977     case function_lreal_to_byte :
 10751     case function_dword_to_sint :
   978     {
 10752     {
   979         symbol_c *last_type_symbol = NULL;
 10753         symbol_c *last_type_symbol = NULL;
   980 
 10754 
   981         {
 10755         {
   982             /* Get the value from a foo(<param_name> = <param_value>) style call */
 10756             /* Get the value from a foo(<param_name> = <param_value>) style call */
   983             symbol_c *IN_param_value = &this->default_variable_name;
 10757             symbol_c *IN_param_value = &this->default_variable_name;
   984         
 10758         
   985             symbol_c *IN_type_symbol = param_data_type;
 10759             symbol_c *IN_type_symbol = param_data_type;
   986             last_type_symbol = param_data_type;
 10760             last_type_symbol = param_data_type;
   987             
 10761             
   988             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 10762             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 10763             {
       
 10764         
       
 10765                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
 10766                 s4o.print("(");
       
 10767                 return_type_symbol->accept(*this);
       
 10768                 s4o.print(")");
       
 10769                 IN_param_value->accept(*this);
       
 10770                 return NULL;
       
 10771                 
       
 10772             }
       
 10773             
       
 10774             ERROR;
       
 10775         }
       
 10776         
       
 10777     }/*function_dword_to_sint*/
       
 10778     break;
       
 10779 
       
 10780 /****
       
 10781  *DWORD_TO_INT
       
 10782  */
       
 10783     case function_dword_to_int :
       
 10784     {
       
 10785         symbol_c *last_type_symbol = NULL;
       
 10786 
       
 10787         {
       
 10788             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10789             symbol_c *IN_param_value = &this->default_variable_name;
       
 10790         
       
 10791             symbol_c *IN_type_symbol = param_data_type;
       
 10792             last_type_symbol = param_data_type;
       
 10793             
       
 10794             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 10795             {
       
 10796         
       
 10797                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
 10798                 s4o.print("(");
       
 10799                 return_type_symbol->accept(*this);
       
 10800                 s4o.print(")");
       
 10801                 IN_param_value->accept(*this);
       
 10802                 return NULL;
       
 10803                 
       
 10804             }
       
 10805             
       
 10806             ERROR;
       
 10807         }
       
 10808         
       
 10809     }/*function_dword_to_int*/
       
 10810     break;
       
 10811 
       
 10812 /****
       
 10813  *DWORD_TO_DINT
       
 10814  */
       
 10815     case function_dword_to_dint :
       
 10816     {
       
 10817         symbol_c *last_type_symbol = NULL;
       
 10818 
       
 10819         {
       
 10820             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10821             symbol_c *IN_param_value = &this->default_variable_name;
       
 10822         
       
 10823             symbol_c *IN_type_symbol = param_data_type;
       
 10824             last_type_symbol = param_data_type;
       
 10825             
       
 10826             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 10827             {
       
 10828         
       
 10829                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
 10830                 s4o.print("(");
       
 10831                 return_type_symbol->accept(*this);
       
 10832                 s4o.print(")");
       
 10833                 IN_param_value->accept(*this);
       
 10834                 return NULL;
       
 10835                 
       
 10836             }
       
 10837             
       
 10838             ERROR;
       
 10839         }
       
 10840         
       
 10841     }/*function_dword_to_dint*/
       
 10842     break;
       
 10843 
       
 10844 /****
       
 10845  *DWORD_TO_LINT
       
 10846  */
       
 10847     case function_dword_to_lint :
       
 10848     {
       
 10849         symbol_c *last_type_symbol = NULL;
       
 10850 
       
 10851         {
       
 10852             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10853             symbol_c *IN_param_value = &this->default_variable_name;
       
 10854         
       
 10855             symbol_c *IN_type_symbol = param_data_type;
       
 10856             last_type_symbol = param_data_type;
       
 10857             
       
 10858             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 10859             {
       
 10860         
       
 10861                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
 10862                 s4o.print("(");
       
 10863                 return_type_symbol->accept(*this);
       
 10864                 s4o.print(")");
       
 10865                 IN_param_value->accept(*this);
       
 10866                 return NULL;
       
 10867                 
       
 10868             }
       
 10869             
       
 10870             ERROR;
       
 10871         }
       
 10872         
       
 10873     }/*function_dword_to_lint*/
       
 10874     break;
       
 10875 
       
 10876 /****
       
 10877  *DWORD_TO_USINT
       
 10878  */
       
 10879     case function_dword_to_usint :
       
 10880     {
       
 10881         symbol_c *last_type_symbol = NULL;
       
 10882 
       
 10883         {
       
 10884             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10885             symbol_c *IN_param_value = &this->default_variable_name;
       
 10886         
       
 10887             symbol_c *IN_type_symbol = param_data_type;
       
 10888             last_type_symbol = param_data_type;
       
 10889             
       
 10890             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 10891             {
       
 10892         
       
 10893                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
 10894                 s4o.print("(");
       
 10895                 return_type_symbol->accept(*this);
       
 10896                 s4o.print(")");
       
 10897                 IN_param_value->accept(*this);
       
 10898                 return NULL;
       
 10899                 
       
 10900             }
       
 10901             
       
 10902             ERROR;
       
 10903         }
       
 10904         
       
 10905     }/*function_dword_to_usint*/
       
 10906     break;
       
 10907 
       
 10908 /****
       
 10909  *DWORD_TO_UINT
       
 10910  */
       
 10911     case function_dword_to_uint :
       
 10912     {
       
 10913         symbol_c *last_type_symbol = NULL;
       
 10914 
       
 10915         {
       
 10916             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10917             symbol_c *IN_param_value = &this->default_variable_name;
       
 10918         
       
 10919             symbol_c *IN_type_symbol = param_data_type;
       
 10920             last_type_symbol = param_data_type;
       
 10921             
       
 10922             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 10923             {
       
 10924         
       
 10925                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
 10926                 s4o.print("(");
       
 10927                 return_type_symbol->accept(*this);
       
 10928                 s4o.print(")");
       
 10929                 IN_param_value->accept(*this);
       
 10930                 return NULL;
       
 10931                 
       
 10932             }
       
 10933             
       
 10934             ERROR;
       
 10935         }
       
 10936         
       
 10937     }/*function_dword_to_uint*/
       
 10938     break;
       
 10939 
       
 10940 /****
       
 10941  *DWORD_TO_UDINT
       
 10942  */
       
 10943     case function_dword_to_udint :
       
 10944     {
       
 10945         symbol_c *last_type_symbol = NULL;
       
 10946 
       
 10947         {
       
 10948             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10949             symbol_c *IN_param_value = &this->default_variable_name;
       
 10950         
       
 10951             symbol_c *IN_type_symbol = param_data_type;
       
 10952             last_type_symbol = param_data_type;
       
 10953             
       
 10954             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 10955             {
       
 10956         
       
 10957                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
 10958                 s4o.print("(");
       
 10959                 return_type_symbol->accept(*this);
       
 10960                 s4o.print(")");
       
 10961                 IN_param_value->accept(*this);
       
 10962                 return NULL;
       
 10963                 
       
 10964             }
       
 10965             
       
 10966             ERROR;
       
 10967         }
       
 10968         
       
 10969     }/*function_dword_to_udint*/
       
 10970     break;
       
 10971 
       
 10972 /****
       
 10973  *DWORD_TO_ULINT
       
 10974  */
       
 10975     case function_dword_to_ulint :
       
 10976     {
       
 10977         symbol_c *last_type_symbol = NULL;
       
 10978 
       
 10979         {
       
 10980             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10981             symbol_c *IN_param_value = &this->default_variable_name;
       
 10982         
       
 10983             symbol_c *IN_type_symbol = param_data_type;
       
 10984             last_type_symbol = param_data_type;
       
 10985             
       
 10986             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 10987             {
       
 10988         
       
 10989                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
 10990                 s4o.print("(");
       
 10991                 return_type_symbol->accept(*this);
       
 10992                 s4o.print(")");
       
 10993                 IN_param_value->accept(*this);
       
 10994                 return NULL;
       
 10995                 
       
 10996             }
       
 10997             
       
 10998             ERROR;
       
 10999         }
       
 11000         
       
 11001     }/*function_dword_to_ulint*/
       
 11002     break;
       
 11003 
       
 11004 /****
       
 11005  *DWORD_TO_REAL
       
 11006  */
       
 11007     case function_dword_to_real :
       
 11008     {
       
 11009         symbol_c *last_type_symbol = NULL;
       
 11010 
       
 11011         {
       
 11012             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11013             symbol_c *IN_param_value = &this->default_variable_name;
       
 11014         
       
 11015             symbol_c *IN_type_symbol = param_data_type;
       
 11016             last_type_symbol = param_data_type;
       
 11017             
       
 11018             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 11019             {
       
 11020         
       
 11021                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
 11022                 s4o.print("(");
       
 11023                 return_type_symbol->accept(*this);
       
 11024                 s4o.print(")");
       
 11025                 IN_param_value->accept(*this);
       
 11026                 return NULL;
       
 11027                 
       
 11028             }
       
 11029             
       
 11030             ERROR;
       
 11031         }
       
 11032         
       
 11033     }/*function_dword_to_real*/
       
 11034     break;
       
 11035 
       
 11036 /****
       
 11037  *DWORD_TO_LREAL
       
 11038  */
       
 11039     case function_dword_to_lreal :
       
 11040     {
       
 11041         symbol_c *last_type_symbol = NULL;
       
 11042 
       
 11043         {
       
 11044             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11045             symbol_c *IN_param_value = &this->default_variable_name;
       
 11046         
       
 11047             symbol_c *IN_type_symbol = param_data_type;
       
 11048             last_type_symbol = param_data_type;
       
 11049             
       
 11050             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 11051             {
       
 11052         
       
 11053                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
 11054                 s4o.print("(");
       
 11055                 return_type_symbol->accept(*this);
       
 11056                 s4o.print(")");
       
 11057                 IN_param_value->accept(*this);
       
 11058                 return NULL;
       
 11059                 
       
 11060             }
       
 11061             
       
 11062             ERROR;
       
 11063         }
       
 11064         
       
 11065     }/*function_dword_to_lreal*/
       
 11066     break;
       
 11067 
       
 11068 /****
       
 11069  *DWORD_TO_TIME
       
 11070  */
       
 11071     case function_dword_to_time :
       
 11072     {
       
 11073         symbol_c *last_type_symbol = NULL;
       
 11074 
       
 11075         {
       
 11076             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11077             symbol_c *IN_param_value = &this->default_variable_name;
       
 11078         
       
 11079             symbol_c *IN_type_symbol = param_data_type;
       
 11080             last_type_symbol = param_data_type;
       
 11081             
       
 11082             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 11083             {
       
 11084         
       
 11085                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
 11086                 s4o.print("(");
       
 11087                 return_type_symbol->accept(*this);
       
 11088                 s4o.print(")__int_to_time(");
       
 11089                 IN_param_value->accept(*this);
       
 11090                 s4o.print(")");
       
 11091                 return NULL;
       
 11092                 
       
 11093             }
       
 11094             
       
 11095             ERROR;
       
 11096         }
       
 11097         
       
 11098     }/*function_dword_to_time*/
       
 11099     break;
       
 11100 
       
 11101 /****
       
 11102  *DWORD_TO_DATE
       
 11103  */
       
 11104     case function_dword_to_date :
       
 11105     {
       
 11106         symbol_c *last_type_symbol = NULL;
       
 11107 
       
 11108         {
       
 11109             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11110             symbol_c *IN_param_value = &this->default_variable_name;
       
 11111         
       
 11112             symbol_c *IN_type_symbol = param_data_type;
       
 11113             last_type_symbol = param_data_type;
       
 11114             
       
 11115             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 11116             {
       
 11117         
       
 11118                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
 11119                 s4o.print("(");
       
 11120                 return_type_symbol->accept(*this);
       
 11121                 s4o.print(")__int_to_time(");
       
 11122                 IN_param_value->accept(*this);
       
 11123                 s4o.print(")");
       
 11124                 return NULL;
       
 11125                 
       
 11126             }
       
 11127             
       
 11128             ERROR;
       
 11129         }
       
 11130         
       
 11131     }/*function_dword_to_date*/
       
 11132     break;
       
 11133 
       
 11134 /****
       
 11135  *DWORD_TO_TOD
       
 11136  */
       
 11137     case function_dword_to_tod :
       
 11138     {
       
 11139         symbol_c *last_type_symbol = NULL;
       
 11140 
       
 11141         {
       
 11142             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11143             symbol_c *IN_param_value = &this->default_variable_name;
       
 11144         
       
 11145             symbol_c *IN_type_symbol = param_data_type;
       
 11146             last_type_symbol = param_data_type;
       
 11147             
       
 11148             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 11149             {
       
 11150         
       
 11151                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
 11152                 s4o.print("(");
       
 11153                 return_type_symbol->accept(*this);
       
 11154                 s4o.print(")__int_to_time(");
       
 11155                 IN_param_value->accept(*this);
       
 11156                 s4o.print(")");
       
 11157                 return NULL;
       
 11158                 
       
 11159             }
       
 11160             
       
 11161             ERROR;
       
 11162         }
       
 11163         
       
 11164     }/*function_dword_to_tod*/
       
 11165     break;
       
 11166 
       
 11167 /****
       
 11168  *DWORD_TO_DT
       
 11169  */
       
 11170     case function_dword_to_dt :
       
 11171     {
       
 11172         symbol_c *last_type_symbol = NULL;
       
 11173 
       
 11174         {
       
 11175             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11176             symbol_c *IN_param_value = &this->default_variable_name;
       
 11177         
       
 11178             symbol_c *IN_type_symbol = param_data_type;
       
 11179             last_type_symbol = param_data_type;
       
 11180             
       
 11181             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 11182             {
       
 11183         
       
 11184                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
 11185                 s4o.print("(");
       
 11186                 return_type_symbol->accept(*this);
       
 11187                 s4o.print(")__int_to_time(");
       
 11188                 IN_param_value->accept(*this);
       
 11189                 s4o.print(")");
       
 11190                 return NULL;
       
 11191                 
       
 11192             }
       
 11193             
       
 11194             ERROR;
       
 11195         }
       
 11196         
       
 11197     }/*function_dword_to_dt*/
       
 11198     break;
       
 11199 
       
 11200 /****
       
 11201  *DWORD_TO_STRING
       
 11202  */
       
 11203     case function_dword_to_string :
       
 11204     {
       
 11205         symbol_c *last_type_symbol = NULL;
       
 11206 
       
 11207         {
       
 11208             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11209             symbol_c *IN_param_value = &this->default_variable_name;
       
 11210         
       
 11211             symbol_c *IN_type_symbol = param_data_type;
       
 11212             last_type_symbol = param_data_type;
       
 11213             
       
 11214             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 11215             {
       
 11216         
       
 11217                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
 11218                 s4o.print("(");
       
 11219                 return_type_symbol->accept(*this);
       
 11220                 s4o.print(")__bit_to_string(");
       
 11221                 IN_param_value->accept(*this);
       
 11222                 s4o.print(")");
       
 11223                 return NULL;
       
 11224                 
       
 11225             }
       
 11226             
       
 11227             ERROR;
       
 11228         }
       
 11229         
       
 11230     }/*function_dword_to_string*/
       
 11231     break;
       
 11232 
       
 11233 /****
       
 11234  *DWORD_TO_BYTE
       
 11235  */
       
 11236     case function_dword_to_byte :
       
 11237     {
       
 11238         symbol_c *last_type_symbol = NULL;
       
 11239 
       
 11240         {
       
 11241             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11242             symbol_c *IN_param_value = &this->default_variable_name;
       
 11243         
       
 11244             symbol_c *IN_type_symbol = param_data_type;
       
 11245             last_type_symbol = param_data_type;
       
 11246             
       
 11247             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
   989             {
 11248             {
   990         
 11249         
   991                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
 11250                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
   992                 s4o.print("(");
 11251                 s4o.print("(");
   993                 return_type_symbol->accept(*this);
 11252                 return_type_symbol->accept(*this);
   998             }
 11257             }
   999             
 11258             
  1000             ERROR;
 11259             ERROR;
  1001         }
 11260         }
  1002         
 11261         
  1003     }/*function_lreal_to_byte*/
 11262     }/*function_dword_to_byte*/
  1004     break;
 11263     break;
  1005 
 11264 
  1006 /****
 11265 /****
  1007  *LREAL_TO_WORD
 11266  *DWORD_TO_WORD
  1008  */
 11267  */
  1009     case function_lreal_to_word :
 11268     case function_dword_to_word :
  1010     {
 11269     {
  1011         symbol_c *last_type_symbol = NULL;
 11270         symbol_c *last_type_symbol = NULL;
  1012 
 11271 
  1013         {
 11272         {
  1014             /* Get the value from a foo(<param_name> = <param_value>) style call */
 11273             /* Get the value from a foo(<param_name> = <param_value>) style call */
  1015             symbol_c *IN_param_value = &this->default_variable_name;
 11274             symbol_c *IN_param_value = &this->default_variable_name;
  1016         
 11275         
  1017             symbol_c *IN_type_symbol = param_data_type;
 11276             symbol_c *IN_type_symbol = param_data_type;
  1018             last_type_symbol = param_data_type;
 11277             last_type_symbol = param_data_type;
  1019             
 11278             
  1020             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 11279             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
  1021             {
 11280             {
  1022         
 11281         
  1023                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
 11282                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
  1024                 s4o.print("(");
 11283                 s4o.print("(");
  1025                 return_type_symbol->accept(*this);
 11284                 return_type_symbol->accept(*this);
  1030             }
 11289             }
  1031             
 11290             
  1032             ERROR;
 11291             ERROR;
  1033         }
 11292         }
  1034         
 11293         
  1035     }/*function_lreal_to_word*/
 11294     }/*function_dword_to_word*/
  1036     break;
 11295     break;
  1037 
 11296 
  1038 /****
 11297 /****
  1039  *LREAL_TO_DWORD
 11298  *DWORD_TO_LWORD
  1040  */
 11299  */
  1041     case function_lreal_to_dword :
 11300     case function_dword_to_lword :
  1042     {
 11301     {
  1043         symbol_c *last_type_symbol = NULL;
 11302         symbol_c *last_type_symbol = NULL;
  1044 
 11303 
  1045         {
 11304         {
  1046             /* Get the value from a foo(<param_name> = <param_value>) style call */
 11305             /* Get the value from a foo(<param_name> = <param_value>) style call */
  1047             symbol_c *IN_param_value = &this->default_variable_name;
 11306             symbol_c *IN_param_value = &this->default_variable_name;
  1048         
 11307         
  1049             symbol_c *IN_type_symbol = param_data_type;
 11308             symbol_c *IN_type_symbol = param_data_type;
  1050             last_type_symbol = param_data_type;
 11309             last_type_symbol = param_data_type;
  1051             
 11310             
  1052             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
 11311             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
 11312             {
       
 11313         
       
 11314                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
 11315                 s4o.print("(");
       
 11316                 return_type_symbol->accept(*this);
       
 11317                 s4o.print(")");
       
 11318                 IN_param_value->accept(*this);
       
 11319                 return NULL;
       
 11320                 
       
 11321             }
       
 11322             
       
 11323             ERROR;
       
 11324         }
       
 11325         
       
 11326     }/*function_dword_to_lword*/
       
 11327     break;
       
 11328 
       
 11329 /****
       
 11330  *LWORD_TO_BOOL
       
 11331  */
       
 11332     case function_lword_to_bool :
       
 11333     {
       
 11334         symbol_c *last_type_symbol = NULL;
       
 11335 
       
 11336         {
       
 11337             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11338             symbol_c *IN_param_value = &this->default_variable_name;
       
 11339         
       
 11340             symbol_c *IN_type_symbol = param_data_type;
       
 11341             last_type_symbol = param_data_type;
       
 11342             
       
 11343             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11344             {
       
 11345         
       
 11346                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
 11347                 s4o.print("(");
       
 11348                 return_type_symbol->accept(*this);
       
 11349                 s4o.print(")");
       
 11350                 IN_param_value->accept(*this);
       
 11351                 return NULL;
       
 11352                 
       
 11353             }
       
 11354             
       
 11355             ERROR;
       
 11356         }
       
 11357         
       
 11358     }/*function_lword_to_bool*/
       
 11359     break;
       
 11360 
       
 11361 /****
       
 11362  *LWORD_TO_SINT
       
 11363  */
       
 11364     case function_lword_to_sint :
       
 11365     {
       
 11366         symbol_c *last_type_symbol = NULL;
       
 11367 
       
 11368         {
       
 11369             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11370             symbol_c *IN_param_value = &this->default_variable_name;
       
 11371         
       
 11372             symbol_c *IN_type_symbol = param_data_type;
       
 11373             last_type_symbol = param_data_type;
       
 11374             
       
 11375             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11376             {
       
 11377         
       
 11378                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
 11379                 s4o.print("(");
       
 11380                 return_type_symbol->accept(*this);
       
 11381                 s4o.print(")");
       
 11382                 IN_param_value->accept(*this);
       
 11383                 return NULL;
       
 11384                 
       
 11385             }
       
 11386             
       
 11387             ERROR;
       
 11388         }
       
 11389         
       
 11390     }/*function_lword_to_sint*/
       
 11391     break;
       
 11392 
       
 11393 /****
       
 11394  *LWORD_TO_INT
       
 11395  */
       
 11396     case function_lword_to_int :
       
 11397     {
       
 11398         symbol_c *last_type_symbol = NULL;
       
 11399 
       
 11400         {
       
 11401             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11402             symbol_c *IN_param_value = &this->default_variable_name;
       
 11403         
       
 11404             symbol_c *IN_type_symbol = param_data_type;
       
 11405             last_type_symbol = param_data_type;
       
 11406             
       
 11407             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11408             {
       
 11409         
       
 11410                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
 11411                 s4o.print("(");
       
 11412                 return_type_symbol->accept(*this);
       
 11413                 s4o.print(")");
       
 11414                 IN_param_value->accept(*this);
       
 11415                 return NULL;
       
 11416                 
       
 11417             }
       
 11418             
       
 11419             ERROR;
       
 11420         }
       
 11421         
       
 11422     }/*function_lword_to_int*/
       
 11423     break;
       
 11424 
       
 11425 /****
       
 11426  *LWORD_TO_DINT
       
 11427  */
       
 11428     case function_lword_to_dint :
       
 11429     {
       
 11430         symbol_c *last_type_symbol = NULL;
       
 11431 
       
 11432         {
       
 11433             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11434             symbol_c *IN_param_value = &this->default_variable_name;
       
 11435         
       
 11436             symbol_c *IN_type_symbol = param_data_type;
       
 11437             last_type_symbol = param_data_type;
       
 11438             
       
 11439             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11440             {
       
 11441         
       
 11442                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
 11443                 s4o.print("(");
       
 11444                 return_type_symbol->accept(*this);
       
 11445                 s4o.print(")");
       
 11446                 IN_param_value->accept(*this);
       
 11447                 return NULL;
       
 11448                 
       
 11449             }
       
 11450             
       
 11451             ERROR;
       
 11452         }
       
 11453         
       
 11454     }/*function_lword_to_dint*/
       
 11455     break;
       
 11456 
       
 11457 /****
       
 11458  *LWORD_TO_LINT
       
 11459  */
       
 11460     case function_lword_to_lint :
       
 11461     {
       
 11462         symbol_c *last_type_symbol = NULL;
       
 11463 
       
 11464         {
       
 11465             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11466             symbol_c *IN_param_value = &this->default_variable_name;
       
 11467         
       
 11468             symbol_c *IN_type_symbol = param_data_type;
       
 11469             last_type_symbol = param_data_type;
       
 11470             
       
 11471             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11472             {
       
 11473         
       
 11474                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
 11475                 s4o.print("(");
       
 11476                 return_type_symbol->accept(*this);
       
 11477                 s4o.print(")");
       
 11478                 IN_param_value->accept(*this);
       
 11479                 return NULL;
       
 11480                 
       
 11481             }
       
 11482             
       
 11483             ERROR;
       
 11484         }
       
 11485         
       
 11486     }/*function_lword_to_lint*/
       
 11487     break;
       
 11488 
       
 11489 /****
       
 11490  *LWORD_TO_USINT
       
 11491  */
       
 11492     case function_lword_to_usint :
       
 11493     {
       
 11494         symbol_c *last_type_symbol = NULL;
       
 11495 
       
 11496         {
       
 11497             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11498             symbol_c *IN_param_value = &this->default_variable_name;
       
 11499         
       
 11500             symbol_c *IN_type_symbol = param_data_type;
       
 11501             last_type_symbol = param_data_type;
       
 11502             
       
 11503             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11504             {
       
 11505         
       
 11506                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
 11507                 s4o.print("(");
       
 11508                 return_type_symbol->accept(*this);
       
 11509                 s4o.print(")");
       
 11510                 IN_param_value->accept(*this);
       
 11511                 return NULL;
       
 11512                 
       
 11513             }
       
 11514             
       
 11515             ERROR;
       
 11516         }
       
 11517         
       
 11518     }/*function_lword_to_usint*/
       
 11519     break;
       
 11520 
       
 11521 /****
       
 11522  *LWORD_TO_UINT
       
 11523  */
       
 11524     case function_lword_to_uint :
       
 11525     {
       
 11526         symbol_c *last_type_symbol = NULL;
       
 11527 
       
 11528         {
       
 11529             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11530             symbol_c *IN_param_value = &this->default_variable_name;
       
 11531         
       
 11532             symbol_c *IN_type_symbol = param_data_type;
       
 11533             last_type_symbol = param_data_type;
       
 11534             
       
 11535             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11536             {
       
 11537         
       
 11538                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
 11539                 s4o.print("(");
       
 11540                 return_type_symbol->accept(*this);
       
 11541                 s4o.print(")");
       
 11542                 IN_param_value->accept(*this);
       
 11543                 return NULL;
       
 11544                 
       
 11545             }
       
 11546             
       
 11547             ERROR;
       
 11548         }
       
 11549         
       
 11550     }/*function_lword_to_uint*/
       
 11551     break;
       
 11552 
       
 11553 /****
       
 11554  *LWORD_TO_UDINT
       
 11555  */
       
 11556     case function_lword_to_udint :
       
 11557     {
       
 11558         symbol_c *last_type_symbol = NULL;
       
 11559 
       
 11560         {
       
 11561             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11562             symbol_c *IN_param_value = &this->default_variable_name;
       
 11563         
       
 11564             symbol_c *IN_type_symbol = param_data_type;
       
 11565             last_type_symbol = param_data_type;
       
 11566             
       
 11567             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11568             {
       
 11569         
       
 11570                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
 11571                 s4o.print("(");
       
 11572                 return_type_symbol->accept(*this);
       
 11573                 s4o.print(")");
       
 11574                 IN_param_value->accept(*this);
       
 11575                 return NULL;
       
 11576                 
       
 11577             }
       
 11578             
       
 11579             ERROR;
       
 11580         }
       
 11581         
       
 11582     }/*function_lword_to_udint*/
       
 11583     break;
       
 11584 
       
 11585 /****
       
 11586  *LWORD_TO_ULINT
       
 11587  */
       
 11588     case function_lword_to_ulint :
       
 11589     {
       
 11590         symbol_c *last_type_symbol = NULL;
       
 11591 
       
 11592         {
       
 11593             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11594             symbol_c *IN_param_value = &this->default_variable_name;
       
 11595         
       
 11596             symbol_c *IN_type_symbol = param_data_type;
       
 11597             last_type_symbol = param_data_type;
       
 11598             
       
 11599             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11600             {
       
 11601         
       
 11602                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
 11603                 s4o.print("(");
       
 11604                 return_type_symbol->accept(*this);
       
 11605                 s4o.print(")");
       
 11606                 IN_param_value->accept(*this);
       
 11607                 return NULL;
       
 11608                 
       
 11609             }
       
 11610             
       
 11611             ERROR;
       
 11612         }
       
 11613         
       
 11614     }/*function_lword_to_ulint*/
       
 11615     break;
       
 11616 
       
 11617 /****
       
 11618  *LWORD_TO_REAL
       
 11619  */
       
 11620     case function_lword_to_real :
       
 11621     {
       
 11622         symbol_c *last_type_symbol = NULL;
       
 11623 
       
 11624         {
       
 11625             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11626             symbol_c *IN_param_value = &this->default_variable_name;
       
 11627         
       
 11628             symbol_c *IN_type_symbol = param_data_type;
       
 11629             last_type_symbol = param_data_type;
       
 11630             
       
 11631             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11632             {
       
 11633         
       
 11634                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
 11635                 s4o.print("(");
       
 11636                 return_type_symbol->accept(*this);
       
 11637                 s4o.print(")");
       
 11638                 IN_param_value->accept(*this);
       
 11639                 return NULL;
       
 11640                 
       
 11641             }
       
 11642             
       
 11643             ERROR;
       
 11644         }
       
 11645         
       
 11646     }/*function_lword_to_real*/
       
 11647     break;
       
 11648 
       
 11649 /****
       
 11650  *LWORD_TO_LREAL
       
 11651  */
       
 11652     case function_lword_to_lreal :
       
 11653     {
       
 11654         symbol_c *last_type_symbol = NULL;
       
 11655 
       
 11656         {
       
 11657             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11658             symbol_c *IN_param_value = &this->default_variable_name;
       
 11659         
       
 11660             symbol_c *IN_type_symbol = param_data_type;
       
 11661             last_type_symbol = param_data_type;
       
 11662             
       
 11663             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11664             {
       
 11665         
       
 11666                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
 11667                 s4o.print("(");
       
 11668                 return_type_symbol->accept(*this);
       
 11669                 s4o.print(")");
       
 11670                 IN_param_value->accept(*this);
       
 11671                 return NULL;
       
 11672                 
       
 11673             }
       
 11674             
       
 11675             ERROR;
       
 11676         }
       
 11677         
       
 11678     }/*function_lword_to_lreal*/
       
 11679     break;
       
 11680 
       
 11681 /****
       
 11682  *LWORD_TO_TIME
       
 11683  */
       
 11684     case function_lword_to_time :
       
 11685     {
       
 11686         symbol_c *last_type_symbol = NULL;
       
 11687 
       
 11688         {
       
 11689             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11690             symbol_c *IN_param_value = &this->default_variable_name;
       
 11691         
       
 11692             symbol_c *IN_type_symbol = param_data_type;
       
 11693             last_type_symbol = param_data_type;
       
 11694             
       
 11695             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11696             {
       
 11697         
       
 11698                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
 11699                 s4o.print("(");
       
 11700                 return_type_symbol->accept(*this);
       
 11701                 s4o.print(")__int_to_time(");
       
 11702                 IN_param_value->accept(*this);
       
 11703                 s4o.print(")");
       
 11704                 return NULL;
       
 11705                 
       
 11706             }
       
 11707             
       
 11708             ERROR;
       
 11709         }
       
 11710         
       
 11711     }/*function_lword_to_time*/
       
 11712     break;
       
 11713 
       
 11714 /****
       
 11715  *LWORD_TO_DATE
       
 11716  */
       
 11717     case function_lword_to_date :
       
 11718     {
       
 11719         symbol_c *last_type_symbol = NULL;
       
 11720 
       
 11721         {
       
 11722             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11723             symbol_c *IN_param_value = &this->default_variable_name;
       
 11724         
       
 11725             symbol_c *IN_type_symbol = param_data_type;
       
 11726             last_type_symbol = param_data_type;
       
 11727             
       
 11728             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11729             {
       
 11730         
       
 11731                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
 11732                 s4o.print("(");
       
 11733                 return_type_symbol->accept(*this);
       
 11734                 s4o.print(")__int_to_time(");
       
 11735                 IN_param_value->accept(*this);
       
 11736                 s4o.print(")");
       
 11737                 return NULL;
       
 11738                 
       
 11739             }
       
 11740             
       
 11741             ERROR;
       
 11742         }
       
 11743         
       
 11744     }/*function_lword_to_date*/
       
 11745     break;
       
 11746 
       
 11747 /****
       
 11748  *LWORD_TO_TOD
       
 11749  */
       
 11750     case function_lword_to_tod :
       
 11751     {
       
 11752         symbol_c *last_type_symbol = NULL;
       
 11753 
       
 11754         {
       
 11755             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11756             symbol_c *IN_param_value = &this->default_variable_name;
       
 11757         
       
 11758             symbol_c *IN_type_symbol = param_data_type;
       
 11759             last_type_symbol = param_data_type;
       
 11760             
       
 11761             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11762             {
       
 11763         
       
 11764                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
 11765                 s4o.print("(");
       
 11766                 return_type_symbol->accept(*this);
       
 11767                 s4o.print(")__int_to_time(");
       
 11768                 IN_param_value->accept(*this);
       
 11769                 s4o.print(")");
       
 11770                 return NULL;
       
 11771                 
       
 11772             }
       
 11773             
       
 11774             ERROR;
       
 11775         }
       
 11776         
       
 11777     }/*function_lword_to_tod*/
       
 11778     break;
       
 11779 
       
 11780 /****
       
 11781  *LWORD_TO_DT
       
 11782  */
       
 11783     case function_lword_to_dt :
       
 11784     {
       
 11785         symbol_c *last_type_symbol = NULL;
       
 11786 
       
 11787         {
       
 11788             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11789             symbol_c *IN_param_value = &this->default_variable_name;
       
 11790         
       
 11791             symbol_c *IN_type_symbol = param_data_type;
       
 11792             last_type_symbol = param_data_type;
       
 11793             
       
 11794             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11795             {
       
 11796         
       
 11797                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
 11798                 s4o.print("(");
       
 11799                 return_type_symbol->accept(*this);
       
 11800                 s4o.print(")__int_to_time(");
       
 11801                 IN_param_value->accept(*this);
       
 11802                 s4o.print(")");
       
 11803                 return NULL;
       
 11804                 
       
 11805             }
       
 11806             
       
 11807             ERROR;
       
 11808         }
       
 11809         
       
 11810     }/*function_lword_to_dt*/
       
 11811     break;
       
 11812 
       
 11813 /****
       
 11814  *LWORD_TO_STRING
       
 11815  */
       
 11816     case function_lword_to_string :
       
 11817     {
       
 11818         symbol_c *last_type_symbol = NULL;
       
 11819 
       
 11820         {
       
 11821             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11822             symbol_c *IN_param_value = &this->default_variable_name;
       
 11823         
       
 11824             symbol_c *IN_type_symbol = param_data_type;
       
 11825             last_type_symbol = param_data_type;
       
 11826             
       
 11827             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11828             {
       
 11829         
       
 11830                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
 11831                 s4o.print("(");
       
 11832                 return_type_symbol->accept(*this);
       
 11833                 s4o.print(")__bit_to_string(");
       
 11834                 IN_param_value->accept(*this);
       
 11835                 s4o.print(")");
       
 11836                 return NULL;
       
 11837                 
       
 11838             }
       
 11839             
       
 11840             ERROR;
       
 11841         }
       
 11842         
       
 11843     }/*function_lword_to_string*/
       
 11844     break;
       
 11845 
       
 11846 /****
       
 11847  *LWORD_TO_BYTE
       
 11848  */
       
 11849     case function_lword_to_byte :
       
 11850     {
       
 11851         symbol_c *last_type_symbol = NULL;
       
 11852 
       
 11853         {
       
 11854             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11855             symbol_c *IN_param_value = &this->default_variable_name;
       
 11856         
       
 11857             symbol_c *IN_type_symbol = param_data_type;
       
 11858             last_type_symbol = param_data_type;
       
 11859             
       
 11860             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11861             {
       
 11862         
       
 11863                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
 11864                 s4o.print("(");
       
 11865                 return_type_symbol->accept(*this);
       
 11866                 s4o.print(")");
       
 11867                 IN_param_value->accept(*this);
       
 11868                 return NULL;
       
 11869                 
       
 11870             }
       
 11871             
       
 11872             ERROR;
       
 11873         }
       
 11874         
       
 11875     }/*function_lword_to_byte*/
       
 11876     break;
       
 11877 
       
 11878 /****
       
 11879  *LWORD_TO_WORD
       
 11880  */
       
 11881     case function_lword_to_word :
       
 11882     {
       
 11883         symbol_c *last_type_symbol = NULL;
       
 11884 
       
 11885         {
       
 11886             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11887             symbol_c *IN_param_value = &this->default_variable_name;
       
 11888         
       
 11889             symbol_c *IN_type_symbol = param_data_type;
       
 11890             last_type_symbol = param_data_type;
       
 11891             
       
 11892             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
 11893             {
       
 11894         
       
 11895                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
 11896                 s4o.print("(");
       
 11897                 return_type_symbol->accept(*this);
       
 11898                 s4o.print(")");
       
 11899                 IN_param_value->accept(*this);
       
 11900                 return NULL;
       
 11901                 
       
 11902             }
       
 11903             
       
 11904             ERROR;
       
 11905         }
       
 11906         
       
 11907     }/*function_lword_to_word*/
       
 11908     break;
       
 11909 
       
 11910 /****
       
 11911  *LWORD_TO_DWORD
       
 11912  */
       
 11913     case function_lword_to_dword :
       
 11914     {
       
 11915         symbol_c *last_type_symbol = NULL;
       
 11916 
       
 11917         {
       
 11918             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11919             symbol_c *IN_param_value = &this->default_variable_name;
       
 11920         
       
 11921             symbol_c *IN_type_symbol = param_data_type;
       
 11922             last_type_symbol = param_data_type;
       
 11923             
       
 11924             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
  1053             {
 11925             {
  1054         
 11926         
  1055                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
 11927                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
  1056                 s4o.print("(");
 11928                 s4o.print("(");
  1057                 return_type_symbol->accept(*this);
 11929                 return_type_symbol->accept(*this);
  1062             }
 11934             }
  1063             
 11935             
  1064             ERROR;
 11936             ERROR;
  1065         }
 11937         }
  1066         
 11938         
  1067     }/*function_lreal_to_dword*/
       
  1068     break;
       
  1069 
       
  1070 /****
       
  1071  *LREAL_TO_LWORD
       
  1072  */
       
  1073     case function_lreal_to_lword :
       
  1074     {
       
  1075         symbol_c *last_type_symbol = NULL;
       
  1076 
       
  1077         {
       
  1078             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1079             symbol_c *IN_param_value = &this->default_variable_name;
       
  1080         
       
  1081             symbol_c *IN_type_symbol = param_data_type;
       
  1082             last_type_symbol = param_data_type;
       
  1083             
       
  1084             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  1085             {
       
  1086         
       
  1087                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  1088                 s4o.print("(");
       
  1089                 return_type_symbol->accept(*this);
       
  1090                 s4o.print(")");
       
  1091                 IN_param_value->accept(*this);
       
  1092                 return NULL;
       
  1093                 
       
  1094             }
       
  1095             
       
  1096             ERROR;
       
  1097         }
       
  1098         
       
  1099     }/*function_lreal_to_lword*/
       
  1100     break;
       
  1101 
       
  1102 /****
       
  1103  *LREAL_TO_STRING
       
  1104  */
       
  1105     case function_lreal_to_string :
       
  1106     {
       
  1107         symbol_c *last_type_symbol = NULL;
       
  1108 
       
  1109         {
       
  1110             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1111             symbol_c *IN_param_value = &this->default_variable_name;
       
  1112         
       
  1113             symbol_c *IN_type_symbol = param_data_type;
       
  1114             last_type_symbol = param_data_type;
       
  1115             
       
  1116             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  1117             {
       
  1118         
       
  1119                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  1120                 s4o.print("(");
       
  1121                 return_type_symbol->accept(*this);
       
  1122                 s4o.print(")__real_to_string(");
       
  1123                 IN_param_value->accept(*this);
       
  1124                 s4o.print(")");
       
  1125                 return NULL;
       
  1126                 
       
  1127             }
       
  1128             
       
  1129             ERROR;
       
  1130         }
       
  1131         
       
  1132     }/*function_lreal_to_string*/
       
  1133     break;
       
  1134 
       
  1135 /****
       
  1136  *LREAL_TO_DATE
       
  1137  */
       
  1138     case function_lreal_to_date :
       
  1139     {
       
  1140         symbol_c *last_type_symbol = NULL;
       
  1141 
       
  1142         {
       
  1143             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1144             symbol_c *IN_param_value = &this->default_variable_name;
       
  1145         
       
  1146             symbol_c *IN_type_symbol = param_data_type;
       
  1147             last_type_symbol = param_data_type;
       
  1148             
       
  1149             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  1150             {
       
  1151         
       
  1152                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  1153                 s4o.print("(");
       
  1154                 return_type_symbol->accept(*this);
       
  1155                 s4o.print(")__real_to_time(");
       
  1156                 IN_param_value->accept(*this);
       
  1157                 s4o.print(")");
       
  1158                 return NULL;
       
  1159                 
       
  1160             }
       
  1161             
       
  1162             ERROR;
       
  1163         }
       
  1164         
       
  1165     }/*function_lreal_to_date*/
       
  1166     break;
       
  1167 
       
  1168 /****
       
  1169  *LREAL_TO_TOD
       
  1170  */
       
  1171     case function_lreal_to_tod :
       
  1172     {
       
  1173         symbol_c *last_type_symbol = NULL;
       
  1174 
       
  1175         {
       
  1176             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1177             symbol_c *IN_param_value = &this->default_variable_name;
       
  1178         
       
  1179             symbol_c *IN_type_symbol = param_data_type;
       
  1180             last_type_symbol = param_data_type;
       
  1181             
       
  1182             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  1183             {
       
  1184         
       
  1185                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  1186                 s4o.print("(");
       
  1187                 return_type_symbol->accept(*this);
       
  1188                 s4o.print(")__real_to_time(");
       
  1189                 IN_param_value->accept(*this);
       
  1190                 s4o.print(")");
       
  1191                 return NULL;
       
  1192                 
       
  1193             }
       
  1194             
       
  1195             ERROR;
       
  1196         }
       
  1197         
       
  1198     }/*function_lreal_to_tod*/
       
  1199     break;
       
  1200 
       
  1201 /****
       
  1202  *LREAL_TO_DT
       
  1203  */
       
  1204     case function_lreal_to_dt :
       
  1205     {
       
  1206         symbol_c *last_type_symbol = NULL;
       
  1207 
       
  1208         {
       
  1209             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1210             symbol_c *IN_param_value = &this->default_variable_name;
       
  1211         
       
  1212             symbol_c *IN_type_symbol = param_data_type;
       
  1213             last_type_symbol = param_data_type;
       
  1214             
       
  1215             if (typeid(*last_type_symbol) == typeid(lreal_type_name_c))
       
  1216             {
       
  1217         
       
  1218                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  1219                 s4o.print("(");
       
  1220                 return_type_symbol->accept(*this);
       
  1221                 s4o.print(")__real_to_time(");
       
  1222                 IN_param_value->accept(*this);
       
  1223                 s4o.print(")");
       
  1224                 return NULL;
       
  1225                 
       
  1226             }
       
  1227             
       
  1228             ERROR;
       
  1229         }
       
  1230         
       
  1231     }/*function_lreal_to_dt*/
       
  1232     break;
       
  1233 
       
  1234 /****
       
  1235  *SINT_TO_REAL
       
  1236  */
       
  1237     case function_sint_to_real :
       
  1238     {
       
  1239         symbol_c *last_type_symbol = NULL;
       
  1240 
       
  1241         {
       
  1242             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1243             symbol_c *IN_param_value = &this->default_variable_name;
       
  1244         
       
  1245             symbol_c *IN_type_symbol = param_data_type;
       
  1246             last_type_symbol = param_data_type;
       
  1247             
       
  1248             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1249             {
       
  1250         
       
  1251                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  1252                 s4o.print("(");
       
  1253                 return_type_symbol->accept(*this);
       
  1254                 s4o.print(")");
       
  1255                 IN_param_value->accept(*this);
       
  1256                 return NULL;
       
  1257                 
       
  1258             }
       
  1259             
       
  1260             ERROR;
       
  1261         }
       
  1262         
       
  1263     }/*function_sint_to_real*/
       
  1264     break;
       
  1265 
       
  1266 /****
       
  1267  *SINT_TO_LREAL
       
  1268  */
       
  1269     case function_sint_to_lreal :
       
  1270     {
       
  1271         symbol_c *last_type_symbol = NULL;
       
  1272 
       
  1273         {
       
  1274             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1275             symbol_c *IN_param_value = &this->default_variable_name;
       
  1276         
       
  1277             symbol_c *IN_type_symbol = param_data_type;
       
  1278             last_type_symbol = param_data_type;
       
  1279             
       
  1280             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1281             {
       
  1282         
       
  1283                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  1284                 s4o.print("(");
       
  1285                 return_type_symbol->accept(*this);
       
  1286                 s4o.print(")");
       
  1287                 IN_param_value->accept(*this);
       
  1288                 return NULL;
       
  1289                 
       
  1290             }
       
  1291             
       
  1292             ERROR;
       
  1293         }
       
  1294         
       
  1295     }/*function_sint_to_lreal*/
       
  1296     break;
       
  1297 
       
  1298 /****
       
  1299  *SINT_TO_INT
       
  1300  */
       
  1301     case function_sint_to_int :
       
  1302     {
       
  1303         symbol_c *last_type_symbol = NULL;
       
  1304 
       
  1305         {
       
  1306             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1307             symbol_c *IN_param_value = &this->default_variable_name;
       
  1308         
       
  1309             symbol_c *IN_type_symbol = param_data_type;
       
  1310             last_type_symbol = param_data_type;
       
  1311             
       
  1312             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1313             {
       
  1314         
       
  1315                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  1316                 s4o.print("(");
       
  1317                 return_type_symbol->accept(*this);
       
  1318                 s4o.print(")");
       
  1319                 IN_param_value->accept(*this);
       
  1320                 return NULL;
       
  1321                 
       
  1322             }
       
  1323             
       
  1324             ERROR;
       
  1325         }
       
  1326         
       
  1327     }/*function_sint_to_int*/
       
  1328     break;
       
  1329 
       
  1330 /****
       
  1331  *SINT_TO_DINT
       
  1332  */
       
  1333     case function_sint_to_dint :
       
  1334     {
       
  1335         symbol_c *last_type_symbol = NULL;
       
  1336 
       
  1337         {
       
  1338             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1339             symbol_c *IN_param_value = &this->default_variable_name;
       
  1340         
       
  1341             symbol_c *IN_type_symbol = param_data_type;
       
  1342             last_type_symbol = param_data_type;
       
  1343             
       
  1344             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1345             {
       
  1346         
       
  1347                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  1348                 s4o.print("(");
       
  1349                 return_type_symbol->accept(*this);
       
  1350                 s4o.print(")");
       
  1351                 IN_param_value->accept(*this);
       
  1352                 return NULL;
       
  1353                 
       
  1354             }
       
  1355             
       
  1356             ERROR;
       
  1357         }
       
  1358         
       
  1359     }/*function_sint_to_dint*/
       
  1360     break;
       
  1361 
       
  1362 /****
       
  1363  *SINT_TO_LINT
       
  1364  */
       
  1365     case function_sint_to_lint :
       
  1366     {
       
  1367         symbol_c *last_type_symbol = NULL;
       
  1368 
       
  1369         {
       
  1370             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1371             symbol_c *IN_param_value = &this->default_variable_name;
       
  1372         
       
  1373             symbol_c *IN_type_symbol = param_data_type;
       
  1374             last_type_symbol = param_data_type;
       
  1375             
       
  1376             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1377             {
       
  1378         
       
  1379                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  1380                 s4o.print("(");
       
  1381                 return_type_symbol->accept(*this);
       
  1382                 s4o.print(")");
       
  1383                 IN_param_value->accept(*this);
       
  1384                 return NULL;
       
  1385                 
       
  1386             }
       
  1387             
       
  1388             ERROR;
       
  1389         }
       
  1390         
       
  1391     }/*function_sint_to_lint*/
       
  1392     break;
       
  1393 
       
  1394 /****
       
  1395  *SINT_TO_USINT
       
  1396  */
       
  1397     case function_sint_to_usint :
       
  1398     {
       
  1399         symbol_c *last_type_symbol = NULL;
       
  1400 
       
  1401         {
       
  1402             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1403             symbol_c *IN_param_value = &this->default_variable_name;
       
  1404         
       
  1405             symbol_c *IN_type_symbol = param_data_type;
       
  1406             last_type_symbol = param_data_type;
       
  1407             
       
  1408             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1409             {
       
  1410         
       
  1411                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  1412                 s4o.print("(");
       
  1413                 return_type_symbol->accept(*this);
       
  1414                 s4o.print(")");
       
  1415                 IN_param_value->accept(*this);
       
  1416                 return NULL;
       
  1417                 
       
  1418             }
       
  1419             
       
  1420             ERROR;
       
  1421         }
       
  1422         
       
  1423     }/*function_sint_to_usint*/
       
  1424     break;
       
  1425 
       
  1426 /****
       
  1427  *SINT_TO_UINT
       
  1428  */
       
  1429     case function_sint_to_uint :
       
  1430     {
       
  1431         symbol_c *last_type_symbol = NULL;
       
  1432 
       
  1433         {
       
  1434             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1435             symbol_c *IN_param_value = &this->default_variable_name;
       
  1436         
       
  1437             symbol_c *IN_type_symbol = param_data_type;
       
  1438             last_type_symbol = param_data_type;
       
  1439             
       
  1440             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1441             {
       
  1442         
       
  1443                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  1444                 s4o.print("(");
       
  1445                 return_type_symbol->accept(*this);
       
  1446                 s4o.print(")");
       
  1447                 IN_param_value->accept(*this);
       
  1448                 return NULL;
       
  1449                 
       
  1450             }
       
  1451             
       
  1452             ERROR;
       
  1453         }
       
  1454         
       
  1455     }/*function_sint_to_uint*/
       
  1456     break;
       
  1457 
       
  1458 /****
       
  1459  *SINT_TO_UDINT
       
  1460  */
       
  1461     case function_sint_to_udint :
       
  1462     {
       
  1463         symbol_c *last_type_symbol = NULL;
       
  1464 
       
  1465         {
       
  1466             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1467             symbol_c *IN_param_value = &this->default_variable_name;
       
  1468         
       
  1469             symbol_c *IN_type_symbol = param_data_type;
       
  1470             last_type_symbol = param_data_type;
       
  1471             
       
  1472             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1473             {
       
  1474         
       
  1475                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  1476                 s4o.print("(");
       
  1477                 return_type_symbol->accept(*this);
       
  1478                 s4o.print(")");
       
  1479                 IN_param_value->accept(*this);
       
  1480                 return NULL;
       
  1481                 
       
  1482             }
       
  1483             
       
  1484             ERROR;
       
  1485         }
       
  1486         
       
  1487     }/*function_sint_to_udint*/
       
  1488     break;
       
  1489 
       
  1490 /****
       
  1491  *SINT_TO_ULINT
       
  1492  */
       
  1493     case function_sint_to_ulint :
       
  1494     {
       
  1495         symbol_c *last_type_symbol = NULL;
       
  1496 
       
  1497         {
       
  1498             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1499             symbol_c *IN_param_value = &this->default_variable_name;
       
  1500         
       
  1501             symbol_c *IN_type_symbol = param_data_type;
       
  1502             last_type_symbol = param_data_type;
       
  1503             
       
  1504             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1505             {
       
  1506         
       
  1507                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  1508                 s4o.print("(");
       
  1509                 return_type_symbol->accept(*this);
       
  1510                 s4o.print(")");
       
  1511                 IN_param_value->accept(*this);
       
  1512                 return NULL;
       
  1513                 
       
  1514             }
       
  1515             
       
  1516             ERROR;
       
  1517         }
       
  1518         
       
  1519     }/*function_sint_to_ulint*/
       
  1520     break;
       
  1521 
       
  1522 /****
       
  1523  *SINT_TO_TIME
       
  1524  */
       
  1525     case function_sint_to_time :
       
  1526     {
       
  1527         symbol_c *last_type_symbol = NULL;
       
  1528 
       
  1529         {
       
  1530             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1531             symbol_c *IN_param_value = &this->default_variable_name;
       
  1532         
       
  1533             symbol_c *IN_type_symbol = param_data_type;
       
  1534             last_type_symbol = param_data_type;
       
  1535             
       
  1536             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1537             {
       
  1538         
       
  1539                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  1540                 s4o.print("(");
       
  1541                 return_type_symbol->accept(*this);
       
  1542                 s4o.print(")__int_to_time(");
       
  1543                 IN_param_value->accept(*this);
       
  1544                 s4o.print(")");
       
  1545                 return NULL;
       
  1546                 
       
  1547             }
       
  1548             
       
  1549             ERROR;
       
  1550         }
       
  1551         
       
  1552     }/*function_sint_to_time*/
       
  1553     break;
       
  1554 
       
  1555 /****
       
  1556  *SINT_TO_BOOL
       
  1557  */
       
  1558     case function_sint_to_bool :
       
  1559     {
       
  1560         symbol_c *last_type_symbol = NULL;
       
  1561 
       
  1562         {
       
  1563             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1564             symbol_c *IN_param_value = &this->default_variable_name;
       
  1565         
       
  1566             symbol_c *IN_type_symbol = param_data_type;
       
  1567             last_type_symbol = param_data_type;
       
  1568             
       
  1569             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1570             {
       
  1571         
       
  1572                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  1573                 s4o.print("(");
       
  1574                 return_type_symbol->accept(*this);
       
  1575                 s4o.print(")");
       
  1576                 IN_param_value->accept(*this);
       
  1577                 return NULL;
       
  1578                 
       
  1579             }
       
  1580             
       
  1581             ERROR;
       
  1582         }
       
  1583         
       
  1584     }/*function_sint_to_bool*/
       
  1585     break;
       
  1586 
       
  1587 /****
       
  1588  *SINT_TO_BYTE
       
  1589  */
       
  1590     case function_sint_to_byte :
       
  1591     {
       
  1592         symbol_c *last_type_symbol = NULL;
       
  1593 
       
  1594         {
       
  1595             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1596             symbol_c *IN_param_value = &this->default_variable_name;
       
  1597         
       
  1598             symbol_c *IN_type_symbol = param_data_type;
       
  1599             last_type_symbol = param_data_type;
       
  1600             
       
  1601             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1602             {
       
  1603         
       
  1604                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  1605                 s4o.print("(");
       
  1606                 return_type_symbol->accept(*this);
       
  1607                 s4o.print(")");
       
  1608                 IN_param_value->accept(*this);
       
  1609                 return NULL;
       
  1610                 
       
  1611             }
       
  1612             
       
  1613             ERROR;
       
  1614         }
       
  1615         
       
  1616     }/*function_sint_to_byte*/
       
  1617     break;
       
  1618 
       
  1619 /****
       
  1620  *SINT_TO_WORD
       
  1621  */
       
  1622     case function_sint_to_word :
       
  1623     {
       
  1624         symbol_c *last_type_symbol = NULL;
       
  1625 
       
  1626         {
       
  1627             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1628             symbol_c *IN_param_value = &this->default_variable_name;
       
  1629         
       
  1630             symbol_c *IN_type_symbol = param_data_type;
       
  1631             last_type_symbol = param_data_type;
       
  1632             
       
  1633             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1634             {
       
  1635         
       
  1636                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  1637                 s4o.print("(");
       
  1638                 return_type_symbol->accept(*this);
       
  1639                 s4o.print(")");
       
  1640                 IN_param_value->accept(*this);
       
  1641                 return NULL;
       
  1642                 
       
  1643             }
       
  1644             
       
  1645             ERROR;
       
  1646         }
       
  1647         
       
  1648     }/*function_sint_to_word*/
       
  1649     break;
       
  1650 
       
  1651 /****
       
  1652  *SINT_TO_DWORD
       
  1653  */
       
  1654     case function_sint_to_dword :
       
  1655     {
       
  1656         symbol_c *last_type_symbol = NULL;
       
  1657 
       
  1658         {
       
  1659             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1660             symbol_c *IN_param_value = &this->default_variable_name;
       
  1661         
       
  1662             symbol_c *IN_type_symbol = param_data_type;
       
  1663             last_type_symbol = param_data_type;
       
  1664             
       
  1665             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1666             {
       
  1667         
       
  1668                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  1669                 s4o.print("(");
       
  1670                 return_type_symbol->accept(*this);
       
  1671                 s4o.print(")");
       
  1672                 IN_param_value->accept(*this);
       
  1673                 return NULL;
       
  1674                 
       
  1675             }
       
  1676             
       
  1677             ERROR;
       
  1678         }
       
  1679         
       
  1680     }/*function_sint_to_dword*/
       
  1681     break;
       
  1682 
       
  1683 /****
       
  1684  *SINT_TO_LWORD
       
  1685  */
       
  1686     case function_sint_to_lword :
       
  1687     {
       
  1688         symbol_c *last_type_symbol = NULL;
       
  1689 
       
  1690         {
       
  1691             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1692             symbol_c *IN_param_value = &this->default_variable_name;
       
  1693         
       
  1694             symbol_c *IN_type_symbol = param_data_type;
       
  1695             last_type_symbol = param_data_type;
       
  1696             
       
  1697             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1698             {
       
  1699         
       
  1700                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  1701                 s4o.print("(");
       
  1702                 return_type_symbol->accept(*this);
       
  1703                 s4o.print(")");
       
  1704                 IN_param_value->accept(*this);
       
  1705                 return NULL;
       
  1706                 
       
  1707             }
       
  1708             
       
  1709             ERROR;
       
  1710         }
       
  1711         
       
  1712     }/*function_sint_to_lword*/
       
  1713     break;
       
  1714 
       
  1715 /****
       
  1716  *SINT_TO_STRING
       
  1717  */
       
  1718     case function_sint_to_string :
       
  1719     {
       
  1720         symbol_c *last_type_symbol = NULL;
       
  1721 
       
  1722         {
       
  1723             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1724             symbol_c *IN_param_value = &this->default_variable_name;
       
  1725         
       
  1726             symbol_c *IN_type_symbol = param_data_type;
       
  1727             last_type_symbol = param_data_type;
       
  1728             
       
  1729             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1730             {
       
  1731         
       
  1732                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  1733                 s4o.print("(");
       
  1734                 return_type_symbol->accept(*this);
       
  1735                 s4o.print(")__sint_to_string(");
       
  1736                 IN_param_value->accept(*this);
       
  1737                 s4o.print(")");
       
  1738                 return NULL;
       
  1739                 
       
  1740             }
       
  1741             
       
  1742             ERROR;
       
  1743         }
       
  1744         
       
  1745     }/*function_sint_to_string*/
       
  1746     break;
       
  1747 
       
  1748 /****
       
  1749  *SINT_TO_DATE
       
  1750  */
       
  1751     case function_sint_to_date :
       
  1752     {
       
  1753         symbol_c *last_type_symbol = NULL;
       
  1754 
       
  1755         {
       
  1756             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1757             symbol_c *IN_param_value = &this->default_variable_name;
       
  1758         
       
  1759             symbol_c *IN_type_symbol = param_data_type;
       
  1760             last_type_symbol = param_data_type;
       
  1761             
       
  1762             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1763             {
       
  1764         
       
  1765                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  1766                 s4o.print("(");
       
  1767                 return_type_symbol->accept(*this);
       
  1768                 s4o.print(")__int_to_time(");
       
  1769                 IN_param_value->accept(*this);
       
  1770                 s4o.print(")");
       
  1771                 return NULL;
       
  1772                 
       
  1773             }
       
  1774             
       
  1775             ERROR;
       
  1776         }
       
  1777         
       
  1778     }/*function_sint_to_date*/
       
  1779     break;
       
  1780 
       
  1781 /****
       
  1782  *SINT_TO_TOD
       
  1783  */
       
  1784     case function_sint_to_tod :
       
  1785     {
       
  1786         symbol_c *last_type_symbol = NULL;
       
  1787 
       
  1788         {
       
  1789             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1790             symbol_c *IN_param_value = &this->default_variable_name;
       
  1791         
       
  1792             symbol_c *IN_type_symbol = param_data_type;
       
  1793             last_type_symbol = param_data_type;
       
  1794             
       
  1795             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1796             {
       
  1797         
       
  1798                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  1799                 s4o.print("(");
       
  1800                 return_type_symbol->accept(*this);
       
  1801                 s4o.print(")__int_to_time(");
       
  1802                 IN_param_value->accept(*this);
       
  1803                 s4o.print(")");
       
  1804                 return NULL;
       
  1805                 
       
  1806             }
       
  1807             
       
  1808             ERROR;
       
  1809         }
       
  1810         
       
  1811     }/*function_sint_to_tod*/
       
  1812     break;
       
  1813 
       
  1814 /****
       
  1815  *SINT_TO_DT
       
  1816  */
       
  1817     case function_sint_to_dt :
       
  1818     {
       
  1819         symbol_c *last_type_symbol = NULL;
       
  1820 
       
  1821         {
       
  1822             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1823             symbol_c *IN_param_value = &this->default_variable_name;
       
  1824         
       
  1825             symbol_c *IN_type_symbol = param_data_type;
       
  1826             last_type_symbol = param_data_type;
       
  1827             
       
  1828             if (typeid(*last_type_symbol) == typeid(sint_type_name_c))
       
  1829             {
       
  1830         
       
  1831                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  1832                 s4o.print("(");
       
  1833                 return_type_symbol->accept(*this);
       
  1834                 s4o.print(")__int_to_time(");
       
  1835                 IN_param_value->accept(*this);
       
  1836                 s4o.print(")");
       
  1837                 return NULL;
       
  1838                 
       
  1839             }
       
  1840             
       
  1841             ERROR;
       
  1842         }
       
  1843         
       
  1844     }/*function_sint_to_dt*/
       
  1845     break;
       
  1846 
       
  1847 /****
       
  1848  *INT_TO_REAL
       
  1849  */
       
  1850     case function_int_to_real :
       
  1851     {
       
  1852         symbol_c *last_type_symbol = NULL;
       
  1853 
       
  1854         {
       
  1855             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1856             symbol_c *IN_param_value = &this->default_variable_name;
       
  1857         
       
  1858             symbol_c *IN_type_symbol = param_data_type;
       
  1859             last_type_symbol = param_data_type;
       
  1860             
       
  1861             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1862             {
       
  1863         
       
  1864                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  1865                 s4o.print("(");
       
  1866                 return_type_symbol->accept(*this);
       
  1867                 s4o.print(")");
       
  1868                 IN_param_value->accept(*this);
       
  1869                 return NULL;
       
  1870                 
       
  1871             }
       
  1872             
       
  1873             ERROR;
       
  1874         }
       
  1875         
       
  1876     }/*function_int_to_real*/
       
  1877     break;
       
  1878 
       
  1879 /****
       
  1880  *INT_TO_LREAL
       
  1881  */
       
  1882     case function_int_to_lreal :
       
  1883     {
       
  1884         symbol_c *last_type_symbol = NULL;
       
  1885 
       
  1886         {
       
  1887             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1888             symbol_c *IN_param_value = &this->default_variable_name;
       
  1889         
       
  1890             symbol_c *IN_type_symbol = param_data_type;
       
  1891             last_type_symbol = param_data_type;
       
  1892             
       
  1893             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1894             {
       
  1895         
       
  1896                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  1897                 s4o.print("(");
       
  1898                 return_type_symbol->accept(*this);
       
  1899                 s4o.print(")");
       
  1900                 IN_param_value->accept(*this);
       
  1901                 return NULL;
       
  1902                 
       
  1903             }
       
  1904             
       
  1905             ERROR;
       
  1906         }
       
  1907         
       
  1908     }/*function_int_to_lreal*/
       
  1909     break;
       
  1910 
       
  1911 /****
       
  1912  *INT_TO_SINT
       
  1913  */
       
  1914     case function_int_to_sint :
       
  1915     {
       
  1916         symbol_c *last_type_symbol = NULL;
       
  1917 
       
  1918         {
       
  1919             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1920             symbol_c *IN_param_value = &this->default_variable_name;
       
  1921         
       
  1922             symbol_c *IN_type_symbol = param_data_type;
       
  1923             last_type_symbol = param_data_type;
       
  1924             
       
  1925             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1926             {
       
  1927         
       
  1928                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  1929                 s4o.print("(");
       
  1930                 return_type_symbol->accept(*this);
       
  1931                 s4o.print(")");
       
  1932                 IN_param_value->accept(*this);
       
  1933                 return NULL;
       
  1934                 
       
  1935             }
       
  1936             
       
  1937             ERROR;
       
  1938         }
       
  1939         
       
  1940     }/*function_int_to_sint*/
       
  1941     break;
       
  1942 
       
  1943 /****
       
  1944  *INT_TO_DINT
       
  1945  */
       
  1946     case function_int_to_dint :
       
  1947     {
       
  1948         symbol_c *last_type_symbol = NULL;
       
  1949 
       
  1950         {
       
  1951             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1952             symbol_c *IN_param_value = &this->default_variable_name;
       
  1953         
       
  1954             symbol_c *IN_type_symbol = param_data_type;
       
  1955             last_type_symbol = param_data_type;
       
  1956             
       
  1957             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1958             {
       
  1959         
       
  1960                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  1961                 s4o.print("(");
       
  1962                 return_type_symbol->accept(*this);
       
  1963                 s4o.print(")");
       
  1964                 IN_param_value->accept(*this);
       
  1965                 return NULL;
       
  1966                 
       
  1967             }
       
  1968             
       
  1969             ERROR;
       
  1970         }
       
  1971         
       
  1972     }/*function_int_to_dint*/
       
  1973     break;
       
  1974 
       
  1975 /****
       
  1976  *INT_TO_LINT
       
  1977  */
       
  1978     case function_int_to_lint :
       
  1979     {
       
  1980         symbol_c *last_type_symbol = NULL;
       
  1981 
       
  1982         {
       
  1983             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  1984             symbol_c *IN_param_value = &this->default_variable_name;
       
  1985         
       
  1986             symbol_c *IN_type_symbol = param_data_type;
       
  1987             last_type_symbol = param_data_type;
       
  1988             
       
  1989             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  1990             {
       
  1991         
       
  1992                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  1993                 s4o.print("(");
       
  1994                 return_type_symbol->accept(*this);
       
  1995                 s4o.print(")");
       
  1996                 IN_param_value->accept(*this);
       
  1997                 return NULL;
       
  1998                 
       
  1999             }
       
  2000             
       
  2001             ERROR;
       
  2002         }
       
  2003         
       
  2004     }/*function_int_to_lint*/
       
  2005     break;
       
  2006 
       
  2007 /****
       
  2008  *INT_TO_USINT
       
  2009  */
       
  2010     case function_int_to_usint :
       
  2011     {
       
  2012         symbol_c *last_type_symbol = NULL;
       
  2013 
       
  2014         {
       
  2015             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2016             symbol_c *IN_param_value = &this->default_variable_name;
       
  2017         
       
  2018             symbol_c *IN_type_symbol = param_data_type;
       
  2019             last_type_symbol = param_data_type;
       
  2020             
       
  2021             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2022             {
       
  2023         
       
  2024                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  2025                 s4o.print("(");
       
  2026                 return_type_symbol->accept(*this);
       
  2027                 s4o.print(")");
       
  2028                 IN_param_value->accept(*this);
       
  2029                 return NULL;
       
  2030                 
       
  2031             }
       
  2032             
       
  2033             ERROR;
       
  2034         }
       
  2035         
       
  2036     }/*function_int_to_usint*/
       
  2037     break;
       
  2038 
       
  2039 /****
       
  2040  *INT_TO_UINT
       
  2041  */
       
  2042     case function_int_to_uint :
       
  2043     {
       
  2044         symbol_c *last_type_symbol = NULL;
       
  2045 
       
  2046         {
       
  2047             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2048             symbol_c *IN_param_value = &this->default_variable_name;
       
  2049         
       
  2050             symbol_c *IN_type_symbol = param_data_type;
       
  2051             last_type_symbol = param_data_type;
       
  2052             
       
  2053             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2054             {
       
  2055         
       
  2056                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  2057                 s4o.print("(");
       
  2058                 return_type_symbol->accept(*this);
       
  2059                 s4o.print(")");
       
  2060                 IN_param_value->accept(*this);
       
  2061                 return NULL;
       
  2062                 
       
  2063             }
       
  2064             
       
  2065             ERROR;
       
  2066         }
       
  2067         
       
  2068     }/*function_int_to_uint*/
       
  2069     break;
       
  2070 
       
  2071 /****
       
  2072  *INT_TO_UDINT
       
  2073  */
       
  2074     case function_int_to_udint :
       
  2075     {
       
  2076         symbol_c *last_type_symbol = NULL;
       
  2077 
       
  2078         {
       
  2079             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2080             symbol_c *IN_param_value = &this->default_variable_name;
       
  2081         
       
  2082             symbol_c *IN_type_symbol = param_data_type;
       
  2083             last_type_symbol = param_data_type;
       
  2084             
       
  2085             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2086             {
       
  2087         
       
  2088                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  2089                 s4o.print("(");
       
  2090                 return_type_symbol->accept(*this);
       
  2091                 s4o.print(")");
       
  2092                 IN_param_value->accept(*this);
       
  2093                 return NULL;
       
  2094                 
       
  2095             }
       
  2096             
       
  2097             ERROR;
       
  2098         }
       
  2099         
       
  2100     }/*function_int_to_udint*/
       
  2101     break;
       
  2102 
       
  2103 /****
       
  2104  *INT_TO_ULINT
       
  2105  */
       
  2106     case function_int_to_ulint :
       
  2107     {
       
  2108         symbol_c *last_type_symbol = NULL;
       
  2109 
       
  2110         {
       
  2111             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2112             symbol_c *IN_param_value = &this->default_variable_name;
       
  2113         
       
  2114             symbol_c *IN_type_symbol = param_data_type;
       
  2115             last_type_symbol = param_data_type;
       
  2116             
       
  2117             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2118             {
       
  2119         
       
  2120                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  2121                 s4o.print("(");
       
  2122                 return_type_symbol->accept(*this);
       
  2123                 s4o.print(")");
       
  2124                 IN_param_value->accept(*this);
       
  2125                 return NULL;
       
  2126                 
       
  2127             }
       
  2128             
       
  2129             ERROR;
       
  2130         }
       
  2131         
       
  2132     }/*function_int_to_ulint*/
       
  2133     break;
       
  2134 
       
  2135 /****
       
  2136  *INT_TO_TIME
       
  2137  */
       
  2138     case function_int_to_time :
       
  2139     {
       
  2140         symbol_c *last_type_symbol = NULL;
       
  2141 
       
  2142         {
       
  2143             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2144             symbol_c *IN_param_value = &this->default_variable_name;
       
  2145         
       
  2146             symbol_c *IN_type_symbol = param_data_type;
       
  2147             last_type_symbol = param_data_type;
       
  2148             
       
  2149             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2150             {
       
  2151         
       
  2152                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  2153                 s4o.print("(");
       
  2154                 return_type_symbol->accept(*this);
       
  2155                 s4o.print(")__int_to_time(");
       
  2156                 IN_param_value->accept(*this);
       
  2157                 s4o.print(")");
       
  2158                 return NULL;
       
  2159                 
       
  2160             }
       
  2161             
       
  2162             ERROR;
       
  2163         }
       
  2164         
       
  2165     }/*function_int_to_time*/
       
  2166     break;
       
  2167 
       
  2168 /****
       
  2169  *INT_TO_BOOL
       
  2170  */
       
  2171     case function_int_to_bool :
       
  2172     {
       
  2173         symbol_c *last_type_symbol = NULL;
       
  2174 
       
  2175         {
       
  2176             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2177             symbol_c *IN_param_value = &this->default_variable_name;
       
  2178         
       
  2179             symbol_c *IN_type_symbol = param_data_type;
       
  2180             last_type_symbol = param_data_type;
       
  2181             
       
  2182             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2183             {
       
  2184         
       
  2185                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  2186                 s4o.print("(");
       
  2187                 return_type_symbol->accept(*this);
       
  2188                 s4o.print(")");
       
  2189                 IN_param_value->accept(*this);
       
  2190                 return NULL;
       
  2191                 
       
  2192             }
       
  2193             
       
  2194             ERROR;
       
  2195         }
       
  2196         
       
  2197     }/*function_int_to_bool*/
       
  2198     break;
       
  2199 
       
  2200 /****
       
  2201  *INT_TO_BYTE
       
  2202  */
       
  2203     case function_int_to_byte :
       
  2204     {
       
  2205         symbol_c *last_type_symbol = NULL;
       
  2206 
       
  2207         {
       
  2208             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2209             symbol_c *IN_param_value = &this->default_variable_name;
       
  2210         
       
  2211             symbol_c *IN_type_symbol = param_data_type;
       
  2212             last_type_symbol = param_data_type;
       
  2213             
       
  2214             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2215             {
       
  2216         
       
  2217                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  2218                 s4o.print("(");
       
  2219                 return_type_symbol->accept(*this);
       
  2220                 s4o.print(")");
       
  2221                 IN_param_value->accept(*this);
       
  2222                 return NULL;
       
  2223                 
       
  2224             }
       
  2225             
       
  2226             ERROR;
       
  2227         }
       
  2228         
       
  2229     }/*function_int_to_byte*/
       
  2230     break;
       
  2231 
       
  2232 /****
       
  2233  *INT_TO_WORD
       
  2234  */
       
  2235     case function_int_to_word :
       
  2236     {
       
  2237         symbol_c *last_type_symbol = NULL;
       
  2238 
       
  2239         {
       
  2240             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2241             symbol_c *IN_param_value = &this->default_variable_name;
       
  2242         
       
  2243             symbol_c *IN_type_symbol = param_data_type;
       
  2244             last_type_symbol = param_data_type;
       
  2245             
       
  2246             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2247             {
       
  2248         
       
  2249                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  2250                 s4o.print("(");
       
  2251                 return_type_symbol->accept(*this);
       
  2252                 s4o.print(")");
       
  2253                 IN_param_value->accept(*this);
       
  2254                 return NULL;
       
  2255                 
       
  2256             }
       
  2257             
       
  2258             ERROR;
       
  2259         }
       
  2260         
       
  2261     }/*function_int_to_word*/
       
  2262     break;
       
  2263 
       
  2264 /****
       
  2265  *INT_TO_DWORD
       
  2266  */
       
  2267     case function_int_to_dword :
       
  2268     {
       
  2269         symbol_c *last_type_symbol = NULL;
       
  2270 
       
  2271         {
       
  2272             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2273             symbol_c *IN_param_value = &this->default_variable_name;
       
  2274         
       
  2275             symbol_c *IN_type_symbol = param_data_type;
       
  2276             last_type_symbol = param_data_type;
       
  2277             
       
  2278             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2279             {
       
  2280         
       
  2281                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  2282                 s4o.print("(");
       
  2283                 return_type_symbol->accept(*this);
       
  2284                 s4o.print(")");
       
  2285                 IN_param_value->accept(*this);
       
  2286                 return NULL;
       
  2287                 
       
  2288             }
       
  2289             
       
  2290             ERROR;
       
  2291         }
       
  2292         
       
  2293     }/*function_int_to_dword*/
       
  2294     break;
       
  2295 
       
  2296 /****
       
  2297  *INT_TO_LWORD
       
  2298  */
       
  2299     case function_int_to_lword :
       
  2300     {
       
  2301         symbol_c *last_type_symbol = NULL;
       
  2302 
       
  2303         {
       
  2304             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2305             symbol_c *IN_param_value = &this->default_variable_name;
       
  2306         
       
  2307             symbol_c *IN_type_symbol = param_data_type;
       
  2308             last_type_symbol = param_data_type;
       
  2309             
       
  2310             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2311             {
       
  2312         
       
  2313                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  2314                 s4o.print("(");
       
  2315                 return_type_symbol->accept(*this);
       
  2316                 s4o.print(")");
       
  2317                 IN_param_value->accept(*this);
       
  2318                 return NULL;
       
  2319                 
       
  2320             }
       
  2321             
       
  2322             ERROR;
       
  2323         }
       
  2324         
       
  2325     }/*function_int_to_lword*/
       
  2326     break;
       
  2327 
       
  2328 /****
       
  2329  *INT_TO_STRING
       
  2330  */
       
  2331     case function_int_to_string :
       
  2332     {
       
  2333         symbol_c *last_type_symbol = NULL;
       
  2334 
       
  2335         {
       
  2336             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2337             symbol_c *IN_param_value = &this->default_variable_name;
       
  2338         
       
  2339             symbol_c *IN_type_symbol = param_data_type;
       
  2340             last_type_symbol = param_data_type;
       
  2341             
       
  2342             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2343             {
       
  2344         
       
  2345                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  2346                 s4o.print("(");
       
  2347                 return_type_symbol->accept(*this);
       
  2348                 s4o.print(")__sint_to_string(");
       
  2349                 IN_param_value->accept(*this);
       
  2350                 s4o.print(")");
       
  2351                 return NULL;
       
  2352                 
       
  2353             }
       
  2354             
       
  2355             ERROR;
       
  2356         }
       
  2357         
       
  2358     }/*function_int_to_string*/
       
  2359     break;
       
  2360 
       
  2361 /****
       
  2362  *INT_TO_DATE
       
  2363  */
       
  2364     case function_int_to_date :
       
  2365     {
       
  2366         symbol_c *last_type_symbol = NULL;
       
  2367 
       
  2368         {
       
  2369             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2370             symbol_c *IN_param_value = &this->default_variable_name;
       
  2371         
       
  2372             symbol_c *IN_type_symbol = param_data_type;
       
  2373             last_type_symbol = param_data_type;
       
  2374             
       
  2375             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2376             {
       
  2377         
       
  2378                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  2379                 s4o.print("(");
       
  2380                 return_type_symbol->accept(*this);
       
  2381                 s4o.print(")__int_to_time(");
       
  2382                 IN_param_value->accept(*this);
       
  2383                 s4o.print(")");
       
  2384                 return NULL;
       
  2385                 
       
  2386             }
       
  2387             
       
  2388             ERROR;
       
  2389         }
       
  2390         
       
  2391     }/*function_int_to_date*/
       
  2392     break;
       
  2393 
       
  2394 /****
       
  2395  *INT_TO_TOD
       
  2396  */
       
  2397     case function_int_to_tod :
       
  2398     {
       
  2399         symbol_c *last_type_symbol = NULL;
       
  2400 
       
  2401         {
       
  2402             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2403             symbol_c *IN_param_value = &this->default_variable_name;
       
  2404         
       
  2405             symbol_c *IN_type_symbol = param_data_type;
       
  2406             last_type_symbol = param_data_type;
       
  2407             
       
  2408             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2409             {
       
  2410         
       
  2411                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  2412                 s4o.print("(");
       
  2413                 return_type_symbol->accept(*this);
       
  2414                 s4o.print(")__int_to_time(");
       
  2415                 IN_param_value->accept(*this);
       
  2416                 s4o.print(")");
       
  2417                 return NULL;
       
  2418                 
       
  2419             }
       
  2420             
       
  2421             ERROR;
       
  2422         }
       
  2423         
       
  2424     }/*function_int_to_tod*/
       
  2425     break;
       
  2426 
       
  2427 /****
       
  2428  *INT_TO_DT
       
  2429  */
       
  2430     case function_int_to_dt :
       
  2431     {
       
  2432         symbol_c *last_type_symbol = NULL;
       
  2433 
       
  2434         {
       
  2435             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2436             symbol_c *IN_param_value = &this->default_variable_name;
       
  2437         
       
  2438             symbol_c *IN_type_symbol = param_data_type;
       
  2439             last_type_symbol = param_data_type;
       
  2440             
       
  2441             if (typeid(*last_type_symbol) == typeid(int_type_name_c))
       
  2442             {
       
  2443         
       
  2444                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  2445                 s4o.print("(");
       
  2446                 return_type_symbol->accept(*this);
       
  2447                 s4o.print(")__int_to_time(");
       
  2448                 IN_param_value->accept(*this);
       
  2449                 s4o.print(")");
       
  2450                 return NULL;
       
  2451                 
       
  2452             }
       
  2453             
       
  2454             ERROR;
       
  2455         }
       
  2456         
       
  2457     }/*function_int_to_dt*/
       
  2458     break;
       
  2459 
       
  2460 /****
       
  2461  *DINT_TO_REAL
       
  2462  */
       
  2463     case function_dint_to_real :
       
  2464     {
       
  2465         symbol_c *last_type_symbol = NULL;
       
  2466 
       
  2467         {
       
  2468             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2469             symbol_c *IN_param_value = &this->default_variable_name;
       
  2470         
       
  2471             symbol_c *IN_type_symbol = param_data_type;
       
  2472             last_type_symbol = param_data_type;
       
  2473             
       
  2474             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2475             {
       
  2476         
       
  2477                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  2478                 s4o.print("(");
       
  2479                 return_type_symbol->accept(*this);
       
  2480                 s4o.print(")");
       
  2481                 IN_param_value->accept(*this);
       
  2482                 return NULL;
       
  2483                 
       
  2484             }
       
  2485             
       
  2486             ERROR;
       
  2487         }
       
  2488         
       
  2489     }/*function_dint_to_real*/
       
  2490     break;
       
  2491 
       
  2492 /****
       
  2493  *DINT_TO_LREAL
       
  2494  */
       
  2495     case function_dint_to_lreal :
       
  2496     {
       
  2497         symbol_c *last_type_symbol = NULL;
       
  2498 
       
  2499         {
       
  2500             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2501             symbol_c *IN_param_value = &this->default_variable_name;
       
  2502         
       
  2503             symbol_c *IN_type_symbol = param_data_type;
       
  2504             last_type_symbol = param_data_type;
       
  2505             
       
  2506             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2507             {
       
  2508         
       
  2509                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  2510                 s4o.print("(");
       
  2511                 return_type_symbol->accept(*this);
       
  2512                 s4o.print(")");
       
  2513                 IN_param_value->accept(*this);
       
  2514                 return NULL;
       
  2515                 
       
  2516             }
       
  2517             
       
  2518             ERROR;
       
  2519         }
       
  2520         
       
  2521     }/*function_dint_to_lreal*/
       
  2522     break;
       
  2523 
       
  2524 /****
       
  2525  *DINT_TO_SINT
       
  2526  */
       
  2527     case function_dint_to_sint :
       
  2528     {
       
  2529         symbol_c *last_type_symbol = NULL;
       
  2530 
       
  2531         {
       
  2532             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2533             symbol_c *IN_param_value = &this->default_variable_name;
       
  2534         
       
  2535             symbol_c *IN_type_symbol = param_data_type;
       
  2536             last_type_symbol = param_data_type;
       
  2537             
       
  2538             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2539             {
       
  2540         
       
  2541                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  2542                 s4o.print("(");
       
  2543                 return_type_symbol->accept(*this);
       
  2544                 s4o.print(")");
       
  2545                 IN_param_value->accept(*this);
       
  2546                 return NULL;
       
  2547                 
       
  2548             }
       
  2549             
       
  2550             ERROR;
       
  2551         }
       
  2552         
       
  2553     }/*function_dint_to_sint*/
       
  2554     break;
       
  2555 
       
  2556 /****
       
  2557  *DINT_TO_INT
       
  2558  */
       
  2559     case function_dint_to_int :
       
  2560     {
       
  2561         symbol_c *last_type_symbol = NULL;
       
  2562 
       
  2563         {
       
  2564             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2565             symbol_c *IN_param_value = &this->default_variable_name;
       
  2566         
       
  2567             symbol_c *IN_type_symbol = param_data_type;
       
  2568             last_type_symbol = param_data_type;
       
  2569             
       
  2570             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2571             {
       
  2572         
       
  2573                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  2574                 s4o.print("(");
       
  2575                 return_type_symbol->accept(*this);
       
  2576                 s4o.print(")");
       
  2577                 IN_param_value->accept(*this);
       
  2578                 return NULL;
       
  2579                 
       
  2580             }
       
  2581             
       
  2582             ERROR;
       
  2583         }
       
  2584         
       
  2585     }/*function_dint_to_int*/
       
  2586     break;
       
  2587 
       
  2588 /****
       
  2589  *DINT_TO_LINT
       
  2590  */
       
  2591     case function_dint_to_lint :
       
  2592     {
       
  2593         symbol_c *last_type_symbol = NULL;
       
  2594 
       
  2595         {
       
  2596             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2597             symbol_c *IN_param_value = &this->default_variable_name;
       
  2598         
       
  2599             symbol_c *IN_type_symbol = param_data_type;
       
  2600             last_type_symbol = param_data_type;
       
  2601             
       
  2602             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2603             {
       
  2604         
       
  2605                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  2606                 s4o.print("(");
       
  2607                 return_type_symbol->accept(*this);
       
  2608                 s4o.print(")");
       
  2609                 IN_param_value->accept(*this);
       
  2610                 return NULL;
       
  2611                 
       
  2612             }
       
  2613             
       
  2614             ERROR;
       
  2615         }
       
  2616         
       
  2617     }/*function_dint_to_lint*/
       
  2618     break;
       
  2619 
       
  2620 /****
       
  2621  *DINT_TO_USINT
       
  2622  */
       
  2623     case function_dint_to_usint :
       
  2624     {
       
  2625         symbol_c *last_type_symbol = NULL;
       
  2626 
       
  2627         {
       
  2628             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2629             symbol_c *IN_param_value = &this->default_variable_name;
       
  2630         
       
  2631             symbol_c *IN_type_symbol = param_data_type;
       
  2632             last_type_symbol = param_data_type;
       
  2633             
       
  2634             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2635             {
       
  2636         
       
  2637                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  2638                 s4o.print("(");
       
  2639                 return_type_symbol->accept(*this);
       
  2640                 s4o.print(")");
       
  2641                 IN_param_value->accept(*this);
       
  2642                 return NULL;
       
  2643                 
       
  2644             }
       
  2645             
       
  2646             ERROR;
       
  2647         }
       
  2648         
       
  2649     }/*function_dint_to_usint*/
       
  2650     break;
       
  2651 
       
  2652 /****
       
  2653  *DINT_TO_UINT
       
  2654  */
       
  2655     case function_dint_to_uint :
       
  2656     {
       
  2657         symbol_c *last_type_symbol = NULL;
       
  2658 
       
  2659         {
       
  2660             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2661             symbol_c *IN_param_value = &this->default_variable_name;
       
  2662         
       
  2663             symbol_c *IN_type_symbol = param_data_type;
       
  2664             last_type_symbol = param_data_type;
       
  2665             
       
  2666             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2667             {
       
  2668         
       
  2669                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  2670                 s4o.print("(");
       
  2671                 return_type_symbol->accept(*this);
       
  2672                 s4o.print(")");
       
  2673                 IN_param_value->accept(*this);
       
  2674                 return NULL;
       
  2675                 
       
  2676             }
       
  2677             
       
  2678             ERROR;
       
  2679         }
       
  2680         
       
  2681     }/*function_dint_to_uint*/
       
  2682     break;
       
  2683 
       
  2684 /****
       
  2685  *DINT_TO_UDINT
       
  2686  */
       
  2687     case function_dint_to_udint :
       
  2688     {
       
  2689         symbol_c *last_type_symbol = NULL;
       
  2690 
       
  2691         {
       
  2692             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2693             symbol_c *IN_param_value = &this->default_variable_name;
       
  2694         
       
  2695             symbol_c *IN_type_symbol = param_data_type;
       
  2696             last_type_symbol = param_data_type;
       
  2697             
       
  2698             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2699             {
       
  2700         
       
  2701                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  2702                 s4o.print("(");
       
  2703                 return_type_symbol->accept(*this);
       
  2704                 s4o.print(")");
       
  2705                 IN_param_value->accept(*this);
       
  2706                 return NULL;
       
  2707                 
       
  2708             }
       
  2709             
       
  2710             ERROR;
       
  2711         }
       
  2712         
       
  2713     }/*function_dint_to_udint*/
       
  2714     break;
       
  2715 
       
  2716 /****
       
  2717  *DINT_TO_ULINT
       
  2718  */
       
  2719     case function_dint_to_ulint :
       
  2720     {
       
  2721         symbol_c *last_type_symbol = NULL;
       
  2722 
       
  2723         {
       
  2724             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2725             symbol_c *IN_param_value = &this->default_variable_name;
       
  2726         
       
  2727             symbol_c *IN_type_symbol = param_data_type;
       
  2728             last_type_symbol = param_data_type;
       
  2729             
       
  2730             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2731             {
       
  2732         
       
  2733                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  2734                 s4o.print("(");
       
  2735                 return_type_symbol->accept(*this);
       
  2736                 s4o.print(")");
       
  2737                 IN_param_value->accept(*this);
       
  2738                 return NULL;
       
  2739                 
       
  2740             }
       
  2741             
       
  2742             ERROR;
       
  2743         }
       
  2744         
       
  2745     }/*function_dint_to_ulint*/
       
  2746     break;
       
  2747 
       
  2748 /****
       
  2749  *DINT_TO_TIME
       
  2750  */
       
  2751     case function_dint_to_time :
       
  2752     {
       
  2753         symbol_c *last_type_symbol = NULL;
       
  2754 
       
  2755         {
       
  2756             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2757             symbol_c *IN_param_value = &this->default_variable_name;
       
  2758         
       
  2759             symbol_c *IN_type_symbol = param_data_type;
       
  2760             last_type_symbol = param_data_type;
       
  2761             
       
  2762             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2763             {
       
  2764         
       
  2765                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  2766                 s4o.print("(");
       
  2767                 return_type_symbol->accept(*this);
       
  2768                 s4o.print(")__int_to_time(");
       
  2769                 IN_param_value->accept(*this);
       
  2770                 s4o.print(")");
       
  2771                 return NULL;
       
  2772                 
       
  2773             }
       
  2774             
       
  2775             ERROR;
       
  2776         }
       
  2777         
       
  2778     }/*function_dint_to_time*/
       
  2779     break;
       
  2780 
       
  2781 /****
       
  2782  *DINT_TO_BOOL
       
  2783  */
       
  2784     case function_dint_to_bool :
       
  2785     {
       
  2786         symbol_c *last_type_symbol = NULL;
       
  2787 
       
  2788         {
       
  2789             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2790             symbol_c *IN_param_value = &this->default_variable_name;
       
  2791         
       
  2792             symbol_c *IN_type_symbol = param_data_type;
       
  2793             last_type_symbol = param_data_type;
       
  2794             
       
  2795             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2796             {
       
  2797         
       
  2798                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  2799                 s4o.print("(");
       
  2800                 return_type_symbol->accept(*this);
       
  2801                 s4o.print(")");
       
  2802                 IN_param_value->accept(*this);
       
  2803                 return NULL;
       
  2804                 
       
  2805             }
       
  2806             
       
  2807             ERROR;
       
  2808         }
       
  2809         
       
  2810     }/*function_dint_to_bool*/
       
  2811     break;
       
  2812 
       
  2813 /****
       
  2814  *DINT_TO_BYTE
       
  2815  */
       
  2816     case function_dint_to_byte :
       
  2817     {
       
  2818         symbol_c *last_type_symbol = NULL;
       
  2819 
       
  2820         {
       
  2821             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2822             symbol_c *IN_param_value = &this->default_variable_name;
       
  2823         
       
  2824             symbol_c *IN_type_symbol = param_data_type;
       
  2825             last_type_symbol = param_data_type;
       
  2826             
       
  2827             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2828             {
       
  2829         
       
  2830                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  2831                 s4o.print("(");
       
  2832                 return_type_symbol->accept(*this);
       
  2833                 s4o.print(")");
       
  2834                 IN_param_value->accept(*this);
       
  2835                 return NULL;
       
  2836                 
       
  2837             }
       
  2838             
       
  2839             ERROR;
       
  2840         }
       
  2841         
       
  2842     }/*function_dint_to_byte*/
       
  2843     break;
       
  2844 
       
  2845 /****
       
  2846  *DINT_TO_WORD
       
  2847  */
       
  2848     case function_dint_to_word :
       
  2849     {
       
  2850         symbol_c *last_type_symbol = NULL;
       
  2851 
       
  2852         {
       
  2853             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2854             symbol_c *IN_param_value = &this->default_variable_name;
       
  2855         
       
  2856             symbol_c *IN_type_symbol = param_data_type;
       
  2857             last_type_symbol = param_data_type;
       
  2858             
       
  2859             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2860             {
       
  2861         
       
  2862                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  2863                 s4o.print("(");
       
  2864                 return_type_symbol->accept(*this);
       
  2865                 s4o.print(")");
       
  2866                 IN_param_value->accept(*this);
       
  2867                 return NULL;
       
  2868                 
       
  2869             }
       
  2870             
       
  2871             ERROR;
       
  2872         }
       
  2873         
       
  2874     }/*function_dint_to_word*/
       
  2875     break;
       
  2876 
       
  2877 /****
       
  2878  *DINT_TO_DWORD
       
  2879  */
       
  2880     case function_dint_to_dword :
       
  2881     {
       
  2882         symbol_c *last_type_symbol = NULL;
       
  2883 
       
  2884         {
       
  2885             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2886             symbol_c *IN_param_value = &this->default_variable_name;
       
  2887         
       
  2888             symbol_c *IN_type_symbol = param_data_type;
       
  2889             last_type_symbol = param_data_type;
       
  2890             
       
  2891             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2892             {
       
  2893         
       
  2894                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  2895                 s4o.print("(");
       
  2896                 return_type_symbol->accept(*this);
       
  2897                 s4o.print(")");
       
  2898                 IN_param_value->accept(*this);
       
  2899                 return NULL;
       
  2900                 
       
  2901             }
       
  2902             
       
  2903             ERROR;
       
  2904         }
       
  2905         
       
  2906     }/*function_dint_to_dword*/
       
  2907     break;
       
  2908 
       
  2909 /****
       
  2910  *DINT_TO_LWORD
       
  2911  */
       
  2912     case function_dint_to_lword :
       
  2913     {
       
  2914         symbol_c *last_type_symbol = NULL;
       
  2915 
       
  2916         {
       
  2917             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2918             symbol_c *IN_param_value = &this->default_variable_name;
       
  2919         
       
  2920             symbol_c *IN_type_symbol = param_data_type;
       
  2921             last_type_symbol = param_data_type;
       
  2922             
       
  2923             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2924             {
       
  2925         
       
  2926                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  2927                 s4o.print("(");
       
  2928                 return_type_symbol->accept(*this);
       
  2929                 s4o.print(")");
       
  2930                 IN_param_value->accept(*this);
       
  2931                 return NULL;
       
  2932                 
       
  2933             }
       
  2934             
       
  2935             ERROR;
       
  2936         }
       
  2937         
       
  2938     }/*function_dint_to_lword*/
       
  2939     break;
       
  2940 
       
  2941 /****
       
  2942  *DINT_TO_STRING
       
  2943  */
       
  2944     case function_dint_to_string :
       
  2945     {
       
  2946         symbol_c *last_type_symbol = NULL;
       
  2947 
       
  2948         {
       
  2949             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2950             symbol_c *IN_param_value = &this->default_variable_name;
       
  2951         
       
  2952             symbol_c *IN_type_symbol = param_data_type;
       
  2953             last_type_symbol = param_data_type;
       
  2954             
       
  2955             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2956             {
       
  2957         
       
  2958                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  2959                 s4o.print("(");
       
  2960                 return_type_symbol->accept(*this);
       
  2961                 s4o.print(")__sint_to_string(");
       
  2962                 IN_param_value->accept(*this);
       
  2963                 s4o.print(")");
       
  2964                 return NULL;
       
  2965                 
       
  2966             }
       
  2967             
       
  2968             ERROR;
       
  2969         }
       
  2970         
       
  2971     }/*function_dint_to_string*/
       
  2972     break;
       
  2973 
       
  2974 /****
       
  2975  *DINT_TO_DATE
       
  2976  */
       
  2977     case function_dint_to_date :
       
  2978     {
       
  2979         symbol_c *last_type_symbol = NULL;
       
  2980 
       
  2981         {
       
  2982             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  2983             symbol_c *IN_param_value = &this->default_variable_name;
       
  2984         
       
  2985             symbol_c *IN_type_symbol = param_data_type;
       
  2986             last_type_symbol = param_data_type;
       
  2987             
       
  2988             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  2989             {
       
  2990         
       
  2991                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  2992                 s4o.print("(");
       
  2993                 return_type_symbol->accept(*this);
       
  2994                 s4o.print(")__int_to_time(");
       
  2995                 IN_param_value->accept(*this);
       
  2996                 s4o.print(")");
       
  2997                 return NULL;
       
  2998                 
       
  2999             }
       
  3000             
       
  3001             ERROR;
       
  3002         }
       
  3003         
       
  3004     }/*function_dint_to_date*/
       
  3005     break;
       
  3006 
       
  3007 /****
       
  3008  *DINT_TO_TOD
       
  3009  */
       
  3010     case function_dint_to_tod :
       
  3011     {
       
  3012         symbol_c *last_type_symbol = NULL;
       
  3013 
       
  3014         {
       
  3015             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3016             symbol_c *IN_param_value = &this->default_variable_name;
       
  3017         
       
  3018             symbol_c *IN_type_symbol = param_data_type;
       
  3019             last_type_symbol = param_data_type;
       
  3020             
       
  3021             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  3022             {
       
  3023         
       
  3024                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  3025                 s4o.print("(");
       
  3026                 return_type_symbol->accept(*this);
       
  3027                 s4o.print(")__int_to_time(");
       
  3028                 IN_param_value->accept(*this);
       
  3029                 s4o.print(")");
       
  3030                 return NULL;
       
  3031                 
       
  3032             }
       
  3033             
       
  3034             ERROR;
       
  3035         }
       
  3036         
       
  3037     }/*function_dint_to_tod*/
       
  3038     break;
       
  3039 
       
  3040 /****
       
  3041  *DINT_TO_DT
       
  3042  */
       
  3043     case function_dint_to_dt :
       
  3044     {
       
  3045         symbol_c *last_type_symbol = NULL;
       
  3046 
       
  3047         {
       
  3048             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3049             symbol_c *IN_param_value = &this->default_variable_name;
       
  3050         
       
  3051             symbol_c *IN_type_symbol = param_data_type;
       
  3052             last_type_symbol = param_data_type;
       
  3053             
       
  3054             if (typeid(*last_type_symbol) == typeid(dint_type_name_c))
       
  3055             {
       
  3056         
       
  3057                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  3058                 s4o.print("(");
       
  3059                 return_type_symbol->accept(*this);
       
  3060                 s4o.print(")__int_to_time(");
       
  3061                 IN_param_value->accept(*this);
       
  3062                 s4o.print(")");
       
  3063                 return NULL;
       
  3064                 
       
  3065             }
       
  3066             
       
  3067             ERROR;
       
  3068         }
       
  3069         
       
  3070     }/*function_dint_to_dt*/
       
  3071     break;
       
  3072 
       
  3073 /****
       
  3074  *LINT_TO_REAL
       
  3075  */
       
  3076     case function_lint_to_real :
       
  3077     {
       
  3078         symbol_c *last_type_symbol = NULL;
       
  3079 
       
  3080         {
       
  3081             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3082             symbol_c *IN_param_value = &this->default_variable_name;
       
  3083         
       
  3084             symbol_c *IN_type_symbol = param_data_type;
       
  3085             last_type_symbol = param_data_type;
       
  3086             
       
  3087             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3088             {
       
  3089         
       
  3090                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  3091                 s4o.print("(");
       
  3092                 return_type_symbol->accept(*this);
       
  3093                 s4o.print(")");
       
  3094                 IN_param_value->accept(*this);
       
  3095                 return NULL;
       
  3096                 
       
  3097             }
       
  3098             
       
  3099             ERROR;
       
  3100         }
       
  3101         
       
  3102     }/*function_lint_to_real*/
       
  3103     break;
       
  3104 
       
  3105 /****
       
  3106  *LINT_TO_LREAL
       
  3107  */
       
  3108     case function_lint_to_lreal :
       
  3109     {
       
  3110         symbol_c *last_type_symbol = NULL;
       
  3111 
       
  3112         {
       
  3113             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3114             symbol_c *IN_param_value = &this->default_variable_name;
       
  3115         
       
  3116             symbol_c *IN_type_symbol = param_data_type;
       
  3117             last_type_symbol = param_data_type;
       
  3118             
       
  3119             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3120             {
       
  3121         
       
  3122                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  3123                 s4o.print("(");
       
  3124                 return_type_symbol->accept(*this);
       
  3125                 s4o.print(")");
       
  3126                 IN_param_value->accept(*this);
       
  3127                 return NULL;
       
  3128                 
       
  3129             }
       
  3130             
       
  3131             ERROR;
       
  3132         }
       
  3133         
       
  3134     }/*function_lint_to_lreal*/
       
  3135     break;
       
  3136 
       
  3137 /****
       
  3138  *LINT_TO_SINT
       
  3139  */
       
  3140     case function_lint_to_sint :
       
  3141     {
       
  3142         symbol_c *last_type_symbol = NULL;
       
  3143 
       
  3144         {
       
  3145             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3146             symbol_c *IN_param_value = &this->default_variable_name;
       
  3147         
       
  3148             symbol_c *IN_type_symbol = param_data_type;
       
  3149             last_type_symbol = param_data_type;
       
  3150             
       
  3151             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3152             {
       
  3153         
       
  3154                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  3155                 s4o.print("(");
       
  3156                 return_type_symbol->accept(*this);
       
  3157                 s4o.print(")");
       
  3158                 IN_param_value->accept(*this);
       
  3159                 return NULL;
       
  3160                 
       
  3161             }
       
  3162             
       
  3163             ERROR;
       
  3164         }
       
  3165         
       
  3166     }/*function_lint_to_sint*/
       
  3167     break;
       
  3168 
       
  3169 /****
       
  3170  *LINT_TO_INT
       
  3171  */
       
  3172     case function_lint_to_int :
       
  3173     {
       
  3174         symbol_c *last_type_symbol = NULL;
       
  3175 
       
  3176         {
       
  3177             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3178             symbol_c *IN_param_value = &this->default_variable_name;
       
  3179         
       
  3180             symbol_c *IN_type_symbol = param_data_type;
       
  3181             last_type_symbol = param_data_type;
       
  3182             
       
  3183             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3184             {
       
  3185         
       
  3186                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  3187                 s4o.print("(");
       
  3188                 return_type_symbol->accept(*this);
       
  3189                 s4o.print(")");
       
  3190                 IN_param_value->accept(*this);
       
  3191                 return NULL;
       
  3192                 
       
  3193             }
       
  3194             
       
  3195             ERROR;
       
  3196         }
       
  3197         
       
  3198     }/*function_lint_to_int*/
       
  3199     break;
       
  3200 
       
  3201 /****
       
  3202  *LINT_TO_DINT
       
  3203  */
       
  3204     case function_lint_to_dint :
       
  3205     {
       
  3206         symbol_c *last_type_symbol = NULL;
       
  3207 
       
  3208         {
       
  3209             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3210             symbol_c *IN_param_value = &this->default_variable_name;
       
  3211         
       
  3212             symbol_c *IN_type_symbol = param_data_type;
       
  3213             last_type_symbol = param_data_type;
       
  3214             
       
  3215             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3216             {
       
  3217         
       
  3218                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  3219                 s4o.print("(");
       
  3220                 return_type_symbol->accept(*this);
       
  3221                 s4o.print(")");
       
  3222                 IN_param_value->accept(*this);
       
  3223                 return NULL;
       
  3224                 
       
  3225             }
       
  3226             
       
  3227             ERROR;
       
  3228         }
       
  3229         
       
  3230     }/*function_lint_to_dint*/
       
  3231     break;
       
  3232 
       
  3233 /****
       
  3234  *LINT_TO_USINT
       
  3235  */
       
  3236     case function_lint_to_usint :
       
  3237     {
       
  3238         symbol_c *last_type_symbol = NULL;
       
  3239 
       
  3240         {
       
  3241             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3242             symbol_c *IN_param_value = &this->default_variable_name;
       
  3243         
       
  3244             symbol_c *IN_type_symbol = param_data_type;
       
  3245             last_type_symbol = param_data_type;
       
  3246             
       
  3247             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3248             {
       
  3249         
       
  3250                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  3251                 s4o.print("(");
       
  3252                 return_type_symbol->accept(*this);
       
  3253                 s4o.print(")");
       
  3254                 IN_param_value->accept(*this);
       
  3255                 return NULL;
       
  3256                 
       
  3257             }
       
  3258             
       
  3259             ERROR;
       
  3260         }
       
  3261         
       
  3262     }/*function_lint_to_usint*/
       
  3263     break;
       
  3264 
       
  3265 /****
       
  3266  *LINT_TO_UINT
       
  3267  */
       
  3268     case function_lint_to_uint :
       
  3269     {
       
  3270         symbol_c *last_type_symbol = NULL;
       
  3271 
       
  3272         {
       
  3273             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3274             symbol_c *IN_param_value = &this->default_variable_name;
       
  3275         
       
  3276             symbol_c *IN_type_symbol = param_data_type;
       
  3277             last_type_symbol = param_data_type;
       
  3278             
       
  3279             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3280             {
       
  3281         
       
  3282                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  3283                 s4o.print("(");
       
  3284                 return_type_symbol->accept(*this);
       
  3285                 s4o.print(")");
       
  3286                 IN_param_value->accept(*this);
       
  3287                 return NULL;
       
  3288                 
       
  3289             }
       
  3290             
       
  3291             ERROR;
       
  3292         }
       
  3293         
       
  3294     }/*function_lint_to_uint*/
       
  3295     break;
       
  3296 
       
  3297 /****
       
  3298  *LINT_TO_UDINT
       
  3299  */
       
  3300     case function_lint_to_udint :
       
  3301     {
       
  3302         symbol_c *last_type_symbol = NULL;
       
  3303 
       
  3304         {
       
  3305             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3306             symbol_c *IN_param_value = &this->default_variable_name;
       
  3307         
       
  3308             symbol_c *IN_type_symbol = param_data_type;
       
  3309             last_type_symbol = param_data_type;
       
  3310             
       
  3311             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3312             {
       
  3313         
       
  3314                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  3315                 s4o.print("(");
       
  3316                 return_type_symbol->accept(*this);
       
  3317                 s4o.print(")");
       
  3318                 IN_param_value->accept(*this);
       
  3319                 return NULL;
       
  3320                 
       
  3321             }
       
  3322             
       
  3323             ERROR;
       
  3324         }
       
  3325         
       
  3326     }/*function_lint_to_udint*/
       
  3327     break;
       
  3328 
       
  3329 /****
       
  3330  *LINT_TO_ULINT
       
  3331  */
       
  3332     case function_lint_to_ulint :
       
  3333     {
       
  3334         symbol_c *last_type_symbol = NULL;
       
  3335 
       
  3336         {
       
  3337             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3338             symbol_c *IN_param_value = &this->default_variable_name;
       
  3339         
       
  3340             symbol_c *IN_type_symbol = param_data_type;
       
  3341             last_type_symbol = param_data_type;
       
  3342             
       
  3343             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3344             {
       
  3345         
       
  3346                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  3347                 s4o.print("(");
       
  3348                 return_type_symbol->accept(*this);
       
  3349                 s4o.print(")");
       
  3350                 IN_param_value->accept(*this);
       
  3351                 return NULL;
       
  3352                 
       
  3353             }
       
  3354             
       
  3355             ERROR;
       
  3356         }
       
  3357         
       
  3358     }/*function_lint_to_ulint*/
       
  3359     break;
       
  3360 
       
  3361 /****
       
  3362  *LINT_TO_TIME
       
  3363  */
       
  3364     case function_lint_to_time :
       
  3365     {
       
  3366         symbol_c *last_type_symbol = NULL;
       
  3367 
       
  3368         {
       
  3369             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3370             symbol_c *IN_param_value = &this->default_variable_name;
       
  3371         
       
  3372             symbol_c *IN_type_symbol = param_data_type;
       
  3373             last_type_symbol = param_data_type;
       
  3374             
       
  3375             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3376             {
       
  3377         
       
  3378                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  3379                 s4o.print("(");
       
  3380                 return_type_symbol->accept(*this);
       
  3381                 s4o.print(")__int_to_time(");
       
  3382                 IN_param_value->accept(*this);
       
  3383                 s4o.print(")");
       
  3384                 return NULL;
       
  3385                 
       
  3386             }
       
  3387             
       
  3388             ERROR;
       
  3389         }
       
  3390         
       
  3391     }/*function_lint_to_time*/
       
  3392     break;
       
  3393 
       
  3394 /****
       
  3395  *LINT_TO_BOOL
       
  3396  */
       
  3397     case function_lint_to_bool :
       
  3398     {
       
  3399         symbol_c *last_type_symbol = NULL;
       
  3400 
       
  3401         {
       
  3402             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3403             symbol_c *IN_param_value = &this->default_variable_name;
       
  3404         
       
  3405             symbol_c *IN_type_symbol = param_data_type;
       
  3406             last_type_symbol = param_data_type;
       
  3407             
       
  3408             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3409             {
       
  3410         
       
  3411                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  3412                 s4o.print("(");
       
  3413                 return_type_symbol->accept(*this);
       
  3414                 s4o.print(")");
       
  3415                 IN_param_value->accept(*this);
       
  3416                 return NULL;
       
  3417                 
       
  3418             }
       
  3419             
       
  3420             ERROR;
       
  3421         }
       
  3422         
       
  3423     }/*function_lint_to_bool*/
       
  3424     break;
       
  3425 
       
  3426 /****
       
  3427  *LINT_TO_BYTE
       
  3428  */
       
  3429     case function_lint_to_byte :
       
  3430     {
       
  3431         symbol_c *last_type_symbol = NULL;
       
  3432 
       
  3433         {
       
  3434             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3435             symbol_c *IN_param_value = &this->default_variable_name;
       
  3436         
       
  3437             symbol_c *IN_type_symbol = param_data_type;
       
  3438             last_type_symbol = param_data_type;
       
  3439             
       
  3440             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3441             {
       
  3442         
       
  3443                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  3444                 s4o.print("(");
       
  3445                 return_type_symbol->accept(*this);
       
  3446                 s4o.print(")");
       
  3447                 IN_param_value->accept(*this);
       
  3448                 return NULL;
       
  3449                 
       
  3450             }
       
  3451             
       
  3452             ERROR;
       
  3453         }
       
  3454         
       
  3455     }/*function_lint_to_byte*/
       
  3456     break;
       
  3457 
       
  3458 /****
       
  3459  *LINT_TO_WORD
       
  3460  */
       
  3461     case function_lint_to_word :
       
  3462     {
       
  3463         symbol_c *last_type_symbol = NULL;
       
  3464 
       
  3465         {
       
  3466             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3467             symbol_c *IN_param_value = &this->default_variable_name;
       
  3468         
       
  3469             symbol_c *IN_type_symbol = param_data_type;
       
  3470             last_type_symbol = param_data_type;
       
  3471             
       
  3472             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3473             {
       
  3474         
       
  3475                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  3476                 s4o.print("(");
       
  3477                 return_type_symbol->accept(*this);
       
  3478                 s4o.print(")");
       
  3479                 IN_param_value->accept(*this);
       
  3480                 return NULL;
       
  3481                 
       
  3482             }
       
  3483             
       
  3484             ERROR;
       
  3485         }
       
  3486         
       
  3487     }/*function_lint_to_word*/
       
  3488     break;
       
  3489 
       
  3490 /****
       
  3491  *LINT_TO_DWORD
       
  3492  */
       
  3493     case function_lint_to_dword :
       
  3494     {
       
  3495         symbol_c *last_type_symbol = NULL;
       
  3496 
       
  3497         {
       
  3498             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3499             symbol_c *IN_param_value = &this->default_variable_name;
       
  3500         
       
  3501             symbol_c *IN_type_symbol = param_data_type;
       
  3502             last_type_symbol = param_data_type;
       
  3503             
       
  3504             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3505             {
       
  3506         
       
  3507                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  3508                 s4o.print("(");
       
  3509                 return_type_symbol->accept(*this);
       
  3510                 s4o.print(")");
       
  3511                 IN_param_value->accept(*this);
       
  3512                 return NULL;
       
  3513                 
       
  3514             }
       
  3515             
       
  3516             ERROR;
       
  3517         }
       
  3518         
       
  3519     }/*function_lint_to_dword*/
       
  3520     break;
       
  3521 
       
  3522 /****
       
  3523  *LINT_TO_LWORD
       
  3524  */
       
  3525     case function_lint_to_lword :
       
  3526     {
       
  3527         symbol_c *last_type_symbol = NULL;
       
  3528 
       
  3529         {
       
  3530             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3531             symbol_c *IN_param_value = &this->default_variable_name;
       
  3532         
       
  3533             symbol_c *IN_type_symbol = param_data_type;
       
  3534             last_type_symbol = param_data_type;
       
  3535             
       
  3536             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3537             {
       
  3538         
       
  3539                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  3540                 s4o.print("(");
       
  3541                 return_type_symbol->accept(*this);
       
  3542                 s4o.print(")");
       
  3543                 IN_param_value->accept(*this);
       
  3544                 return NULL;
       
  3545                 
       
  3546             }
       
  3547             
       
  3548             ERROR;
       
  3549         }
       
  3550         
       
  3551     }/*function_lint_to_lword*/
       
  3552     break;
       
  3553 
       
  3554 /****
       
  3555  *LINT_TO_STRING
       
  3556  */
       
  3557     case function_lint_to_string :
       
  3558     {
       
  3559         symbol_c *last_type_symbol = NULL;
       
  3560 
       
  3561         {
       
  3562             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3563             symbol_c *IN_param_value = &this->default_variable_name;
       
  3564         
       
  3565             symbol_c *IN_type_symbol = param_data_type;
       
  3566             last_type_symbol = param_data_type;
       
  3567             
       
  3568             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3569             {
       
  3570         
       
  3571                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  3572                 s4o.print("(");
       
  3573                 return_type_symbol->accept(*this);
       
  3574                 s4o.print(")__sint_to_string(");
       
  3575                 IN_param_value->accept(*this);
       
  3576                 s4o.print(")");
       
  3577                 return NULL;
       
  3578                 
       
  3579             }
       
  3580             
       
  3581             ERROR;
       
  3582         }
       
  3583         
       
  3584     }/*function_lint_to_string*/
       
  3585     break;
       
  3586 
       
  3587 /****
       
  3588  *LINT_TO_DATE
       
  3589  */
       
  3590     case function_lint_to_date :
       
  3591     {
       
  3592         symbol_c *last_type_symbol = NULL;
       
  3593 
       
  3594         {
       
  3595             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3596             symbol_c *IN_param_value = &this->default_variable_name;
       
  3597         
       
  3598             symbol_c *IN_type_symbol = param_data_type;
       
  3599             last_type_symbol = param_data_type;
       
  3600             
       
  3601             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3602             {
       
  3603         
       
  3604                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  3605                 s4o.print("(");
       
  3606                 return_type_symbol->accept(*this);
       
  3607                 s4o.print(")__int_to_time(");
       
  3608                 IN_param_value->accept(*this);
       
  3609                 s4o.print(")");
       
  3610                 return NULL;
       
  3611                 
       
  3612             }
       
  3613             
       
  3614             ERROR;
       
  3615         }
       
  3616         
       
  3617     }/*function_lint_to_date*/
       
  3618     break;
       
  3619 
       
  3620 /****
       
  3621  *LINT_TO_TOD
       
  3622  */
       
  3623     case function_lint_to_tod :
       
  3624     {
       
  3625         symbol_c *last_type_symbol = NULL;
       
  3626 
       
  3627         {
       
  3628             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3629             symbol_c *IN_param_value = &this->default_variable_name;
       
  3630         
       
  3631             symbol_c *IN_type_symbol = param_data_type;
       
  3632             last_type_symbol = param_data_type;
       
  3633             
       
  3634             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3635             {
       
  3636         
       
  3637                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  3638                 s4o.print("(");
       
  3639                 return_type_symbol->accept(*this);
       
  3640                 s4o.print(")__int_to_time(");
       
  3641                 IN_param_value->accept(*this);
       
  3642                 s4o.print(")");
       
  3643                 return NULL;
       
  3644                 
       
  3645             }
       
  3646             
       
  3647             ERROR;
       
  3648         }
       
  3649         
       
  3650     }/*function_lint_to_tod*/
       
  3651     break;
       
  3652 
       
  3653 /****
       
  3654  *LINT_TO_DT
       
  3655  */
       
  3656     case function_lint_to_dt :
       
  3657     {
       
  3658         symbol_c *last_type_symbol = NULL;
       
  3659 
       
  3660         {
       
  3661             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3662             symbol_c *IN_param_value = &this->default_variable_name;
       
  3663         
       
  3664             symbol_c *IN_type_symbol = param_data_type;
       
  3665             last_type_symbol = param_data_type;
       
  3666             
       
  3667             if (typeid(*last_type_symbol) == typeid(lint_type_name_c))
       
  3668             {
       
  3669         
       
  3670                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  3671                 s4o.print("(");
       
  3672                 return_type_symbol->accept(*this);
       
  3673                 s4o.print(")__int_to_time(");
       
  3674                 IN_param_value->accept(*this);
       
  3675                 s4o.print(")");
       
  3676                 return NULL;
       
  3677                 
       
  3678             }
       
  3679             
       
  3680             ERROR;
       
  3681         }
       
  3682         
       
  3683     }/*function_lint_to_dt*/
       
  3684     break;
       
  3685 
       
  3686 /****
       
  3687  *USINT_TO_REAL
       
  3688  */
       
  3689     case function_usint_to_real :
       
  3690     {
       
  3691         symbol_c *last_type_symbol = NULL;
       
  3692 
       
  3693         {
       
  3694             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3695             symbol_c *IN_param_value = &this->default_variable_name;
       
  3696         
       
  3697             symbol_c *IN_type_symbol = param_data_type;
       
  3698             last_type_symbol = param_data_type;
       
  3699             
       
  3700             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3701             {
       
  3702         
       
  3703                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  3704                 s4o.print("(");
       
  3705                 return_type_symbol->accept(*this);
       
  3706                 s4o.print(")");
       
  3707                 IN_param_value->accept(*this);
       
  3708                 return NULL;
       
  3709                 
       
  3710             }
       
  3711             
       
  3712             ERROR;
       
  3713         }
       
  3714         
       
  3715     }/*function_usint_to_real*/
       
  3716     break;
       
  3717 
       
  3718 /****
       
  3719  *USINT_TO_LREAL
       
  3720  */
       
  3721     case function_usint_to_lreal :
       
  3722     {
       
  3723         symbol_c *last_type_symbol = NULL;
       
  3724 
       
  3725         {
       
  3726             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3727             symbol_c *IN_param_value = &this->default_variable_name;
       
  3728         
       
  3729             symbol_c *IN_type_symbol = param_data_type;
       
  3730             last_type_symbol = param_data_type;
       
  3731             
       
  3732             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3733             {
       
  3734         
       
  3735                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  3736                 s4o.print("(");
       
  3737                 return_type_symbol->accept(*this);
       
  3738                 s4o.print(")");
       
  3739                 IN_param_value->accept(*this);
       
  3740                 return NULL;
       
  3741                 
       
  3742             }
       
  3743             
       
  3744             ERROR;
       
  3745         }
       
  3746         
       
  3747     }/*function_usint_to_lreal*/
       
  3748     break;
       
  3749 
       
  3750 /****
       
  3751  *USINT_TO_SINT
       
  3752  */
       
  3753     case function_usint_to_sint :
       
  3754     {
       
  3755         symbol_c *last_type_symbol = NULL;
       
  3756 
       
  3757         {
       
  3758             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3759             symbol_c *IN_param_value = &this->default_variable_name;
       
  3760         
       
  3761             symbol_c *IN_type_symbol = param_data_type;
       
  3762             last_type_symbol = param_data_type;
       
  3763             
       
  3764             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3765             {
       
  3766         
       
  3767                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  3768                 s4o.print("(");
       
  3769                 return_type_symbol->accept(*this);
       
  3770                 s4o.print(")");
       
  3771                 IN_param_value->accept(*this);
       
  3772                 return NULL;
       
  3773                 
       
  3774             }
       
  3775             
       
  3776             ERROR;
       
  3777         }
       
  3778         
       
  3779     }/*function_usint_to_sint*/
       
  3780     break;
       
  3781 
       
  3782 /****
       
  3783  *USINT_TO_INT
       
  3784  */
       
  3785     case function_usint_to_int :
       
  3786     {
       
  3787         symbol_c *last_type_symbol = NULL;
       
  3788 
       
  3789         {
       
  3790             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3791             symbol_c *IN_param_value = &this->default_variable_name;
       
  3792         
       
  3793             symbol_c *IN_type_symbol = param_data_type;
       
  3794             last_type_symbol = param_data_type;
       
  3795             
       
  3796             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3797             {
       
  3798         
       
  3799                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  3800                 s4o.print("(");
       
  3801                 return_type_symbol->accept(*this);
       
  3802                 s4o.print(")");
       
  3803                 IN_param_value->accept(*this);
       
  3804                 return NULL;
       
  3805                 
       
  3806             }
       
  3807             
       
  3808             ERROR;
       
  3809         }
       
  3810         
       
  3811     }/*function_usint_to_int*/
       
  3812     break;
       
  3813 
       
  3814 /****
       
  3815  *USINT_TO_DINT
       
  3816  */
       
  3817     case function_usint_to_dint :
       
  3818     {
       
  3819         symbol_c *last_type_symbol = NULL;
       
  3820 
       
  3821         {
       
  3822             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3823             symbol_c *IN_param_value = &this->default_variable_name;
       
  3824         
       
  3825             symbol_c *IN_type_symbol = param_data_type;
       
  3826             last_type_symbol = param_data_type;
       
  3827             
       
  3828             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3829             {
       
  3830         
       
  3831                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  3832                 s4o.print("(");
       
  3833                 return_type_symbol->accept(*this);
       
  3834                 s4o.print(")");
       
  3835                 IN_param_value->accept(*this);
       
  3836                 return NULL;
       
  3837                 
       
  3838             }
       
  3839             
       
  3840             ERROR;
       
  3841         }
       
  3842         
       
  3843     }/*function_usint_to_dint*/
       
  3844     break;
       
  3845 
       
  3846 /****
       
  3847  *USINT_TO_LINT
       
  3848  */
       
  3849     case function_usint_to_lint :
       
  3850     {
       
  3851         symbol_c *last_type_symbol = NULL;
       
  3852 
       
  3853         {
       
  3854             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3855             symbol_c *IN_param_value = &this->default_variable_name;
       
  3856         
       
  3857             symbol_c *IN_type_symbol = param_data_type;
       
  3858             last_type_symbol = param_data_type;
       
  3859             
       
  3860             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3861             {
       
  3862         
       
  3863                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  3864                 s4o.print("(");
       
  3865                 return_type_symbol->accept(*this);
       
  3866                 s4o.print(")");
       
  3867                 IN_param_value->accept(*this);
       
  3868                 return NULL;
       
  3869                 
       
  3870             }
       
  3871             
       
  3872             ERROR;
       
  3873         }
       
  3874         
       
  3875     }/*function_usint_to_lint*/
       
  3876     break;
       
  3877 
       
  3878 /****
       
  3879  *USINT_TO_UINT
       
  3880  */
       
  3881     case function_usint_to_uint :
       
  3882     {
       
  3883         symbol_c *last_type_symbol = NULL;
       
  3884 
       
  3885         {
       
  3886             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3887             symbol_c *IN_param_value = &this->default_variable_name;
       
  3888         
       
  3889             symbol_c *IN_type_symbol = param_data_type;
       
  3890             last_type_symbol = param_data_type;
       
  3891             
       
  3892             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3893             {
       
  3894         
       
  3895                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  3896                 s4o.print("(");
       
  3897                 return_type_symbol->accept(*this);
       
  3898                 s4o.print(")");
       
  3899                 IN_param_value->accept(*this);
       
  3900                 return NULL;
       
  3901                 
       
  3902             }
       
  3903             
       
  3904             ERROR;
       
  3905         }
       
  3906         
       
  3907     }/*function_usint_to_uint*/
       
  3908     break;
       
  3909 
       
  3910 /****
       
  3911  *USINT_TO_UDINT
       
  3912  */
       
  3913     case function_usint_to_udint :
       
  3914     {
       
  3915         symbol_c *last_type_symbol = NULL;
       
  3916 
       
  3917         {
       
  3918             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3919             symbol_c *IN_param_value = &this->default_variable_name;
       
  3920         
       
  3921             symbol_c *IN_type_symbol = param_data_type;
       
  3922             last_type_symbol = param_data_type;
       
  3923             
       
  3924             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3925             {
       
  3926         
       
  3927                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  3928                 s4o.print("(");
       
  3929                 return_type_symbol->accept(*this);
       
  3930                 s4o.print(")");
       
  3931                 IN_param_value->accept(*this);
       
  3932                 return NULL;
       
  3933                 
       
  3934             }
       
  3935             
       
  3936             ERROR;
       
  3937         }
       
  3938         
       
  3939     }/*function_usint_to_udint*/
       
  3940     break;
       
  3941 
       
  3942 /****
       
  3943  *USINT_TO_ULINT
       
  3944  */
       
  3945     case function_usint_to_ulint :
       
  3946     {
       
  3947         symbol_c *last_type_symbol = NULL;
       
  3948 
       
  3949         {
       
  3950             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3951             symbol_c *IN_param_value = &this->default_variable_name;
       
  3952         
       
  3953             symbol_c *IN_type_symbol = param_data_type;
       
  3954             last_type_symbol = param_data_type;
       
  3955             
       
  3956             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3957             {
       
  3958         
       
  3959                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  3960                 s4o.print("(");
       
  3961                 return_type_symbol->accept(*this);
       
  3962                 s4o.print(")");
       
  3963                 IN_param_value->accept(*this);
       
  3964                 return NULL;
       
  3965                 
       
  3966             }
       
  3967             
       
  3968             ERROR;
       
  3969         }
       
  3970         
       
  3971     }/*function_usint_to_ulint*/
       
  3972     break;
       
  3973 
       
  3974 /****
       
  3975  *USINT_TO_TIME
       
  3976  */
       
  3977     case function_usint_to_time :
       
  3978     {
       
  3979         symbol_c *last_type_symbol = NULL;
       
  3980 
       
  3981         {
       
  3982             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  3983             symbol_c *IN_param_value = &this->default_variable_name;
       
  3984         
       
  3985             symbol_c *IN_type_symbol = param_data_type;
       
  3986             last_type_symbol = param_data_type;
       
  3987             
       
  3988             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  3989             {
       
  3990         
       
  3991                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  3992                 s4o.print("(");
       
  3993                 return_type_symbol->accept(*this);
       
  3994                 s4o.print(")__int_to_time(");
       
  3995                 IN_param_value->accept(*this);
       
  3996                 s4o.print(")");
       
  3997                 return NULL;
       
  3998                 
       
  3999             }
       
  4000             
       
  4001             ERROR;
       
  4002         }
       
  4003         
       
  4004     }/*function_usint_to_time*/
       
  4005     break;
       
  4006 
       
  4007 /****
       
  4008  *USINT_TO_BOOL
       
  4009  */
       
  4010     case function_usint_to_bool :
       
  4011     {
       
  4012         symbol_c *last_type_symbol = NULL;
       
  4013 
       
  4014         {
       
  4015             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4016             symbol_c *IN_param_value = &this->default_variable_name;
       
  4017         
       
  4018             symbol_c *IN_type_symbol = param_data_type;
       
  4019             last_type_symbol = param_data_type;
       
  4020             
       
  4021             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  4022             {
       
  4023         
       
  4024                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  4025                 s4o.print("(");
       
  4026                 return_type_symbol->accept(*this);
       
  4027                 s4o.print(")");
       
  4028                 IN_param_value->accept(*this);
       
  4029                 return NULL;
       
  4030                 
       
  4031             }
       
  4032             
       
  4033             ERROR;
       
  4034         }
       
  4035         
       
  4036     }/*function_usint_to_bool*/
       
  4037     break;
       
  4038 
       
  4039 /****
       
  4040  *USINT_TO_BYTE
       
  4041  */
       
  4042     case function_usint_to_byte :
       
  4043     {
       
  4044         symbol_c *last_type_symbol = NULL;
       
  4045 
       
  4046         {
       
  4047             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4048             symbol_c *IN_param_value = &this->default_variable_name;
       
  4049         
       
  4050             symbol_c *IN_type_symbol = param_data_type;
       
  4051             last_type_symbol = param_data_type;
       
  4052             
       
  4053             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  4054             {
       
  4055         
       
  4056                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  4057                 s4o.print("(");
       
  4058                 return_type_symbol->accept(*this);
       
  4059                 s4o.print(")");
       
  4060                 IN_param_value->accept(*this);
       
  4061                 return NULL;
       
  4062                 
       
  4063             }
       
  4064             
       
  4065             ERROR;
       
  4066         }
       
  4067         
       
  4068     }/*function_usint_to_byte*/
       
  4069     break;
       
  4070 
       
  4071 /****
       
  4072  *USINT_TO_WORD
       
  4073  */
       
  4074     case function_usint_to_word :
       
  4075     {
       
  4076         symbol_c *last_type_symbol = NULL;
       
  4077 
       
  4078         {
       
  4079             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4080             symbol_c *IN_param_value = &this->default_variable_name;
       
  4081         
       
  4082             symbol_c *IN_type_symbol = param_data_type;
       
  4083             last_type_symbol = param_data_type;
       
  4084             
       
  4085             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  4086             {
       
  4087         
       
  4088                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  4089                 s4o.print("(");
       
  4090                 return_type_symbol->accept(*this);
       
  4091                 s4o.print(")");
       
  4092                 IN_param_value->accept(*this);
       
  4093                 return NULL;
       
  4094                 
       
  4095             }
       
  4096             
       
  4097             ERROR;
       
  4098         }
       
  4099         
       
  4100     }/*function_usint_to_word*/
       
  4101     break;
       
  4102 
       
  4103 /****
       
  4104  *USINT_TO_DWORD
       
  4105  */
       
  4106     case function_usint_to_dword :
       
  4107     {
       
  4108         symbol_c *last_type_symbol = NULL;
       
  4109 
       
  4110         {
       
  4111             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4112             symbol_c *IN_param_value = &this->default_variable_name;
       
  4113         
       
  4114             symbol_c *IN_type_symbol = param_data_type;
       
  4115             last_type_symbol = param_data_type;
       
  4116             
       
  4117             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  4118             {
       
  4119         
       
  4120                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  4121                 s4o.print("(");
       
  4122                 return_type_symbol->accept(*this);
       
  4123                 s4o.print(")");
       
  4124                 IN_param_value->accept(*this);
       
  4125                 return NULL;
       
  4126                 
       
  4127             }
       
  4128             
       
  4129             ERROR;
       
  4130         }
       
  4131         
       
  4132     }/*function_usint_to_dword*/
       
  4133     break;
       
  4134 
       
  4135 /****
       
  4136  *USINT_TO_LWORD
       
  4137  */
       
  4138     case function_usint_to_lword :
       
  4139     {
       
  4140         symbol_c *last_type_symbol = NULL;
       
  4141 
       
  4142         {
       
  4143             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4144             symbol_c *IN_param_value = &this->default_variable_name;
       
  4145         
       
  4146             symbol_c *IN_type_symbol = param_data_type;
       
  4147             last_type_symbol = param_data_type;
       
  4148             
       
  4149             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  4150             {
       
  4151         
       
  4152                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  4153                 s4o.print("(");
       
  4154                 return_type_symbol->accept(*this);
       
  4155                 s4o.print(")");
       
  4156                 IN_param_value->accept(*this);
       
  4157                 return NULL;
       
  4158                 
       
  4159             }
       
  4160             
       
  4161             ERROR;
       
  4162         }
       
  4163         
       
  4164     }/*function_usint_to_lword*/
       
  4165     break;
       
  4166 
       
  4167 /****
       
  4168  *USINT_TO_STRING
       
  4169  */
       
  4170     case function_usint_to_string :
       
  4171     {
       
  4172         symbol_c *last_type_symbol = NULL;
       
  4173 
       
  4174         {
       
  4175             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4176             symbol_c *IN_param_value = &this->default_variable_name;
       
  4177         
       
  4178             symbol_c *IN_type_symbol = param_data_type;
       
  4179             last_type_symbol = param_data_type;
       
  4180             
       
  4181             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  4182             {
       
  4183         
       
  4184                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  4185                 s4o.print("(");
       
  4186                 return_type_symbol->accept(*this);
       
  4187                 s4o.print(")__uint_to_string(");
       
  4188                 IN_param_value->accept(*this);
       
  4189                 s4o.print(")");
       
  4190                 return NULL;
       
  4191                 
       
  4192             }
       
  4193             
       
  4194             ERROR;
       
  4195         }
       
  4196         
       
  4197     }/*function_usint_to_string*/
       
  4198     break;
       
  4199 
       
  4200 /****
       
  4201  *USINT_TO_DATE
       
  4202  */
       
  4203     case function_usint_to_date :
       
  4204     {
       
  4205         symbol_c *last_type_symbol = NULL;
       
  4206 
       
  4207         {
       
  4208             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4209             symbol_c *IN_param_value = &this->default_variable_name;
       
  4210         
       
  4211             symbol_c *IN_type_symbol = param_data_type;
       
  4212             last_type_symbol = param_data_type;
       
  4213             
       
  4214             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  4215             {
       
  4216         
       
  4217                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  4218                 s4o.print("(");
       
  4219                 return_type_symbol->accept(*this);
       
  4220                 s4o.print(")__int_to_time(");
       
  4221                 IN_param_value->accept(*this);
       
  4222                 s4o.print(")");
       
  4223                 return NULL;
       
  4224                 
       
  4225             }
       
  4226             
       
  4227             ERROR;
       
  4228         }
       
  4229         
       
  4230     }/*function_usint_to_date*/
       
  4231     break;
       
  4232 
       
  4233 /****
       
  4234  *USINT_TO_TOD
       
  4235  */
       
  4236     case function_usint_to_tod :
       
  4237     {
       
  4238         symbol_c *last_type_symbol = NULL;
       
  4239 
       
  4240         {
       
  4241             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4242             symbol_c *IN_param_value = &this->default_variable_name;
       
  4243         
       
  4244             symbol_c *IN_type_symbol = param_data_type;
       
  4245             last_type_symbol = param_data_type;
       
  4246             
       
  4247             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  4248             {
       
  4249         
       
  4250                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  4251                 s4o.print("(");
       
  4252                 return_type_symbol->accept(*this);
       
  4253                 s4o.print(")__int_to_time(");
       
  4254                 IN_param_value->accept(*this);
       
  4255                 s4o.print(")");
       
  4256                 return NULL;
       
  4257                 
       
  4258             }
       
  4259             
       
  4260             ERROR;
       
  4261         }
       
  4262         
       
  4263     }/*function_usint_to_tod*/
       
  4264     break;
       
  4265 
       
  4266 /****
       
  4267  *USINT_TO_DT
       
  4268  */
       
  4269     case function_usint_to_dt :
       
  4270     {
       
  4271         symbol_c *last_type_symbol = NULL;
       
  4272 
       
  4273         {
       
  4274             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4275             symbol_c *IN_param_value = &this->default_variable_name;
       
  4276         
       
  4277             symbol_c *IN_type_symbol = param_data_type;
       
  4278             last_type_symbol = param_data_type;
       
  4279             
       
  4280             if (typeid(*last_type_symbol) == typeid(usint_type_name_c))
       
  4281             {
       
  4282         
       
  4283                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  4284                 s4o.print("(");
       
  4285                 return_type_symbol->accept(*this);
       
  4286                 s4o.print(")__int_to_time(");
       
  4287                 IN_param_value->accept(*this);
       
  4288                 s4o.print(")");
       
  4289                 return NULL;
       
  4290                 
       
  4291             }
       
  4292             
       
  4293             ERROR;
       
  4294         }
       
  4295         
       
  4296     }/*function_usint_to_dt*/
       
  4297     break;
       
  4298 
       
  4299 /****
       
  4300  *UINT_TO_REAL
       
  4301  */
       
  4302     case function_uint_to_real :
       
  4303     {
       
  4304         symbol_c *last_type_symbol = NULL;
       
  4305 
       
  4306         {
       
  4307             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4308             symbol_c *IN_param_value = &this->default_variable_name;
       
  4309         
       
  4310             symbol_c *IN_type_symbol = param_data_type;
       
  4311             last_type_symbol = param_data_type;
       
  4312             
       
  4313             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4314             {
       
  4315         
       
  4316                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  4317                 s4o.print("(");
       
  4318                 return_type_symbol->accept(*this);
       
  4319                 s4o.print(")");
       
  4320                 IN_param_value->accept(*this);
       
  4321                 return NULL;
       
  4322                 
       
  4323             }
       
  4324             
       
  4325             ERROR;
       
  4326         }
       
  4327         
       
  4328     }/*function_uint_to_real*/
       
  4329     break;
       
  4330 
       
  4331 /****
       
  4332  *UINT_TO_LREAL
       
  4333  */
       
  4334     case function_uint_to_lreal :
       
  4335     {
       
  4336         symbol_c *last_type_symbol = NULL;
       
  4337 
       
  4338         {
       
  4339             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4340             symbol_c *IN_param_value = &this->default_variable_name;
       
  4341         
       
  4342             symbol_c *IN_type_symbol = param_data_type;
       
  4343             last_type_symbol = param_data_type;
       
  4344             
       
  4345             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4346             {
       
  4347         
       
  4348                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  4349                 s4o.print("(");
       
  4350                 return_type_symbol->accept(*this);
       
  4351                 s4o.print(")");
       
  4352                 IN_param_value->accept(*this);
       
  4353                 return NULL;
       
  4354                 
       
  4355             }
       
  4356             
       
  4357             ERROR;
       
  4358         }
       
  4359         
       
  4360     }/*function_uint_to_lreal*/
       
  4361     break;
       
  4362 
       
  4363 /****
       
  4364  *UINT_TO_SINT
       
  4365  */
       
  4366     case function_uint_to_sint :
       
  4367     {
       
  4368         symbol_c *last_type_symbol = NULL;
       
  4369 
       
  4370         {
       
  4371             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4372             symbol_c *IN_param_value = &this->default_variable_name;
       
  4373         
       
  4374             symbol_c *IN_type_symbol = param_data_type;
       
  4375             last_type_symbol = param_data_type;
       
  4376             
       
  4377             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4378             {
       
  4379         
       
  4380                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  4381                 s4o.print("(");
       
  4382                 return_type_symbol->accept(*this);
       
  4383                 s4o.print(")");
       
  4384                 IN_param_value->accept(*this);
       
  4385                 return NULL;
       
  4386                 
       
  4387             }
       
  4388             
       
  4389             ERROR;
       
  4390         }
       
  4391         
       
  4392     }/*function_uint_to_sint*/
       
  4393     break;
       
  4394 
       
  4395 /****
       
  4396  *UINT_TO_INT
       
  4397  */
       
  4398     case function_uint_to_int :
       
  4399     {
       
  4400         symbol_c *last_type_symbol = NULL;
       
  4401 
       
  4402         {
       
  4403             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4404             symbol_c *IN_param_value = &this->default_variable_name;
       
  4405         
       
  4406             symbol_c *IN_type_symbol = param_data_type;
       
  4407             last_type_symbol = param_data_type;
       
  4408             
       
  4409             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4410             {
       
  4411         
       
  4412                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  4413                 s4o.print("(");
       
  4414                 return_type_symbol->accept(*this);
       
  4415                 s4o.print(")");
       
  4416                 IN_param_value->accept(*this);
       
  4417                 return NULL;
       
  4418                 
       
  4419             }
       
  4420             
       
  4421             ERROR;
       
  4422         }
       
  4423         
       
  4424     }/*function_uint_to_int*/
       
  4425     break;
       
  4426 
       
  4427 /****
       
  4428  *UINT_TO_DINT
       
  4429  */
       
  4430     case function_uint_to_dint :
       
  4431     {
       
  4432         symbol_c *last_type_symbol = NULL;
       
  4433 
       
  4434         {
       
  4435             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4436             symbol_c *IN_param_value = &this->default_variable_name;
       
  4437         
       
  4438             symbol_c *IN_type_symbol = param_data_type;
       
  4439             last_type_symbol = param_data_type;
       
  4440             
       
  4441             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4442             {
       
  4443         
       
  4444                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  4445                 s4o.print("(");
       
  4446                 return_type_symbol->accept(*this);
       
  4447                 s4o.print(")");
       
  4448                 IN_param_value->accept(*this);
       
  4449                 return NULL;
       
  4450                 
       
  4451             }
       
  4452             
       
  4453             ERROR;
       
  4454         }
       
  4455         
       
  4456     }/*function_uint_to_dint*/
       
  4457     break;
       
  4458 
       
  4459 /****
       
  4460  *UINT_TO_LINT
       
  4461  */
       
  4462     case function_uint_to_lint :
       
  4463     {
       
  4464         symbol_c *last_type_symbol = NULL;
       
  4465 
       
  4466         {
       
  4467             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4468             symbol_c *IN_param_value = &this->default_variable_name;
       
  4469         
       
  4470             symbol_c *IN_type_symbol = param_data_type;
       
  4471             last_type_symbol = param_data_type;
       
  4472             
       
  4473             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4474             {
       
  4475         
       
  4476                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  4477                 s4o.print("(");
       
  4478                 return_type_symbol->accept(*this);
       
  4479                 s4o.print(")");
       
  4480                 IN_param_value->accept(*this);
       
  4481                 return NULL;
       
  4482                 
       
  4483             }
       
  4484             
       
  4485             ERROR;
       
  4486         }
       
  4487         
       
  4488     }/*function_uint_to_lint*/
       
  4489     break;
       
  4490 
       
  4491 /****
       
  4492  *UINT_TO_USINT
       
  4493  */
       
  4494     case function_uint_to_usint :
       
  4495     {
       
  4496         symbol_c *last_type_symbol = NULL;
       
  4497 
       
  4498         {
       
  4499             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4500             symbol_c *IN_param_value = &this->default_variable_name;
       
  4501         
       
  4502             symbol_c *IN_type_symbol = param_data_type;
       
  4503             last_type_symbol = param_data_type;
       
  4504             
       
  4505             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4506             {
       
  4507         
       
  4508                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  4509                 s4o.print("(");
       
  4510                 return_type_symbol->accept(*this);
       
  4511                 s4o.print(")");
       
  4512                 IN_param_value->accept(*this);
       
  4513                 return NULL;
       
  4514                 
       
  4515             }
       
  4516             
       
  4517             ERROR;
       
  4518         }
       
  4519         
       
  4520     }/*function_uint_to_usint*/
       
  4521     break;
       
  4522 
       
  4523 /****
       
  4524  *UINT_TO_UDINT
       
  4525  */
       
  4526     case function_uint_to_udint :
       
  4527     {
       
  4528         symbol_c *last_type_symbol = NULL;
       
  4529 
       
  4530         {
       
  4531             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4532             symbol_c *IN_param_value = &this->default_variable_name;
       
  4533         
       
  4534             symbol_c *IN_type_symbol = param_data_type;
       
  4535             last_type_symbol = param_data_type;
       
  4536             
       
  4537             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4538             {
       
  4539         
       
  4540                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  4541                 s4o.print("(");
       
  4542                 return_type_symbol->accept(*this);
       
  4543                 s4o.print(")");
       
  4544                 IN_param_value->accept(*this);
       
  4545                 return NULL;
       
  4546                 
       
  4547             }
       
  4548             
       
  4549             ERROR;
       
  4550         }
       
  4551         
       
  4552     }/*function_uint_to_udint*/
       
  4553     break;
       
  4554 
       
  4555 /****
       
  4556  *UINT_TO_ULINT
       
  4557  */
       
  4558     case function_uint_to_ulint :
       
  4559     {
       
  4560         symbol_c *last_type_symbol = NULL;
       
  4561 
       
  4562         {
       
  4563             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4564             symbol_c *IN_param_value = &this->default_variable_name;
       
  4565         
       
  4566             symbol_c *IN_type_symbol = param_data_type;
       
  4567             last_type_symbol = param_data_type;
       
  4568             
       
  4569             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4570             {
       
  4571         
       
  4572                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  4573                 s4o.print("(");
       
  4574                 return_type_symbol->accept(*this);
       
  4575                 s4o.print(")");
       
  4576                 IN_param_value->accept(*this);
       
  4577                 return NULL;
       
  4578                 
       
  4579             }
       
  4580             
       
  4581             ERROR;
       
  4582         }
       
  4583         
       
  4584     }/*function_uint_to_ulint*/
       
  4585     break;
       
  4586 
       
  4587 /****
       
  4588  *UINT_TO_TIME
       
  4589  */
       
  4590     case function_uint_to_time :
       
  4591     {
       
  4592         symbol_c *last_type_symbol = NULL;
       
  4593 
       
  4594         {
       
  4595             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4596             symbol_c *IN_param_value = &this->default_variable_name;
       
  4597         
       
  4598             symbol_c *IN_type_symbol = param_data_type;
       
  4599             last_type_symbol = param_data_type;
       
  4600             
       
  4601             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4602             {
       
  4603         
       
  4604                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  4605                 s4o.print("(");
       
  4606                 return_type_symbol->accept(*this);
       
  4607                 s4o.print(")__int_to_time(");
       
  4608                 IN_param_value->accept(*this);
       
  4609                 s4o.print(")");
       
  4610                 return NULL;
       
  4611                 
       
  4612             }
       
  4613             
       
  4614             ERROR;
       
  4615         }
       
  4616         
       
  4617     }/*function_uint_to_time*/
       
  4618     break;
       
  4619 
       
  4620 /****
       
  4621  *UINT_TO_BOOL
       
  4622  */
       
  4623     case function_uint_to_bool :
       
  4624     {
       
  4625         symbol_c *last_type_symbol = NULL;
       
  4626 
       
  4627         {
       
  4628             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4629             symbol_c *IN_param_value = &this->default_variable_name;
       
  4630         
       
  4631             symbol_c *IN_type_symbol = param_data_type;
       
  4632             last_type_symbol = param_data_type;
       
  4633             
       
  4634             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4635             {
       
  4636         
       
  4637                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  4638                 s4o.print("(");
       
  4639                 return_type_symbol->accept(*this);
       
  4640                 s4o.print(")");
       
  4641                 IN_param_value->accept(*this);
       
  4642                 return NULL;
       
  4643                 
       
  4644             }
       
  4645             
       
  4646             ERROR;
       
  4647         }
       
  4648         
       
  4649     }/*function_uint_to_bool*/
       
  4650     break;
       
  4651 
       
  4652 /****
       
  4653  *UINT_TO_BYTE
       
  4654  */
       
  4655     case function_uint_to_byte :
       
  4656     {
       
  4657         symbol_c *last_type_symbol = NULL;
       
  4658 
       
  4659         {
       
  4660             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4661             symbol_c *IN_param_value = &this->default_variable_name;
       
  4662         
       
  4663             symbol_c *IN_type_symbol = param_data_type;
       
  4664             last_type_symbol = param_data_type;
       
  4665             
       
  4666             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4667             {
       
  4668         
       
  4669                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  4670                 s4o.print("(");
       
  4671                 return_type_symbol->accept(*this);
       
  4672                 s4o.print(")");
       
  4673                 IN_param_value->accept(*this);
       
  4674                 return NULL;
       
  4675                 
       
  4676             }
       
  4677             
       
  4678             ERROR;
       
  4679         }
       
  4680         
       
  4681     }/*function_uint_to_byte*/
       
  4682     break;
       
  4683 
       
  4684 /****
       
  4685  *UINT_TO_WORD
       
  4686  */
       
  4687     case function_uint_to_word :
       
  4688     {
       
  4689         symbol_c *last_type_symbol = NULL;
       
  4690 
       
  4691         {
       
  4692             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4693             symbol_c *IN_param_value = &this->default_variable_name;
       
  4694         
       
  4695             symbol_c *IN_type_symbol = param_data_type;
       
  4696             last_type_symbol = param_data_type;
       
  4697             
       
  4698             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4699             {
       
  4700         
       
  4701                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  4702                 s4o.print("(");
       
  4703                 return_type_symbol->accept(*this);
       
  4704                 s4o.print(")");
       
  4705                 IN_param_value->accept(*this);
       
  4706                 return NULL;
       
  4707                 
       
  4708             }
       
  4709             
       
  4710             ERROR;
       
  4711         }
       
  4712         
       
  4713     }/*function_uint_to_word*/
       
  4714     break;
       
  4715 
       
  4716 /****
       
  4717  *UINT_TO_DWORD
       
  4718  */
       
  4719     case function_uint_to_dword :
       
  4720     {
       
  4721         symbol_c *last_type_symbol = NULL;
       
  4722 
       
  4723         {
       
  4724             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4725             symbol_c *IN_param_value = &this->default_variable_name;
       
  4726         
       
  4727             symbol_c *IN_type_symbol = param_data_type;
       
  4728             last_type_symbol = param_data_type;
       
  4729             
       
  4730             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4731             {
       
  4732         
       
  4733                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  4734                 s4o.print("(");
       
  4735                 return_type_symbol->accept(*this);
       
  4736                 s4o.print(")");
       
  4737                 IN_param_value->accept(*this);
       
  4738                 return NULL;
       
  4739                 
       
  4740             }
       
  4741             
       
  4742             ERROR;
       
  4743         }
       
  4744         
       
  4745     }/*function_uint_to_dword*/
       
  4746     break;
       
  4747 
       
  4748 /****
       
  4749  *UINT_TO_LWORD
       
  4750  */
       
  4751     case function_uint_to_lword :
       
  4752     {
       
  4753         symbol_c *last_type_symbol = NULL;
       
  4754 
       
  4755         {
       
  4756             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4757             symbol_c *IN_param_value = &this->default_variable_name;
       
  4758         
       
  4759             symbol_c *IN_type_symbol = param_data_type;
       
  4760             last_type_symbol = param_data_type;
       
  4761             
       
  4762             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4763             {
       
  4764         
       
  4765                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  4766                 s4o.print("(");
       
  4767                 return_type_symbol->accept(*this);
       
  4768                 s4o.print(")");
       
  4769                 IN_param_value->accept(*this);
       
  4770                 return NULL;
       
  4771                 
       
  4772             }
       
  4773             
       
  4774             ERROR;
       
  4775         }
       
  4776         
       
  4777     }/*function_uint_to_lword*/
       
  4778     break;
       
  4779 
       
  4780 /****
       
  4781  *UINT_TO_STRING
       
  4782  */
       
  4783     case function_uint_to_string :
       
  4784     {
       
  4785         symbol_c *last_type_symbol = NULL;
       
  4786 
       
  4787         {
       
  4788             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4789             symbol_c *IN_param_value = &this->default_variable_name;
       
  4790         
       
  4791             symbol_c *IN_type_symbol = param_data_type;
       
  4792             last_type_symbol = param_data_type;
       
  4793             
       
  4794             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4795             {
       
  4796         
       
  4797                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  4798                 s4o.print("(");
       
  4799                 return_type_symbol->accept(*this);
       
  4800                 s4o.print(")__uint_to_string(");
       
  4801                 IN_param_value->accept(*this);
       
  4802                 s4o.print(")");
       
  4803                 return NULL;
       
  4804                 
       
  4805             }
       
  4806             
       
  4807             ERROR;
       
  4808         }
       
  4809         
       
  4810     }/*function_uint_to_string*/
       
  4811     break;
       
  4812 
       
  4813 /****
       
  4814  *UINT_TO_DATE
       
  4815  */
       
  4816     case function_uint_to_date :
       
  4817     {
       
  4818         symbol_c *last_type_symbol = NULL;
       
  4819 
       
  4820         {
       
  4821             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4822             symbol_c *IN_param_value = &this->default_variable_name;
       
  4823         
       
  4824             symbol_c *IN_type_symbol = param_data_type;
       
  4825             last_type_symbol = param_data_type;
       
  4826             
       
  4827             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4828             {
       
  4829         
       
  4830                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  4831                 s4o.print("(");
       
  4832                 return_type_symbol->accept(*this);
       
  4833                 s4o.print(")__int_to_time(");
       
  4834                 IN_param_value->accept(*this);
       
  4835                 s4o.print(")");
       
  4836                 return NULL;
       
  4837                 
       
  4838             }
       
  4839             
       
  4840             ERROR;
       
  4841         }
       
  4842         
       
  4843     }/*function_uint_to_date*/
       
  4844     break;
       
  4845 
       
  4846 /****
       
  4847  *UINT_TO_TOD
       
  4848  */
       
  4849     case function_uint_to_tod :
       
  4850     {
       
  4851         symbol_c *last_type_symbol = NULL;
       
  4852 
       
  4853         {
       
  4854             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4855             symbol_c *IN_param_value = &this->default_variable_name;
       
  4856         
       
  4857             symbol_c *IN_type_symbol = param_data_type;
       
  4858             last_type_symbol = param_data_type;
       
  4859             
       
  4860             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4861             {
       
  4862         
       
  4863                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  4864                 s4o.print("(");
       
  4865                 return_type_symbol->accept(*this);
       
  4866                 s4o.print(")__int_to_time(");
       
  4867                 IN_param_value->accept(*this);
       
  4868                 s4o.print(")");
       
  4869                 return NULL;
       
  4870                 
       
  4871             }
       
  4872             
       
  4873             ERROR;
       
  4874         }
       
  4875         
       
  4876     }/*function_uint_to_tod*/
       
  4877     break;
       
  4878 
       
  4879 /****
       
  4880  *UINT_TO_DT
       
  4881  */
       
  4882     case function_uint_to_dt :
       
  4883     {
       
  4884         symbol_c *last_type_symbol = NULL;
       
  4885 
       
  4886         {
       
  4887             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4888             symbol_c *IN_param_value = &this->default_variable_name;
       
  4889         
       
  4890             symbol_c *IN_type_symbol = param_data_type;
       
  4891             last_type_symbol = param_data_type;
       
  4892             
       
  4893             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
       
  4894             {
       
  4895         
       
  4896                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  4897                 s4o.print("(");
       
  4898                 return_type_symbol->accept(*this);
       
  4899                 s4o.print(")__int_to_time(");
       
  4900                 IN_param_value->accept(*this);
       
  4901                 s4o.print(")");
       
  4902                 return NULL;
       
  4903                 
       
  4904             }
       
  4905             
       
  4906             ERROR;
       
  4907         }
       
  4908         
       
  4909     }/*function_uint_to_dt*/
       
  4910     break;
       
  4911 
       
  4912 /****
       
  4913  *UDINT_TO_REAL
       
  4914  */
       
  4915     case function_udint_to_real :
       
  4916     {
       
  4917         symbol_c *last_type_symbol = NULL;
       
  4918 
       
  4919         {
       
  4920             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4921             symbol_c *IN_param_value = &this->default_variable_name;
       
  4922         
       
  4923             symbol_c *IN_type_symbol = param_data_type;
       
  4924             last_type_symbol = param_data_type;
       
  4925             
       
  4926             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4927             {
       
  4928         
       
  4929                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  4930                 s4o.print("(");
       
  4931                 return_type_symbol->accept(*this);
       
  4932                 s4o.print(")");
       
  4933                 IN_param_value->accept(*this);
       
  4934                 return NULL;
       
  4935                 
       
  4936             }
       
  4937             
       
  4938             ERROR;
       
  4939         }
       
  4940         
       
  4941     }/*function_udint_to_real*/
       
  4942     break;
       
  4943 
       
  4944 /****
       
  4945  *UDINT_TO_LREAL
       
  4946  */
       
  4947     case function_udint_to_lreal :
       
  4948     {
       
  4949         symbol_c *last_type_symbol = NULL;
       
  4950 
       
  4951         {
       
  4952             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4953             symbol_c *IN_param_value = &this->default_variable_name;
       
  4954         
       
  4955             symbol_c *IN_type_symbol = param_data_type;
       
  4956             last_type_symbol = param_data_type;
       
  4957             
       
  4958             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4959             {
       
  4960         
       
  4961                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  4962                 s4o.print("(");
       
  4963                 return_type_symbol->accept(*this);
       
  4964                 s4o.print(")");
       
  4965                 IN_param_value->accept(*this);
       
  4966                 return NULL;
       
  4967                 
       
  4968             }
       
  4969             
       
  4970             ERROR;
       
  4971         }
       
  4972         
       
  4973     }/*function_udint_to_lreal*/
       
  4974     break;
       
  4975 
       
  4976 /****
       
  4977  *UDINT_TO_SINT
       
  4978  */
       
  4979     case function_udint_to_sint :
       
  4980     {
       
  4981         symbol_c *last_type_symbol = NULL;
       
  4982 
       
  4983         {
       
  4984             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  4985             symbol_c *IN_param_value = &this->default_variable_name;
       
  4986         
       
  4987             symbol_c *IN_type_symbol = param_data_type;
       
  4988             last_type_symbol = param_data_type;
       
  4989             
       
  4990             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  4991             {
       
  4992         
       
  4993                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  4994                 s4o.print("(");
       
  4995                 return_type_symbol->accept(*this);
       
  4996                 s4o.print(")");
       
  4997                 IN_param_value->accept(*this);
       
  4998                 return NULL;
       
  4999                 
       
  5000             }
       
  5001             
       
  5002             ERROR;
       
  5003         }
       
  5004         
       
  5005     }/*function_udint_to_sint*/
       
  5006     break;
       
  5007 
       
  5008 /****
       
  5009  *UDINT_TO_INT
       
  5010  */
       
  5011     case function_udint_to_int :
       
  5012     {
       
  5013         symbol_c *last_type_symbol = NULL;
       
  5014 
       
  5015         {
       
  5016             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5017             symbol_c *IN_param_value = &this->default_variable_name;
       
  5018         
       
  5019             symbol_c *IN_type_symbol = param_data_type;
       
  5020             last_type_symbol = param_data_type;
       
  5021             
       
  5022             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5023             {
       
  5024         
       
  5025                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  5026                 s4o.print("(");
       
  5027                 return_type_symbol->accept(*this);
       
  5028                 s4o.print(")");
       
  5029                 IN_param_value->accept(*this);
       
  5030                 return NULL;
       
  5031                 
       
  5032             }
       
  5033             
       
  5034             ERROR;
       
  5035         }
       
  5036         
       
  5037     }/*function_udint_to_int*/
       
  5038     break;
       
  5039 
       
  5040 /****
       
  5041  *UDINT_TO_DINT
       
  5042  */
       
  5043     case function_udint_to_dint :
       
  5044     {
       
  5045         symbol_c *last_type_symbol = NULL;
       
  5046 
       
  5047         {
       
  5048             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5049             symbol_c *IN_param_value = &this->default_variable_name;
       
  5050         
       
  5051             symbol_c *IN_type_symbol = param_data_type;
       
  5052             last_type_symbol = param_data_type;
       
  5053             
       
  5054             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5055             {
       
  5056         
       
  5057                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  5058                 s4o.print("(");
       
  5059                 return_type_symbol->accept(*this);
       
  5060                 s4o.print(")");
       
  5061                 IN_param_value->accept(*this);
       
  5062                 return NULL;
       
  5063                 
       
  5064             }
       
  5065             
       
  5066             ERROR;
       
  5067         }
       
  5068         
       
  5069     }/*function_udint_to_dint*/
       
  5070     break;
       
  5071 
       
  5072 /****
       
  5073  *UDINT_TO_LINT
       
  5074  */
       
  5075     case function_udint_to_lint :
       
  5076     {
       
  5077         symbol_c *last_type_symbol = NULL;
       
  5078 
       
  5079         {
       
  5080             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5081             symbol_c *IN_param_value = &this->default_variable_name;
       
  5082         
       
  5083             symbol_c *IN_type_symbol = param_data_type;
       
  5084             last_type_symbol = param_data_type;
       
  5085             
       
  5086             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5087             {
       
  5088         
       
  5089                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  5090                 s4o.print("(");
       
  5091                 return_type_symbol->accept(*this);
       
  5092                 s4o.print(")");
       
  5093                 IN_param_value->accept(*this);
       
  5094                 return NULL;
       
  5095                 
       
  5096             }
       
  5097             
       
  5098             ERROR;
       
  5099         }
       
  5100         
       
  5101     }/*function_udint_to_lint*/
       
  5102     break;
       
  5103 
       
  5104 /****
       
  5105  *UDINT_TO_USINT
       
  5106  */
       
  5107     case function_udint_to_usint :
       
  5108     {
       
  5109         symbol_c *last_type_symbol = NULL;
       
  5110 
       
  5111         {
       
  5112             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5113             symbol_c *IN_param_value = &this->default_variable_name;
       
  5114         
       
  5115             symbol_c *IN_type_symbol = param_data_type;
       
  5116             last_type_symbol = param_data_type;
       
  5117             
       
  5118             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5119             {
       
  5120         
       
  5121                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  5122                 s4o.print("(");
       
  5123                 return_type_symbol->accept(*this);
       
  5124                 s4o.print(")");
       
  5125                 IN_param_value->accept(*this);
       
  5126                 return NULL;
       
  5127                 
       
  5128             }
       
  5129             
       
  5130             ERROR;
       
  5131         }
       
  5132         
       
  5133     }/*function_udint_to_usint*/
       
  5134     break;
       
  5135 
       
  5136 /****
       
  5137  *UDINT_TO_UINT
       
  5138  */
       
  5139     case function_udint_to_uint :
       
  5140     {
       
  5141         symbol_c *last_type_symbol = NULL;
       
  5142 
       
  5143         {
       
  5144             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5145             symbol_c *IN_param_value = &this->default_variable_name;
       
  5146         
       
  5147             symbol_c *IN_type_symbol = param_data_type;
       
  5148             last_type_symbol = param_data_type;
       
  5149             
       
  5150             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5151             {
       
  5152         
       
  5153                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  5154                 s4o.print("(");
       
  5155                 return_type_symbol->accept(*this);
       
  5156                 s4o.print(")");
       
  5157                 IN_param_value->accept(*this);
       
  5158                 return NULL;
       
  5159                 
       
  5160             }
       
  5161             
       
  5162             ERROR;
       
  5163         }
       
  5164         
       
  5165     }/*function_udint_to_uint*/
       
  5166     break;
       
  5167 
       
  5168 /****
       
  5169  *UDINT_TO_ULINT
       
  5170  */
       
  5171     case function_udint_to_ulint :
       
  5172     {
       
  5173         symbol_c *last_type_symbol = NULL;
       
  5174 
       
  5175         {
       
  5176             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5177             symbol_c *IN_param_value = &this->default_variable_name;
       
  5178         
       
  5179             symbol_c *IN_type_symbol = param_data_type;
       
  5180             last_type_symbol = param_data_type;
       
  5181             
       
  5182             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5183             {
       
  5184         
       
  5185                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  5186                 s4o.print("(");
       
  5187                 return_type_symbol->accept(*this);
       
  5188                 s4o.print(")");
       
  5189                 IN_param_value->accept(*this);
       
  5190                 return NULL;
       
  5191                 
       
  5192             }
       
  5193             
       
  5194             ERROR;
       
  5195         }
       
  5196         
       
  5197     }/*function_udint_to_ulint*/
       
  5198     break;
       
  5199 
       
  5200 /****
       
  5201  *UDINT_TO_TIME
       
  5202  */
       
  5203     case function_udint_to_time :
       
  5204     {
       
  5205         symbol_c *last_type_symbol = NULL;
       
  5206 
       
  5207         {
       
  5208             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5209             symbol_c *IN_param_value = &this->default_variable_name;
       
  5210         
       
  5211             symbol_c *IN_type_symbol = param_data_type;
       
  5212             last_type_symbol = param_data_type;
       
  5213             
       
  5214             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5215             {
       
  5216         
       
  5217                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  5218                 s4o.print("(");
       
  5219                 return_type_symbol->accept(*this);
       
  5220                 s4o.print(")__int_to_time(");
       
  5221                 IN_param_value->accept(*this);
       
  5222                 s4o.print(")");
       
  5223                 return NULL;
       
  5224                 
       
  5225             }
       
  5226             
       
  5227             ERROR;
       
  5228         }
       
  5229         
       
  5230     }/*function_udint_to_time*/
       
  5231     break;
       
  5232 
       
  5233 /****
       
  5234  *UDINT_TO_BOOL
       
  5235  */
       
  5236     case function_udint_to_bool :
       
  5237     {
       
  5238         symbol_c *last_type_symbol = NULL;
       
  5239 
       
  5240         {
       
  5241             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5242             symbol_c *IN_param_value = &this->default_variable_name;
       
  5243         
       
  5244             symbol_c *IN_type_symbol = param_data_type;
       
  5245             last_type_symbol = param_data_type;
       
  5246             
       
  5247             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5248             {
       
  5249         
       
  5250                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  5251                 s4o.print("(");
       
  5252                 return_type_symbol->accept(*this);
       
  5253                 s4o.print(")");
       
  5254                 IN_param_value->accept(*this);
       
  5255                 return NULL;
       
  5256                 
       
  5257             }
       
  5258             
       
  5259             ERROR;
       
  5260         }
       
  5261         
       
  5262     }/*function_udint_to_bool*/
       
  5263     break;
       
  5264 
       
  5265 /****
       
  5266  *UDINT_TO_BYTE
       
  5267  */
       
  5268     case function_udint_to_byte :
       
  5269     {
       
  5270         symbol_c *last_type_symbol = NULL;
       
  5271 
       
  5272         {
       
  5273             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5274             symbol_c *IN_param_value = &this->default_variable_name;
       
  5275         
       
  5276             symbol_c *IN_type_symbol = param_data_type;
       
  5277             last_type_symbol = param_data_type;
       
  5278             
       
  5279             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5280             {
       
  5281         
       
  5282                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  5283                 s4o.print("(");
       
  5284                 return_type_symbol->accept(*this);
       
  5285                 s4o.print(")");
       
  5286                 IN_param_value->accept(*this);
       
  5287                 return NULL;
       
  5288                 
       
  5289             }
       
  5290             
       
  5291             ERROR;
       
  5292         }
       
  5293         
       
  5294     }/*function_udint_to_byte*/
       
  5295     break;
       
  5296 
       
  5297 /****
       
  5298  *UDINT_TO_WORD
       
  5299  */
       
  5300     case function_udint_to_word :
       
  5301     {
       
  5302         symbol_c *last_type_symbol = NULL;
       
  5303 
       
  5304         {
       
  5305             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5306             symbol_c *IN_param_value = &this->default_variable_name;
       
  5307         
       
  5308             symbol_c *IN_type_symbol = param_data_type;
       
  5309             last_type_symbol = param_data_type;
       
  5310             
       
  5311             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5312             {
       
  5313         
       
  5314                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  5315                 s4o.print("(");
       
  5316                 return_type_symbol->accept(*this);
       
  5317                 s4o.print(")");
       
  5318                 IN_param_value->accept(*this);
       
  5319                 return NULL;
       
  5320                 
       
  5321             }
       
  5322             
       
  5323             ERROR;
       
  5324         }
       
  5325         
       
  5326     }/*function_udint_to_word*/
       
  5327     break;
       
  5328 
       
  5329 /****
       
  5330  *UDINT_TO_DWORD
       
  5331  */
       
  5332     case function_udint_to_dword :
       
  5333     {
       
  5334         symbol_c *last_type_symbol = NULL;
       
  5335 
       
  5336         {
       
  5337             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5338             symbol_c *IN_param_value = &this->default_variable_name;
       
  5339         
       
  5340             symbol_c *IN_type_symbol = param_data_type;
       
  5341             last_type_symbol = param_data_type;
       
  5342             
       
  5343             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5344             {
       
  5345         
       
  5346                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  5347                 s4o.print("(");
       
  5348                 return_type_symbol->accept(*this);
       
  5349                 s4o.print(")");
       
  5350                 IN_param_value->accept(*this);
       
  5351                 return NULL;
       
  5352                 
       
  5353             }
       
  5354             
       
  5355             ERROR;
       
  5356         }
       
  5357         
       
  5358     }/*function_udint_to_dword*/
       
  5359     break;
       
  5360 
       
  5361 /****
       
  5362  *UDINT_TO_LWORD
       
  5363  */
       
  5364     case function_udint_to_lword :
       
  5365     {
       
  5366         symbol_c *last_type_symbol = NULL;
       
  5367 
       
  5368         {
       
  5369             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5370             symbol_c *IN_param_value = &this->default_variable_name;
       
  5371         
       
  5372             symbol_c *IN_type_symbol = param_data_type;
       
  5373             last_type_symbol = param_data_type;
       
  5374             
       
  5375             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5376             {
       
  5377         
       
  5378                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  5379                 s4o.print("(");
       
  5380                 return_type_symbol->accept(*this);
       
  5381                 s4o.print(")");
       
  5382                 IN_param_value->accept(*this);
       
  5383                 return NULL;
       
  5384                 
       
  5385             }
       
  5386             
       
  5387             ERROR;
       
  5388         }
       
  5389         
       
  5390     }/*function_udint_to_lword*/
       
  5391     break;
       
  5392 
       
  5393 /****
       
  5394  *UDINT_TO_STRING
       
  5395  */
       
  5396     case function_udint_to_string :
       
  5397     {
       
  5398         symbol_c *last_type_symbol = NULL;
       
  5399 
       
  5400         {
       
  5401             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5402             symbol_c *IN_param_value = &this->default_variable_name;
       
  5403         
       
  5404             symbol_c *IN_type_symbol = param_data_type;
       
  5405             last_type_symbol = param_data_type;
       
  5406             
       
  5407             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5408             {
       
  5409         
       
  5410                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  5411                 s4o.print("(");
       
  5412                 return_type_symbol->accept(*this);
       
  5413                 s4o.print(")__uint_to_string(");
       
  5414                 IN_param_value->accept(*this);
       
  5415                 s4o.print(")");
       
  5416                 return NULL;
       
  5417                 
       
  5418             }
       
  5419             
       
  5420             ERROR;
       
  5421         }
       
  5422         
       
  5423     }/*function_udint_to_string*/
       
  5424     break;
       
  5425 
       
  5426 /****
       
  5427  *UDINT_TO_DATE
       
  5428  */
       
  5429     case function_udint_to_date :
       
  5430     {
       
  5431         symbol_c *last_type_symbol = NULL;
       
  5432 
       
  5433         {
       
  5434             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5435             symbol_c *IN_param_value = &this->default_variable_name;
       
  5436         
       
  5437             symbol_c *IN_type_symbol = param_data_type;
       
  5438             last_type_symbol = param_data_type;
       
  5439             
       
  5440             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5441             {
       
  5442         
       
  5443                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  5444                 s4o.print("(");
       
  5445                 return_type_symbol->accept(*this);
       
  5446                 s4o.print(")__int_to_time(");
       
  5447                 IN_param_value->accept(*this);
       
  5448                 s4o.print(")");
       
  5449                 return NULL;
       
  5450                 
       
  5451             }
       
  5452             
       
  5453             ERROR;
       
  5454         }
       
  5455         
       
  5456     }/*function_udint_to_date*/
       
  5457     break;
       
  5458 
       
  5459 /****
       
  5460  *UDINT_TO_TOD
       
  5461  */
       
  5462     case function_udint_to_tod :
       
  5463     {
       
  5464         symbol_c *last_type_symbol = NULL;
       
  5465 
       
  5466         {
       
  5467             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5468             symbol_c *IN_param_value = &this->default_variable_name;
       
  5469         
       
  5470             symbol_c *IN_type_symbol = param_data_type;
       
  5471             last_type_symbol = param_data_type;
       
  5472             
       
  5473             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5474             {
       
  5475         
       
  5476                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  5477                 s4o.print("(");
       
  5478                 return_type_symbol->accept(*this);
       
  5479                 s4o.print(")__int_to_time(");
       
  5480                 IN_param_value->accept(*this);
       
  5481                 s4o.print(")");
       
  5482                 return NULL;
       
  5483                 
       
  5484             }
       
  5485             
       
  5486             ERROR;
       
  5487         }
       
  5488         
       
  5489     }/*function_udint_to_tod*/
       
  5490     break;
       
  5491 
       
  5492 /****
       
  5493  *UDINT_TO_DT
       
  5494  */
       
  5495     case function_udint_to_dt :
       
  5496     {
       
  5497         symbol_c *last_type_symbol = NULL;
       
  5498 
       
  5499         {
       
  5500             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5501             symbol_c *IN_param_value = &this->default_variable_name;
       
  5502         
       
  5503             symbol_c *IN_type_symbol = param_data_type;
       
  5504             last_type_symbol = param_data_type;
       
  5505             
       
  5506             if (typeid(*last_type_symbol) == typeid(udint_type_name_c))
       
  5507             {
       
  5508         
       
  5509                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  5510                 s4o.print("(");
       
  5511                 return_type_symbol->accept(*this);
       
  5512                 s4o.print(")__int_to_time(");
       
  5513                 IN_param_value->accept(*this);
       
  5514                 s4o.print(")");
       
  5515                 return NULL;
       
  5516                 
       
  5517             }
       
  5518             
       
  5519             ERROR;
       
  5520         }
       
  5521         
       
  5522     }/*function_udint_to_dt*/
       
  5523     break;
       
  5524 
       
  5525 /****
       
  5526  *ULINT_TO_REAL
       
  5527  */
       
  5528     case function_ulint_to_real :
       
  5529     {
       
  5530         symbol_c *last_type_symbol = NULL;
       
  5531 
       
  5532         {
       
  5533             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5534             symbol_c *IN_param_value = &this->default_variable_name;
       
  5535         
       
  5536             symbol_c *IN_type_symbol = param_data_type;
       
  5537             last_type_symbol = param_data_type;
       
  5538             
       
  5539             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5540             {
       
  5541         
       
  5542                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  5543                 s4o.print("(");
       
  5544                 return_type_symbol->accept(*this);
       
  5545                 s4o.print(")");
       
  5546                 IN_param_value->accept(*this);
       
  5547                 return NULL;
       
  5548                 
       
  5549             }
       
  5550             
       
  5551             ERROR;
       
  5552         }
       
  5553         
       
  5554     }/*function_ulint_to_real*/
       
  5555     break;
       
  5556 
       
  5557 /****
       
  5558  *ULINT_TO_LREAL
       
  5559  */
       
  5560     case function_ulint_to_lreal :
       
  5561     {
       
  5562         symbol_c *last_type_symbol = NULL;
       
  5563 
       
  5564         {
       
  5565             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5566             symbol_c *IN_param_value = &this->default_variable_name;
       
  5567         
       
  5568             symbol_c *IN_type_symbol = param_data_type;
       
  5569             last_type_symbol = param_data_type;
       
  5570             
       
  5571             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5572             {
       
  5573         
       
  5574                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  5575                 s4o.print("(");
       
  5576                 return_type_symbol->accept(*this);
       
  5577                 s4o.print(")");
       
  5578                 IN_param_value->accept(*this);
       
  5579                 return NULL;
       
  5580                 
       
  5581             }
       
  5582             
       
  5583             ERROR;
       
  5584         }
       
  5585         
       
  5586     }/*function_ulint_to_lreal*/
       
  5587     break;
       
  5588 
       
  5589 /****
       
  5590  *ULINT_TO_SINT
       
  5591  */
       
  5592     case function_ulint_to_sint :
       
  5593     {
       
  5594         symbol_c *last_type_symbol = NULL;
       
  5595 
       
  5596         {
       
  5597             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5598             symbol_c *IN_param_value = &this->default_variable_name;
       
  5599         
       
  5600             symbol_c *IN_type_symbol = param_data_type;
       
  5601             last_type_symbol = param_data_type;
       
  5602             
       
  5603             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5604             {
       
  5605         
       
  5606                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  5607                 s4o.print("(");
       
  5608                 return_type_symbol->accept(*this);
       
  5609                 s4o.print(")");
       
  5610                 IN_param_value->accept(*this);
       
  5611                 return NULL;
       
  5612                 
       
  5613             }
       
  5614             
       
  5615             ERROR;
       
  5616         }
       
  5617         
       
  5618     }/*function_ulint_to_sint*/
       
  5619     break;
       
  5620 
       
  5621 /****
       
  5622  *ULINT_TO_INT
       
  5623  */
       
  5624     case function_ulint_to_int :
       
  5625     {
       
  5626         symbol_c *last_type_symbol = NULL;
       
  5627 
       
  5628         {
       
  5629             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5630             symbol_c *IN_param_value = &this->default_variable_name;
       
  5631         
       
  5632             symbol_c *IN_type_symbol = param_data_type;
       
  5633             last_type_symbol = param_data_type;
       
  5634             
       
  5635             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5636             {
       
  5637         
       
  5638                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  5639                 s4o.print("(");
       
  5640                 return_type_symbol->accept(*this);
       
  5641                 s4o.print(")");
       
  5642                 IN_param_value->accept(*this);
       
  5643                 return NULL;
       
  5644                 
       
  5645             }
       
  5646             
       
  5647             ERROR;
       
  5648         }
       
  5649         
       
  5650     }/*function_ulint_to_int*/
       
  5651     break;
       
  5652 
       
  5653 /****
       
  5654  *ULINT_TO_DINT
       
  5655  */
       
  5656     case function_ulint_to_dint :
       
  5657     {
       
  5658         symbol_c *last_type_symbol = NULL;
       
  5659 
       
  5660         {
       
  5661             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5662             symbol_c *IN_param_value = &this->default_variable_name;
       
  5663         
       
  5664             symbol_c *IN_type_symbol = param_data_type;
       
  5665             last_type_symbol = param_data_type;
       
  5666             
       
  5667             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5668             {
       
  5669         
       
  5670                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  5671                 s4o.print("(");
       
  5672                 return_type_symbol->accept(*this);
       
  5673                 s4o.print(")");
       
  5674                 IN_param_value->accept(*this);
       
  5675                 return NULL;
       
  5676                 
       
  5677             }
       
  5678             
       
  5679             ERROR;
       
  5680         }
       
  5681         
       
  5682     }/*function_ulint_to_dint*/
       
  5683     break;
       
  5684 
       
  5685 /****
       
  5686  *ULINT_TO_LINT
       
  5687  */
       
  5688     case function_ulint_to_lint :
       
  5689     {
       
  5690         symbol_c *last_type_symbol = NULL;
       
  5691 
       
  5692         {
       
  5693             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5694             symbol_c *IN_param_value = &this->default_variable_name;
       
  5695         
       
  5696             symbol_c *IN_type_symbol = param_data_type;
       
  5697             last_type_symbol = param_data_type;
       
  5698             
       
  5699             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5700             {
       
  5701         
       
  5702                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  5703                 s4o.print("(");
       
  5704                 return_type_symbol->accept(*this);
       
  5705                 s4o.print(")");
       
  5706                 IN_param_value->accept(*this);
       
  5707                 return NULL;
       
  5708                 
       
  5709             }
       
  5710             
       
  5711             ERROR;
       
  5712         }
       
  5713         
       
  5714     }/*function_ulint_to_lint*/
       
  5715     break;
       
  5716 
       
  5717 /****
       
  5718  *ULINT_TO_USINT
       
  5719  */
       
  5720     case function_ulint_to_usint :
       
  5721     {
       
  5722         symbol_c *last_type_symbol = NULL;
       
  5723 
       
  5724         {
       
  5725             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5726             symbol_c *IN_param_value = &this->default_variable_name;
       
  5727         
       
  5728             symbol_c *IN_type_symbol = param_data_type;
       
  5729             last_type_symbol = param_data_type;
       
  5730             
       
  5731             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5732             {
       
  5733         
       
  5734                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  5735                 s4o.print("(");
       
  5736                 return_type_symbol->accept(*this);
       
  5737                 s4o.print(")");
       
  5738                 IN_param_value->accept(*this);
       
  5739                 return NULL;
       
  5740                 
       
  5741             }
       
  5742             
       
  5743             ERROR;
       
  5744         }
       
  5745         
       
  5746     }/*function_ulint_to_usint*/
       
  5747     break;
       
  5748 
       
  5749 /****
       
  5750  *ULINT_TO_UINT
       
  5751  */
       
  5752     case function_ulint_to_uint :
       
  5753     {
       
  5754         symbol_c *last_type_symbol = NULL;
       
  5755 
       
  5756         {
       
  5757             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5758             symbol_c *IN_param_value = &this->default_variable_name;
       
  5759         
       
  5760             symbol_c *IN_type_symbol = param_data_type;
       
  5761             last_type_symbol = param_data_type;
       
  5762             
       
  5763             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5764             {
       
  5765         
       
  5766                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  5767                 s4o.print("(");
       
  5768                 return_type_symbol->accept(*this);
       
  5769                 s4o.print(")");
       
  5770                 IN_param_value->accept(*this);
       
  5771                 return NULL;
       
  5772                 
       
  5773             }
       
  5774             
       
  5775             ERROR;
       
  5776         }
       
  5777         
       
  5778     }/*function_ulint_to_uint*/
       
  5779     break;
       
  5780 
       
  5781 /****
       
  5782  *ULINT_TO_UDINT
       
  5783  */
       
  5784     case function_ulint_to_udint :
       
  5785     {
       
  5786         symbol_c *last_type_symbol = NULL;
       
  5787 
       
  5788         {
       
  5789             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5790             symbol_c *IN_param_value = &this->default_variable_name;
       
  5791         
       
  5792             symbol_c *IN_type_symbol = param_data_type;
       
  5793             last_type_symbol = param_data_type;
       
  5794             
       
  5795             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5796             {
       
  5797         
       
  5798                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  5799                 s4o.print("(");
       
  5800                 return_type_symbol->accept(*this);
       
  5801                 s4o.print(")");
       
  5802                 IN_param_value->accept(*this);
       
  5803                 return NULL;
       
  5804                 
       
  5805             }
       
  5806             
       
  5807             ERROR;
       
  5808         }
       
  5809         
       
  5810     }/*function_ulint_to_udint*/
       
  5811     break;
       
  5812 
       
  5813 /****
       
  5814  *ULINT_TO_TIME
       
  5815  */
       
  5816     case function_ulint_to_time :
       
  5817     {
       
  5818         symbol_c *last_type_symbol = NULL;
       
  5819 
       
  5820         {
       
  5821             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5822             symbol_c *IN_param_value = &this->default_variable_name;
       
  5823         
       
  5824             symbol_c *IN_type_symbol = param_data_type;
       
  5825             last_type_symbol = param_data_type;
       
  5826             
       
  5827             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5828             {
       
  5829         
       
  5830                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  5831                 s4o.print("(");
       
  5832                 return_type_symbol->accept(*this);
       
  5833                 s4o.print(")__int_to_time(");
       
  5834                 IN_param_value->accept(*this);
       
  5835                 s4o.print(")");
       
  5836                 return NULL;
       
  5837                 
       
  5838             }
       
  5839             
       
  5840             ERROR;
       
  5841         }
       
  5842         
       
  5843     }/*function_ulint_to_time*/
       
  5844     break;
       
  5845 
       
  5846 /****
       
  5847  *ULINT_TO_BOOL
       
  5848  */
       
  5849     case function_ulint_to_bool :
       
  5850     {
       
  5851         symbol_c *last_type_symbol = NULL;
       
  5852 
       
  5853         {
       
  5854             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5855             symbol_c *IN_param_value = &this->default_variable_name;
       
  5856         
       
  5857             symbol_c *IN_type_symbol = param_data_type;
       
  5858             last_type_symbol = param_data_type;
       
  5859             
       
  5860             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5861             {
       
  5862         
       
  5863                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  5864                 s4o.print("(");
       
  5865                 return_type_symbol->accept(*this);
       
  5866                 s4o.print(")");
       
  5867                 IN_param_value->accept(*this);
       
  5868                 return NULL;
       
  5869                 
       
  5870             }
       
  5871             
       
  5872             ERROR;
       
  5873         }
       
  5874         
       
  5875     }/*function_ulint_to_bool*/
       
  5876     break;
       
  5877 
       
  5878 /****
       
  5879  *ULINT_TO_BYTE
       
  5880  */
       
  5881     case function_ulint_to_byte :
       
  5882     {
       
  5883         symbol_c *last_type_symbol = NULL;
       
  5884 
       
  5885         {
       
  5886             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5887             symbol_c *IN_param_value = &this->default_variable_name;
       
  5888         
       
  5889             symbol_c *IN_type_symbol = param_data_type;
       
  5890             last_type_symbol = param_data_type;
       
  5891             
       
  5892             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5893             {
       
  5894         
       
  5895                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  5896                 s4o.print("(");
       
  5897                 return_type_symbol->accept(*this);
       
  5898                 s4o.print(")");
       
  5899                 IN_param_value->accept(*this);
       
  5900                 return NULL;
       
  5901                 
       
  5902             }
       
  5903             
       
  5904             ERROR;
       
  5905         }
       
  5906         
       
  5907     }/*function_ulint_to_byte*/
       
  5908     break;
       
  5909 
       
  5910 /****
       
  5911  *ULINT_TO_WORD
       
  5912  */
       
  5913     case function_ulint_to_word :
       
  5914     {
       
  5915         symbol_c *last_type_symbol = NULL;
       
  5916 
       
  5917         {
       
  5918             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5919             symbol_c *IN_param_value = &this->default_variable_name;
       
  5920         
       
  5921             symbol_c *IN_type_symbol = param_data_type;
       
  5922             last_type_symbol = param_data_type;
       
  5923             
       
  5924             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5925             {
       
  5926         
       
  5927                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  5928                 s4o.print("(");
       
  5929                 return_type_symbol->accept(*this);
       
  5930                 s4o.print(")");
       
  5931                 IN_param_value->accept(*this);
       
  5932                 return NULL;
       
  5933                 
       
  5934             }
       
  5935             
       
  5936             ERROR;
       
  5937         }
       
  5938         
       
  5939     }/*function_ulint_to_word*/
       
  5940     break;
       
  5941 
       
  5942 /****
       
  5943  *ULINT_TO_DWORD
       
  5944  */
       
  5945     case function_ulint_to_dword :
       
  5946     {
       
  5947         symbol_c *last_type_symbol = NULL;
       
  5948 
       
  5949         {
       
  5950             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5951             symbol_c *IN_param_value = &this->default_variable_name;
       
  5952         
       
  5953             symbol_c *IN_type_symbol = param_data_type;
       
  5954             last_type_symbol = param_data_type;
       
  5955             
       
  5956             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5957             {
       
  5958         
       
  5959                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  5960                 s4o.print("(");
       
  5961                 return_type_symbol->accept(*this);
       
  5962                 s4o.print(")");
       
  5963                 IN_param_value->accept(*this);
       
  5964                 return NULL;
       
  5965                 
       
  5966             }
       
  5967             
       
  5968             ERROR;
       
  5969         }
       
  5970         
       
  5971     }/*function_ulint_to_dword*/
       
  5972     break;
       
  5973 
       
  5974 /****
       
  5975  *ULINT_TO_LWORD
       
  5976  */
       
  5977     case function_ulint_to_lword :
       
  5978     {
       
  5979         symbol_c *last_type_symbol = NULL;
       
  5980 
       
  5981         {
       
  5982             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  5983             symbol_c *IN_param_value = &this->default_variable_name;
       
  5984         
       
  5985             symbol_c *IN_type_symbol = param_data_type;
       
  5986             last_type_symbol = param_data_type;
       
  5987             
       
  5988             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  5989             {
       
  5990         
       
  5991                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  5992                 s4o.print("(");
       
  5993                 return_type_symbol->accept(*this);
       
  5994                 s4o.print(")");
       
  5995                 IN_param_value->accept(*this);
       
  5996                 return NULL;
       
  5997                 
       
  5998             }
       
  5999             
       
  6000             ERROR;
       
  6001         }
       
  6002         
       
  6003     }/*function_ulint_to_lword*/
       
  6004     break;
       
  6005 
       
  6006 /****
       
  6007  *ULINT_TO_STRING
       
  6008  */
       
  6009     case function_ulint_to_string :
       
  6010     {
       
  6011         symbol_c *last_type_symbol = NULL;
       
  6012 
       
  6013         {
       
  6014             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6015             symbol_c *IN_param_value = &this->default_variable_name;
       
  6016         
       
  6017             symbol_c *IN_type_symbol = param_data_type;
       
  6018             last_type_symbol = param_data_type;
       
  6019             
       
  6020             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  6021             {
       
  6022         
       
  6023                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  6024                 s4o.print("(");
       
  6025                 return_type_symbol->accept(*this);
       
  6026                 s4o.print(")__uint_to_string(");
       
  6027                 IN_param_value->accept(*this);
       
  6028                 s4o.print(")");
       
  6029                 return NULL;
       
  6030                 
       
  6031             }
       
  6032             
       
  6033             ERROR;
       
  6034         }
       
  6035         
       
  6036     }/*function_ulint_to_string*/
       
  6037     break;
       
  6038 
       
  6039 /****
       
  6040  *ULINT_TO_DATE
       
  6041  */
       
  6042     case function_ulint_to_date :
       
  6043     {
       
  6044         symbol_c *last_type_symbol = NULL;
       
  6045 
       
  6046         {
       
  6047             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6048             symbol_c *IN_param_value = &this->default_variable_name;
       
  6049         
       
  6050             symbol_c *IN_type_symbol = param_data_type;
       
  6051             last_type_symbol = param_data_type;
       
  6052             
       
  6053             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  6054             {
       
  6055         
       
  6056                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  6057                 s4o.print("(");
       
  6058                 return_type_symbol->accept(*this);
       
  6059                 s4o.print(")__int_to_time(");
       
  6060                 IN_param_value->accept(*this);
       
  6061                 s4o.print(")");
       
  6062                 return NULL;
       
  6063                 
       
  6064             }
       
  6065             
       
  6066             ERROR;
       
  6067         }
       
  6068         
       
  6069     }/*function_ulint_to_date*/
       
  6070     break;
       
  6071 
       
  6072 /****
       
  6073  *ULINT_TO_TOD
       
  6074  */
       
  6075     case function_ulint_to_tod :
       
  6076     {
       
  6077         symbol_c *last_type_symbol = NULL;
       
  6078 
       
  6079         {
       
  6080             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6081             symbol_c *IN_param_value = &this->default_variable_name;
       
  6082         
       
  6083             symbol_c *IN_type_symbol = param_data_type;
       
  6084             last_type_symbol = param_data_type;
       
  6085             
       
  6086             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  6087             {
       
  6088         
       
  6089                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  6090                 s4o.print("(");
       
  6091                 return_type_symbol->accept(*this);
       
  6092                 s4o.print(")__int_to_time(");
       
  6093                 IN_param_value->accept(*this);
       
  6094                 s4o.print(")");
       
  6095                 return NULL;
       
  6096                 
       
  6097             }
       
  6098             
       
  6099             ERROR;
       
  6100         }
       
  6101         
       
  6102     }/*function_ulint_to_tod*/
       
  6103     break;
       
  6104 
       
  6105 /****
       
  6106  *ULINT_TO_DT
       
  6107  */
       
  6108     case function_ulint_to_dt :
       
  6109     {
       
  6110         symbol_c *last_type_symbol = NULL;
       
  6111 
       
  6112         {
       
  6113             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6114             symbol_c *IN_param_value = &this->default_variable_name;
       
  6115         
       
  6116             symbol_c *IN_type_symbol = param_data_type;
       
  6117             last_type_symbol = param_data_type;
       
  6118             
       
  6119             if (typeid(*last_type_symbol) == typeid(ulint_type_name_c))
       
  6120             {
       
  6121         
       
  6122                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  6123                 s4o.print("(");
       
  6124                 return_type_symbol->accept(*this);
       
  6125                 s4o.print(")__int_to_time(");
       
  6126                 IN_param_value->accept(*this);
       
  6127                 s4o.print(")");
       
  6128                 return NULL;
       
  6129                 
       
  6130             }
       
  6131             
       
  6132             ERROR;
       
  6133         }
       
  6134         
       
  6135     }/*function_ulint_to_dt*/
       
  6136     break;
       
  6137 
       
  6138 /****
       
  6139  *TIME_TO_REAL
       
  6140  */
       
  6141     case function_time_to_real :
       
  6142     {
       
  6143         symbol_c *last_type_symbol = NULL;
       
  6144 
       
  6145         {
       
  6146             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6147             symbol_c *IN_param_value = &this->default_variable_name;
       
  6148         
       
  6149             symbol_c *IN_type_symbol = param_data_type;
       
  6150             last_type_symbol = param_data_type;
       
  6151             
       
  6152             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6153             {
       
  6154         
       
  6155                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  6156                 s4o.print("(");
       
  6157                 return_type_symbol->accept(*this);
       
  6158                 s4o.print(")__time_to_real(");
       
  6159                 IN_param_value->accept(*this);
       
  6160                 s4o.print(")");
       
  6161                 return NULL;
       
  6162                 
       
  6163             }
       
  6164             
       
  6165             ERROR;
       
  6166         }
       
  6167         
       
  6168     }/*function_time_to_real*/
       
  6169     break;
       
  6170 
       
  6171 /****
       
  6172  *TIME_TO_LREAL
       
  6173  */
       
  6174     case function_time_to_lreal :
       
  6175     {
       
  6176         symbol_c *last_type_symbol = NULL;
       
  6177 
       
  6178         {
       
  6179             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6180             symbol_c *IN_param_value = &this->default_variable_name;
       
  6181         
       
  6182             symbol_c *IN_type_symbol = param_data_type;
       
  6183             last_type_symbol = param_data_type;
       
  6184             
       
  6185             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6186             {
       
  6187         
       
  6188                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  6189                 s4o.print("(");
       
  6190                 return_type_symbol->accept(*this);
       
  6191                 s4o.print(")__time_to_real(");
       
  6192                 IN_param_value->accept(*this);
       
  6193                 s4o.print(")");
       
  6194                 return NULL;
       
  6195                 
       
  6196             }
       
  6197             
       
  6198             ERROR;
       
  6199         }
       
  6200         
       
  6201     }/*function_time_to_lreal*/
       
  6202     break;
       
  6203 
       
  6204 /****
       
  6205  *TIME_TO_SINT
       
  6206  */
       
  6207     case function_time_to_sint :
       
  6208     {
       
  6209         symbol_c *last_type_symbol = NULL;
       
  6210 
       
  6211         {
       
  6212             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6213             symbol_c *IN_param_value = &this->default_variable_name;
       
  6214         
       
  6215             symbol_c *IN_type_symbol = param_data_type;
       
  6216             last_type_symbol = param_data_type;
       
  6217             
       
  6218             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6219             {
       
  6220         
       
  6221                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  6222                 s4o.print("(");
       
  6223                 return_type_symbol->accept(*this);
       
  6224                 s4o.print(")__time_to_int(");
       
  6225                 IN_param_value->accept(*this);
       
  6226                 s4o.print(")");
       
  6227                 return NULL;
       
  6228                 
       
  6229             }
       
  6230             
       
  6231             ERROR;
       
  6232         }
       
  6233         
       
  6234     }/*function_time_to_sint*/
       
  6235     break;
       
  6236 
       
  6237 /****
       
  6238  *TIME_TO_INT
       
  6239  */
       
  6240     case function_time_to_int :
       
  6241     {
       
  6242         symbol_c *last_type_symbol = NULL;
       
  6243 
       
  6244         {
       
  6245             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6246             symbol_c *IN_param_value = &this->default_variable_name;
       
  6247         
       
  6248             symbol_c *IN_type_symbol = param_data_type;
       
  6249             last_type_symbol = param_data_type;
       
  6250             
       
  6251             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6252             {
       
  6253         
       
  6254                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  6255                 s4o.print("(");
       
  6256                 return_type_symbol->accept(*this);
       
  6257                 s4o.print(")__time_to_int(");
       
  6258                 IN_param_value->accept(*this);
       
  6259                 s4o.print(")");
       
  6260                 return NULL;
       
  6261                 
       
  6262             }
       
  6263             
       
  6264             ERROR;
       
  6265         }
       
  6266         
       
  6267     }/*function_time_to_int*/
       
  6268     break;
       
  6269 
       
  6270 /****
       
  6271  *TIME_TO_DINT
       
  6272  */
       
  6273     case function_time_to_dint :
       
  6274     {
       
  6275         symbol_c *last_type_symbol = NULL;
       
  6276 
       
  6277         {
       
  6278             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6279             symbol_c *IN_param_value = &this->default_variable_name;
       
  6280         
       
  6281             symbol_c *IN_type_symbol = param_data_type;
       
  6282             last_type_symbol = param_data_type;
       
  6283             
       
  6284             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6285             {
       
  6286         
       
  6287                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  6288                 s4o.print("(");
       
  6289                 return_type_symbol->accept(*this);
       
  6290                 s4o.print(")__time_to_int(");
       
  6291                 IN_param_value->accept(*this);
       
  6292                 s4o.print(")");
       
  6293                 return NULL;
       
  6294                 
       
  6295             }
       
  6296             
       
  6297             ERROR;
       
  6298         }
       
  6299         
       
  6300     }/*function_time_to_dint*/
       
  6301     break;
       
  6302 
       
  6303 /****
       
  6304  *TIME_TO_LINT
       
  6305  */
       
  6306     case function_time_to_lint :
       
  6307     {
       
  6308         symbol_c *last_type_symbol = NULL;
       
  6309 
       
  6310         {
       
  6311             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6312             symbol_c *IN_param_value = &this->default_variable_name;
       
  6313         
       
  6314             symbol_c *IN_type_symbol = param_data_type;
       
  6315             last_type_symbol = param_data_type;
       
  6316             
       
  6317             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6318             {
       
  6319         
       
  6320                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  6321                 s4o.print("(");
       
  6322                 return_type_symbol->accept(*this);
       
  6323                 s4o.print(")__time_to_int(");
       
  6324                 IN_param_value->accept(*this);
       
  6325                 s4o.print(")");
       
  6326                 return NULL;
       
  6327                 
       
  6328             }
       
  6329             
       
  6330             ERROR;
       
  6331         }
       
  6332         
       
  6333     }/*function_time_to_lint*/
       
  6334     break;
       
  6335 
       
  6336 /****
       
  6337  *TIME_TO_USINT
       
  6338  */
       
  6339     case function_time_to_usint :
       
  6340     {
       
  6341         symbol_c *last_type_symbol = NULL;
       
  6342 
       
  6343         {
       
  6344             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6345             symbol_c *IN_param_value = &this->default_variable_name;
       
  6346         
       
  6347             symbol_c *IN_type_symbol = param_data_type;
       
  6348             last_type_symbol = param_data_type;
       
  6349             
       
  6350             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6351             {
       
  6352         
       
  6353                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  6354                 s4o.print("(");
       
  6355                 return_type_symbol->accept(*this);
       
  6356                 s4o.print(")__time_to_int(");
       
  6357                 IN_param_value->accept(*this);
       
  6358                 s4o.print(")");
       
  6359                 return NULL;
       
  6360                 
       
  6361             }
       
  6362             
       
  6363             ERROR;
       
  6364         }
       
  6365         
       
  6366     }/*function_time_to_usint*/
       
  6367     break;
       
  6368 
       
  6369 /****
       
  6370  *TIME_TO_UINT
       
  6371  */
       
  6372     case function_time_to_uint :
       
  6373     {
       
  6374         symbol_c *last_type_symbol = NULL;
       
  6375 
       
  6376         {
       
  6377             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6378             symbol_c *IN_param_value = &this->default_variable_name;
       
  6379         
       
  6380             symbol_c *IN_type_symbol = param_data_type;
       
  6381             last_type_symbol = param_data_type;
       
  6382             
       
  6383             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6384             {
       
  6385         
       
  6386                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  6387                 s4o.print("(");
       
  6388                 return_type_symbol->accept(*this);
       
  6389                 s4o.print(")__time_to_int(");
       
  6390                 IN_param_value->accept(*this);
       
  6391                 s4o.print(")");
       
  6392                 return NULL;
       
  6393                 
       
  6394             }
       
  6395             
       
  6396             ERROR;
       
  6397         }
       
  6398         
       
  6399     }/*function_time_to_uint*/
       
  6400     break;
       
  6401 
       
  6402 /****
       
  6403  *TIME_TO_UDINT
       
  6404  */
       
  6405     case function_time_to_udint :
       
  6406     {
       
  6407         symbol_c *last_type_symbol = NULL;
       
  6408 
       
  6409         {
       
  6410             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6411             symbol_c *IN_param_value = &this->default_variable_name;
       
  6412         
       
  6413             symbol_c *IN_type_symbol = param_data_type;
       
  6414             last_type_symbol = param_data_type;
       
  6415             
       
  6416             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6417             {
       
  6418         
       
  6419                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  6420                 s4o.print("(");
       
  6421                 return_type_symbol->accept(*this);
       
  6422                 s4o.print(")__time_to_int(");
       
  6423                 IN_param_value->accept(*this);
       
  6424                 s4o.print(")");
       
  6425                 return NULL;
       
  6426                 
       
  6427             }
       
  6428             
       
  6429             ERROR;
       
  6430         }
       
  6431         
       
  6432     }/*function_time_to_udint*/
       
  6433     break;
       
  6434 
       
  6435 /****
       
  6436  *TIME_TO_ULINT
       
  6437  */
       
  6438     case function_time_to_ulint :
       
  6439     {
       
  6440         symbol_c *last_type_symbol = NULL;
       
  6441 
       
  6442         {
       
  6443             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6444             symbol_c *IN_param_value = &this->default_variable_name;
       
  6445         
       
  6446             symbol_c *IN_type_symbol = param_data_type;
       
  6447             last_type_symbol = param_data_type;
       
  6448             
       
  6449             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6450             {
       
  6451         
       
  6452                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  6453                 s4o.print("(");
       
  6454                 return_type_symbol->accept(*this);
       
  6455                 s4o.print(")__time_to_int(");
       
  6456                 IN_param_value->accept(*this);
       
  6457                 s4o.print(")");
       
  6458                 return NULL;
       
  6459                 
       
  6460             }
       
  6461             
       
  6462             ERROR;
       
  6463         }
       
  6464         
       
  6465     }/*function_time_to_ulint*/
       
  6466     break;
       
  6467 
       
  6468 /****
       
  6469  *TIME_TO_BOOL
       
  6470  */
       
  6471     case function_time_to_bool :
       
  6472     {
       
  6473         symbol_c *last_type_symbol = NULL;
       
  6474 
       
  6475         {
       
  6476             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6477             symbol_c *IN_param_value = &this->default_variable_name;
       
  6478         
       
  6479             symbol_c *IN_type_symbol = param_data_type;
       
  6480             last_type_symbol = param_data_type;
       
  6481             
       
  6482             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6483             {
       
  6484         
       
  6485                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  6486                 s4o.print("(");
       
  6487                 return_type_symbol->accept(*this);
       
  6488                 s4o.print(")__time_to_int(");
       
  6489                 IN_param_value->accept(*this);
       
  6490                 s4o.print(")");
       
  6491                 return NULL;
       
  6492                 
       
  6493             }
       
  6494             
       
  6495             ERROR;
       
  6496         }
       
  6497         
       
  6498     }/*function_time_to_bool*/
       
  6499     break;
       
  6500 
       
  6501 /****
       
  6502  *TIME_TO_BYTE
       
  6503  */
       
  6504     case function_time_to_byte :
       
  6505     {
       
  6506         symbol_c *last_type_symbol = NULL;
       
  6507 
       
  6508         {
       
  6509             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6510             symbol_c *IN_param_value = &this->default_variable_name;
       
  6511         
       
  6512             symbol_c *IN_type_symbol = param_data_type;
       
  6513             last_type_symbol = param_data_type;
       
  6514             
       
  6515             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6516             {
       
  6517         
       
  6518                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  6519                 s4o.print("(");
       
  6520                 return_type_symbol->accept(*this);
       
  6521                 s4o.print(")__time_to_int(");
       
  6522                 IN_param_value->accept(*this);
       
  6523                 s4o.print(")");
       
  6524                 return NULL;
       
  6525                 
       
  6526             }
       
  6527             
       
  6528             ERROR;
       
  6529         }
       
  6530         
       
  6531     }/*function_time_to_byte*/
       
  6532     break;
       
  6533 
       
  6534 /****
       
  6535  *TIME_TO_WORD
       
  6536  */
       
  6537     case function_time_to_word :
       
  6538     {
       
  6539         symbol_c *last_type_symbol = NULL;
       
  6540 
       
  6541         {
       
  6542             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6543             symbol_c *IN_param_value = &this->default_variable_name;
       
  6544         
       
  6545             symbol_c *IN_type_symbol = param_data_type;
       
  6546             last_type_symbol = param_data_type;
       
  6547             
       
  6548             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6549             {
       
  6550         
       
  6551                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  6552                 s4o.print("(");
       
  6553                 return_type_symbol->accept(*this);
       
  6554                 s4o.print(")__time_to_int(");
       
  6555                 IN_param_value->accept(*this);
       
  6556                 s4o.print(")");
       
  6557                 return NULL;
       
  6558                 
       
  6559             }
       
  6560             
       
  6561             ERROR;
       
  6562         }
       
  6563         
       
  6564     }/*function_time_to_word*/
       
  6565     break;
       
  6566 
       
  6567 /****
       
  6568  *TIME_TO_DWORD
       
  6569  */
       
  6570     case function_time_to_dword :
       
  6571     {
       
  6572         symbol_c *last_type_symbol = NULL;
       
  6573 
       
  6574         {
       
  6575             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6576             symbol_c *IN_param_value = &this->default_variable_name;
       
  6577         
       
  6578             symbol_c *IN_type_symbol = param_data_type;
       
  6579             last_type_symbol = param_data_type;
       
  6580             
       
  6581             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6582             {
       
  6583         
       
  6584                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  6585                 s4o.print("(");
       
  6586                 return_type_symbol->accept(*this);
       
  6587                 s4o.print(")__time_to_int(");
       
  6588                 IN_param_value->accept(*this);
       
  6589                 s4o.print(")");
       
  6590                 return NULL;
       
  6591                 
       
  6592             }
       
  6593             
       
  6594             ERROR;
       
  6595         }
       
  6596         
       
  6597     }/*function_time_to_dword*/
       
  6598     break;
       
  6599 
       
  6600 /****
       
  6601  *TIME_TO_LWORD
       
  6602  */
       
  6603     case function_time_to_lword :
       
  6604     {
       
  6605         symbol_c *last_type_symbol = NULL;
       
  6606 
       
  6607         {
       
  6608             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6609             symbol_c *IN_param_value = &this->default_variable_name;
       
  6610         
       
  6611             symbol_c *IN_type_symbol = param_data_type;
       
  6612             last_type_symbol = param_data_type;
       
  6613             
       
  6614             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6615             {
       
  6616         
       
  6617                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  6618                 s4o.print("(");
       
  6619                 return_type_symbol->accept(*this);
       
  6620                 s4o.print(")__time_to_int(");
       
  6621                 IN_param_value->accept(*this);
       
  6622                 s4o.print(")");
       
  6623                 return NULL;
       
  6624                 
       
  6625             }
       
  6626             
       
  6627             ERROR;
       
  6628         }
       
  6629         
       
  6630     }/*function_time_to_lword*/
       
  6631     break;
       
  6632 
       
  6633 /****
       
  6634  *TIME_TO_STRING
       
  6635  */
       
  6636     case function_time_to_string :
       
  6637     {
       
  6638         symbol_c *last_type_symbol = NULL;
       
  6639 
       
  6640         {
       
  6641             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6642             symbol_c *IN_param_value = &this->default_variable_name;
       
  6643         
       
  6644             symbol_c *IN_type_symbol = param_data_type;
       
  6645             last_type_symbol = param_data_type;
       
  6646             
       
  6647             if (typeid(*last_type_symbol) == typeid(time_type_name_c))
       
  6648             {
       
  6649         
       
  6650                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  6651                 s4o.print("(");
       
  6652                 return_type_symbol->accept(*this);
       
  6653                 s4o.print(")__time_to_string(");
       
  6654                 IN_param_value->accept(*this);
       
  6655                 s4o.print(")");
       
  6656                 return NULL;
       
  6657                 
       
  6658             }
       
  6659             
       
  6660             ERROR;
       
  6661         }
       
  6662         
       
  6663     }/*function_time_to_string*/
       
  6664     break;
       
  6665 
       
  6666 /****
       
  6667  *BOOL_TO_REAL
       
  6668  */
       
  6669     case function_bool_to_real :
       
  6670     {
       
  6671         symbol_c *last_type_symbol = NULL;
       
  6672 
       
  6673         {
       
  6674             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6675             symbol_c *IN_param_value = &this->default_variable_name;
       
  6676         
       
  6677             symbol_c *IN_type_symbol = param_data_type;
       
  6678             last_type_symbol = param_data_type;
       
  6679             
       
  6680             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  6681             {
       
  6682         
       
  6683                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  6684                 s4o.print("(");
       
  6685                 return_type_symbol->accept(*this);
       
  6686                 s4o.print(")");
       
  6687                 IN_param_value->accept(*this);
       
  6688                 return NULL;
       
  6689                 
       
  6690             }
       
  6691             
       
  6692             ERROR;
       
  6693         }
       
  6694         
       
  6695     }/*function_bool_to_real*/
       
  6696     break;
       
  6697 
       
  6698 /****
       
  6699  *BOOL_TO_LREAL
       
  6700  */
       
  6701     case function_bool_to_lreal :
       
  6702     {
       
  6703         symbol_c *last_type_symbol = NULL;
       
  6704 
       
  6705         {
       
  6706             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6707             symbol_c *IN_param_value = &this->default_variable_name;
       
  6708         
       
  6709             symbol_c *IN_type_symbol = param_data_type;
       
  6710             last_type_symbol = param_data_type;
       
  6711             
       
  6712             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  6713             {
       
  6714         
       
  6715                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  6716                 s4o.print("(");
       
  6717                 return_type_symbol->accept(*this);
       
  6718                 s4o.print(")");
       
  6719                 IN_param_value->accept(*this);
       
  6720                 return NULL;
       
  6721                 
       
  6722             }
       
  6723             
       
  6724             ERROR;
       
  6725         }
       
  6726         
       
  6727     }/*function_bool_to_lreal*/
       
  6728     break;
       
  6729 
       
  6730 /****
       
  6731  *BOOL_TO_SINT
       
  6732  */
       
  6733     case function_bool_to_sint :
       
  6734     {
       
  6735         symbol_c *last_type_symbol = NULL;
       
  6736 
       
  6737         {
       
  6738             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6739             symbol_c *IN_param_value = &this->default_variable_name;
       
  6740         
       
  6741             symbol_c *IN_type_symbol = param_data_type;
       
  6742             last_type_symbol = param_data_type;
       
  6743             
       
  6744             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  6745             {
       
  6746         
       
  6747                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  6748                 s4o.print("(");
       
  6749                 return_type_symbol->accept(*this);
       
  6750                 s4o.print(")");
       
  6751                 IN_param_value->accept(*this);
       
  6752                 return NULL;
       
  6753                 
       
  6754             }
       
  6755             
       
  6756             ERROR;
       
  6757         }
       
  6758         
       
  6759     }/*function_bool_to_sint*/
       
  6760     break;
       
  6761 
       
  6762 /****
       
  6763  *BOOL_TO_INT
       
  6764  */
       
  6765     case function_bool_to_int :
       
  6766     {
       
  6767         symbol_c *last_type_symbol = NULL;
       
  6768 
       
  6769         {
       
  6770             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6771             symbol_c *IN_param_value = &this->default_variable_name;
       
  6772         
       
  6773             symbol_c *IN_type_symbol = param_data_type;
       
  6774             last_type_symbol = param_data_type;
       
  6775             
       
  6776             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  6777             {
       
  6778         
       
  6779                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  6780                 s4o.print("(");
       
  6781                 return_type_symbol->accept(*this);
       
  6782                 s4o.print(")");
       
  6783                 IN_param_value->accept(*this);
       
  6784                 return NULL;
       
  6785                 
       
  6786             }
       
  6787             
       
  6788             ERROR;
       
  6789         }
       
  6790         
       
  6791     }/*function_bool_to_int*/
       
  6792     break;
       
  6793 
       
  6794 /****
       
  6795  *BOOL_TO_DINT
       
  6796  */
       
  6797     case function_bool_to_dint :
       
  6798     {
       
  6799         symbol_c *last_type_symbol = NULL;
       
  6800 
       
  6801         {
       
  6802             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6803             symbol_c *IN_param_value = &this->default_variable_name;
       
  6804         
       
  6805             symbol_c *IN_type_symbol = param_data_type;
       
  6806             last_type_symbol = param_data_type;
       
  6807             
       
  6808             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  6809             {
       
  6810         
       
  6811                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  6812                 s4o.print("(");
       
  6813                 return_type_symbol->accept(*this);
       
  6814                 s4o.print(")");
       
  6815                 IN_param_value->accept(*this);
       
  6816                 return NULL;
       
  6817                 
       
  6818             }
       
  6819             
       
  6820             ERROR;
       
  6821         }
       
  6822         
       
  6823     }/*function_bool_to_dint*/
       
  6824     break;
       
  6825 
       
  6826 /****
       
  6827  *BOOL_TO_LINT
       
  6828  */
       
  6829     case function_bool_to_lint :
       
  6830     {
       
  6831         symbol_c *last_type_symbol = NULL;
       
  6832 
       
  6833         {
       
  6834             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6835             symbol_c *IN_param_value = &this->default_variable_name;
       
  6836         
       
  6837             symbol_c *IN_type_symbol = param_data_type;
       
  6838             last_type_symbol = param_data_type;
       
  6839             
       
  6840             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  6841             {
       
  6842         
       
  6843                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  6844                 s4o.print("(");
       
  6845                 return_type_symbol->accept(*this);
       
  6846                 s4o.print(")");
       
  6847                 IN_param_value->accept(*this);
       
  6848                 return NULL;
       
  6849                 
       
  6850             }
       
  6851             
       
  6852             ERROR;
       
  6853         }
       
  6854         
       
  6855     }/*function_bool_to_lint*/
       
  6856     break;
       
  6857 
       
  6858 /****
       
  6859  *BOOL_TO_USINT
       
  6860  */
       
  6861     case function_bool_to_usint :
       
  6862     {
       
  6863         symbol_c *last_type_symbol = NULL;
       
  6864 
       
  6865         {
       
  6866             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6867             symbol_c *IN_param_value = &this->default_variable_name;
       
  6868         
       
  6869             symbol_c *IN_type_symbol = param_data_type;
       
  6870             last_type_symbol = param_data_type;
       
  6871             
       
  6872             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  6873             {
       
  6874         
       
  6875                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  6876                 s4o.print("(");
       
  6877                 return_type_symbol->accept(*this);
       
  6878                 s4o.print(")");
       
  6879                 IN_param_value->accept(*this);
       
  6880                 return NULL;
       
  6881                 
       
  6882             }
       
  6883             
       
  6884             ERROR;
       
  6885         }
       
  6886         
       
  6887     }/*function_bool_to_usint*/
       
  6888     break;
       
  6889 
       
  6890 /****
       
  6891  *BOOL_TO_UINT
       
  6892  */
       
  6893     case function_bool_to_uint :
       
  6894     {
       
  6895         symbol_c *last_type_symbol = NULL;
       
  6896 
       
  6897         {
       
  6898             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6899             symbol_c *IN_param_value = &this->default_variable_name;
       
  6900         
       
  6901             symbol_c *IN_type_symbol = param_data_type;
       
  6902             last_type_symbol = param_data_type;
       
  6903             
       
  6904             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  6905             {
       
  6906         
       
  6907                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  6908                 s4o.print("(");
       
  6909                 return_type_symbol->accept(*this);
       
  6910                 s4o.print(")");
       
  6911                 IN_param_value->accept(*this);
       
  6912                 return NULL;
       
  6913                 
       
  6914             }
       
  6915             
       
  6916             ERROR;
       
  6917         }
       
  6918         
       
  6919     }/*function_bool_to_uint*/
       
  6920     break;
       
  6921 
       
  6922 /****
       
  6923  *BOOL_TO_UDINT
       
  6924  */
       
  6925     case function_bool_to_udint :
       
  6926     {
       
  6927         symbol_c *last_type_symbol = NULL;
       
  6928 
       
  6929         {
       
  6930             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6931             symbol_c *IN_param_value = &this->default_variable_name;
       
  6932         
       
  6933             symbol_c *IN_type_symbol = param_data_type;
       
  6934             last_type_symbol = param_data_type;
       
  6935             
       
  6936             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  6937             {
       
  6938         
       
  6939                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  6940                 s4o.print("(");
       
  6941                 return_type_symbol->accept(*this);
       
  6942                 s4o.print(")");
       
  6943                 IN_param_value->accept(*this);
       
  6944                 return NULL;
       
  6945                 
       
  6946             }
       
  6947             
       
  6948             ERROR;
       
  6949         }
       
  6950         
       
  6951     }/*function_bool_to_udint*/
       
  6952     break;
       
  6953 
       
  6954 /****
       
  6955  *BOOL_TO_ULINT
       
  6956  */
       
  6957     case function_bool_to_ulint :
       
  6958     {
       
  6959         symbol_c *last_type_symbol = NULL;
       
  6960 
       
  6961         {
       
  6962             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6963             symbol_c *IN_param_value = &this->default_variable_name;
       
  6964         
       
  6965             symbol_c *IN_type_symbol = param_data_type;
       
  6966             last_type_symbol = param_data_type;
       
  6967             
       
  6968             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  6969             {
       
  6970         
       
  6971                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  6972                 s4o.print("(");
       
  6973                 return_type_symbol->accept(*this);
       
  6974                 s4o.print(")");
       
  6975                 IN_param_value->accept(*this);
       
  6976                 return NULL;
       
  6977                 
       
  6978             }
       
  6979             
       
  6980             ERROR;
       
  6981         }
       
  6982         
       
  6983     }/*function_bool_to_ulint*/
       
  6984     break;
       
  6985 
       
  6986 /****
       
  6987  *BOOL_TO_TIME
       
  6988  */
       
  6989     case function_bool_to_time :
       
  6990     {
       
  6991         symbol_c *last_type_symbol = NULL;
       
  6992 
       
  6993         {
       
  6994             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  6995             symbol_c *IN_param_value = &this->default_variable_name;
       
  6996         
       
  6997             symbol_c *IN_type_symbol = param_data_type;
       
  6998             last_type_symbol = param_data_type;
       
  6999             
       
  7000             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  7001             {
       
  7002         
       
  7003                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  7004                 s4o.print("(");
       
  7005                 return_type_symbol->accept(*this);
       
  7006                 s4o.print(")__int_to_time(");
       
  7007                 IN_param_value->accept(*this);
       
  7008                 s4o.print(")");
       
  7009                 return NULL;
       
  7010                 
       
  7011             }
       
  7012             
       
  7013             ERROR;
       
  7014         }
       
  7015         
       
  7016     }/*function_bool_to_time*/
       
  7017     break;
       
  7018 
       
  7019 /****
       
  7020  *BOOL_TO_BYTE
       
  7021  */
       
  7022     case function_bool_to_byte :
       
  7023     {
       
  7024         symbol_c *last_type_symbol = NULL;
       
  7025 
       
  7026         {
       
  7027             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7028             symbol_c *IN_param_value = &this->default_variable_name;
       
  7029         
       
  7030             symbol_c *IN_type_symbol = param_data_type;
       
  7031             last_type_symbol = param_data_type;
       
  7032             
       
  7033             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  7034             {
       
  7035         
       
  7036                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  7037                 s4o.print("(");
       
  7038                 return_type_symbol->accept(*this);
       
  7039                 s4o.print(")");
       
  7040                 IN_param_value->accept(*this);
       
  7041                 return NULL;
       
  7042                 
       
  7043             }
       
  7044             
       
  7045             ERROR;
       
  7046         }
       
  7047         
       
  7048     }/*function_bool_to_byte*/
       
  7049     break;
       
  7050 
       
  7051 /****
       
  7052  *BOOL_TO_WORD
       
  7053  */
       
  7054     case function_bool_to_word :
       
  7055     {
       
  7056         symbol_c *last_type_symbol = NULL;
       
  7057 
       
  7058         {
       
  7059             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7060             symbol_c *IN_param_value = &this->default_variable_name;
       
  7061         
       
  7062             symbol_c *IN_type_symbol = param_data_type;
       
  7063             last_type_symbol = param_data_type;
       
  7064             
       
  7065             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  7066             {
       
  7067         
       
  7068                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  7069                 s4o.print("(");
       
  7070                 return_type_symbol->accept(*this);
       
  7071                 s4o.print(")");
       
  7072                 IN_param_value->accept(*this);
       
  7073                 return NULL;
       
  7074                 
       
  7075             }
       
  7076             
       
  7077             ERROR;
       
  7078         }
       
  7079         
       
  7080     }/*function_bool_to_word*/
       
  7081     break;
       
  7082 
       
  7083 /****
       
  7084  *BOOL_TO_DWORD
       
  7085  */
       
  7086     case function_bool_to_dword :
       
  7087     {
       
  7088         symbol_c *last_type_symbol = NULL;
       
  7089 
       
  7090         {
       
  7091             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7092             symbol_c *IN_param_value = &this->default_variable_name;
       
  7093         
       
  7094             symbol_c *IN_type_symbol = param_data_type;
       
  7095             last_type_symbol = param_data_type;
       
  7096             
       
  7097             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  7098             {
       
  7099         
       
  7100                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  7101                 s4o.print("(");
       
  7102                 return_type_symbol->accept(*this);
       
  7103                 s4o.print(")");
       
  7104                 IN_param_value->accept(*this);
       
  7105                 return NULL;
       
  7106                 
       
  7107             }
       
  7108             
       
  7109             ERROR;
       
  7110         }
       
  7111         
       
  7112     }/*function_bool_to_dword*/
       
  7113     break;
       
  7114 
       
  7115 /****
       
  7116  *BOOL_TO_LWORD
       
  7117  */
       
  7118     case function_bool_to_lword :
       
  7119     {
       
  7120         symbol_c *last_type_symbol = NULL;
       
  7121 
       
  7122         {
       
  7123             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7124             symbol_c *IN_param_value = &this->default_variable_name;
       
  7125         
       
  7126             symbol_c *IN_type_symbol = param_data_type;
       
  7127             last_type_symbol = param_data_type;
       
  7128             
       
  7129             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  7130             {
       
  7131         
       
  7132                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  7133                 s4o.print("(");
       
  7134                 return_type_symbol->accept(*this);
       
  7135                 s4o.print(")");
       
  7136                 IN_param_value->accept(*this);
       
  7137                 return NULL;
       
  7138                 
       
  7139             }
       
  7140             
       
  7141             ERROR;
       
  7142         }
       
  7143         
       
  7144     }/*function_bool_to_lword*/
       
  7145     break;
       
  7146 
       
  7147 /****
       
  7148  *BOOL_TO_STRING
       
  7149  */
       
  7150     case function_bool_to_string :
       
  7151     {
       
  7152         symbol_c *last_type_symbol = NULL;
       
  7153 
       
  7154         {
       
  7155             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7156             symbol_c *IN_param_value = &this->default_variable_name;
       
  7157         
       
  7158             symbol_c *IN_type_symbol = param_data_type;
       
  7159             last_type_symbol = param_data_type;
       
  7160             
       
  7161             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  7162             {
       
  7163         
       
  7164                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  7165                 s4o.print("(");
       
  7166                 return_type_symbol->accept(*this);
       
  7167                 s4o.print(")__bool_to_string(");
       
  7168                 IN_param_value->accept(*this);
       
  7169                 s4o.print(")");
       
  7170                 return NULL;
       
  7171                 
       
  7172             }
       
  7173             
       
  7174             ERROR;
       
  7175         }
       
  7176         
       
  7177     }/*function_bool_to_string*/
       
  7178     break;
       
  7179 
       
  7180 /****
       
  7181  *BOOL_TO_DATE
       
  7182  */
       
  7183     case function_bool_to_date :
       
  7184     {
       
  7185         symbol_c *last_type_symbol = NULL;
       
  7186 
       
  7187         {
       
  7188             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7189             symbol_c *IN_param_value = &this->default_variable_name;
       
  7190         
       
  7191             symbol_c *IN_type_symbol = param_data_type;
       
  7192             last_type_symbol = param_data_type;
       
  7193             
       
  7194             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  7195             {
       
  7196         
       
  7197                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  7198                 s4o.print("(");
       
  7199                 return_type_symbol->accept(*this);
       
  7200                 s4o.print(")__int_to_time(");
       
  7201                 IN_param_value->accept(*this);
       
  7202                 s4o.print(")");
       
  7203                 return NULL;
       
  7204                 
       
  7205             }
       
  7206             
       
  7207             ERROR;
       
  7208         }
       
  7209         
       
  7210     }/*function_bool_to_date*/
       
  7211     break;
       
  7212 
       
  7213 /****
       
  7214  *BOOL_TO_TOD
       
  7215  */
       
  7216     case function_bool_to_tod :
       
  7217     {
       
  7218         symbol_c *last_type_symbol = NULL;
       
  7219 
       
  7220         {
       
  7221             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7222             symbol_c *IN_param_value = &this->default_variable_name;
       
  7223         
       
  7224             symbol_c *IN_type_symbol = param_data_type;
       
  7225             last_type_symbol = param_data_type;
       
  7226             
       
  7227             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  7228             {
       
  7229         
       
  7230                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  7231                 s4o.print("(");
       
  7232                 return_type_symbol->accept(*this);
       
  7233                 s4o.print(")__int_to_time(");
       
  7234                 IN_param_value->accept(*this);
       
  7235                 s4o.print(")");
       
  7236                 return NULL;
       
  7237                 
       
  7238             }
       
  7239             
       
  7240             ERROR;
       
  7241         }
       
  7242         
       
  7243     }/*function_bool_to_tod*/
       
  7244     break;
       
  7245 
       
  7246 /****
       
  7247  *BOOL_TO_DT
       
  7248  */
       
  7249     case function_bool_to_dt :
       
  7250     {
       
  7251         symbol_c *last_type_symbol = NULL;
       
  7252 
       
  7253         {
       
  7254             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7255             symbol_c *IN_param_value = &this->default_variable_name;
       
  7256         
       
  7257             symbol_c *IN_type_symbol = param_data_type;
       
  7258             last_type_symbol = param_data_type;
       
  7259             
       
  7260             if (typeid(*last_type_symbol) == typeid(bool_type_name_c))
       
  7261             {
       
  7262         
       
  7263                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  7264                 s4o.print("(");
       
  7265                 return_type_symbol->accept(*this);
       
  7266                 s4o.print(")__int_to_time(");
       
  7267                 IN_param_value->accept(*this);
       
  7268                 s4o.print(")");
       
  7269                 return NULL;
       
  7270                 
       
  7271             }
       
  7272             
       
  7273             ERROR;
       
  7274         }
       
  7275         
       
  7276     }/*function_bool_to_dt*/
       
  7277     break;
       
  7278 
       
  7279 /****
       
  7280  *BYTE_TO_REAL
       
  7281  */
       
  7282     case function_byte_to_real :
       
  7283     {
       
  7284         symbol_c *last_type_symbol = NULL;
       
  7285 
       
  7286         {
       
  7287             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7288             symbol_c *IN_param_value = &this->default_variable_name;
       
  7289         
       
  7290             symbol_c *IN_type_symbol = param_data_type;
       
  7291             last_type_symbol = param_data_type;
       
  7292             
       
  7293             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7294             {
       
  7295         
       
  7296                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  7297                 s4o.print("(");
       
  7298                 return_type_symbol->accept(*this);
       
  7299                 s4o.print(")");
       
  7300                 IN_param_value->accept(*this);
       
  7301                 return NULL;
       
  7302                 
       
  7303             }
       
  7304             
       
  7305             ERROR;
       
  7306         }
       
  7307         
       
  7308     }/*function_byte_to_real*/
       
  7309     break;
       
  7310 
       
  7311 /****
       
  7312  *BYTE_TO_LREAL
       
  7313  */
       
  7314     case function_byte_to_lreal :
       
  7315     {
       
  7316         symbol_c *last_type_symbol = NULL;
       
  7317 
       
  7318         {
       
  7319             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7320             symbol_c *IN_param_value = &this->default_variable_name;
       
  7321         
       
  7322             symbol_c *IN_type_symbol = param_data_type;
       
  7323             last_type_symbol = param_data_type;
       
  7324             
       
  7325             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7326             {
       
  7327         
       
  7328                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  7329                 s4o.print("(");
       
  7330                 return_type_symbol->accept(*this);
       
  7331                 s4o.print(")");
       
  7332                 IN_param_value->accept(*this);
       
  7333                 return NULL;
       
  7334                 
       
  7335             }
       
  7336             
       
  7337             ERROR;
       
  7338         }
       
  7339         
       
  7340     }/*function_byte_to_lreal*/
       
  7341     break;
       
  7342 
       
  7343 /****
       
  7344  *BYTE_TO_SINT
       
  7345  */
       
  7346     case function_byte_to_sint :
       
  7347     {
       
  7348         symbol_c *last_type_symbol = NULL;
       
  7349 
       
  7350         {
       
  7351             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7352             symbol_c *IN_param_value = &this->default_variable_name;
       
  7353         
       
  7354             symbol_c *IN_type_symbol = param_data_type;
       
  7355             last_type_symbol = param_data_type;
       
  7356             
       
  7357             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7358             {
       
  7359         
       
  7360                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  7361                 s4o.print("(");
       
  7362                 return_type_symbol->accept(*this);
       
  7363                 s4o.print(")");
       
  7364                 IN_param_value->accept(*this);
       
  7365                 return NULL;
       
  7366                 
       
  7367             }
       
  7368             
       
  7369             ERROR;
       
  7370         }
       
  7371         
       
  7372     }/*function_byte_to_sint*/
       
  7373     break;
       
  7374 
       
  7375 /****
       
  7376  *BYTE_TO_INT
       
  7377  */
       
  7378     case function_byte_to_int :
       
  7379     {
       
  7380         symbol_c *last_type_symbol = NULL;
       
  7381 
       
  7382         {
       
  7383             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7384             symbol_c *IN_param_value = &this->default_variable_name;
       
  7385         
       
  7386             symbol_c *IN_type_symbol = param_data_type;
       
  7387             last_type_symbol = param_data_type;
       
  7388             
       
  7389             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7390             {
       
  7391         
       
  7392                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  7393                 s4o.print("(");
       
  7394                 return_type_symbol->accept(*this);
       
  7395                 s4o.print(")");
       
  7396                 IN_param_value->accept(*this);
       
  7397                 return NULL;
       
  7398                 
       
  7399             }
       
  7400             
       
  7401             ERROR;
       
  7402         }
       
  7403         
       
  7404     }/*function_byte_to_int*/
       
  7405     break;
       
  7406 
       
  7407 /****
       
  7408  *BYTE_TO_DINT
       
  7409  */
       
  7410     case function_byte_to_dint :
       
  7411     {
       
  7412         symbol_c *last_type_symbol = NULL;
       
  7413 
       
  7414         {
       
  7415             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7416             symbol_c *IN_param_value = &this->default_variable_name;
       
  7417         
       
  7418             symbol_c *IN_type_symbol = param_data_type;
       
  7419             last_type_symbol = param_data_type;
       
  7420             
       
  7421             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7422             {
       
  7423         
       
  7424                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  7425                 s4o.print("(");
       
  7426                 return_type_symbol->accept(*this);
       
  7427                 s4o.print(")");
       
  7428                 IN_param_value->accept(*this);
       
  7429                 return NULL;
       
  7430                 
       
  7431             }
       
  7432             
       
  7433             ERROR;
       
  7434         }
       
  7435         
       
  7436     }/*function_byte_to_dint*/
       
  7437     break;
       
  7438 
       
  7439 /****
       
  7440  *BYTE_TO_LINT
       
  7441  */
       
  7442     case function_byte_to_lint :
       
  7443     {
       
  7444         symbol_c *last_type_symbol = NULL;
       
  7445 
       
  7446         {
       
  7447             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7448             symbol_c *IN_param_value = &this->default_variable_name;
       
  7449         
       
  7450             symbol_c *IN_type_symbol = param_data_type;
       
  7451             last_type_symbol = param_data_type;
       
  7452             
       
  7453             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7454             {
       
  7455         
       
  7456                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  7457                 s4o.print("(");
       
  7458                 return_type_symbol->accept(*this);
       
  7459                 s4o.print(")");
       
  7460                 IN_param_value->accept(*this);
       
  7461                 return NULL;
       
  7462                 
       
  7463             }
       
  7464             
       
  7465             ERROR;
       
  7466         }
       
  7467         
       
  7468     }/*function_byte_to_lint*/
       
  7469     break;
       
  7470 
       
  7471 /****
       
  7472  *BYTE_TO_USINT
       
  7473  */
       
  7474     case function_byte_to_usint :
       
  7475     {
       
  7476         symbol_c *last_type_symbol = NULL;
       
  7477 
       
  7478         {
       
  7479             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7480             symbol_c *IN_param_value = &this->default_variable_name;
       
  7481         
       
  7482             symbol_c *IN_type_symbol = param_data_type;
       
  7483             last_type_symbol = param_data_type;
       
  7484             
       
  7485             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7486             {
       
  7487         
       
  7488                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  7489                 s4o.print("(");
       
  7490                 return_type_symbol->accept(*this);
       
  7491                 s4o.print(")");
       
  7492                 IN_param_value->accept(*this);
       
  7493                 return NULL;
       
  7494                 
       
  7495             }
       
  7496             
       
  7497             ERROR;
       
  7498         }
       
  7499         
       
  7500     }/*function_byte_to_usint*/
       
  7501     break;
       
  7502 
       
  7503 /****
       
  7504  *BYTE_TO_UINT
       
  7505  */
       
  7506     case function_byte_to_uint :
       
  7507     {
       
  7508         symbol_c *last_type_symbol = NULL;
       
  7509 
       
  7510         {
       
  7511             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7512             symbol_c *IN_param_value = &this->default_variable_name;
       
  7513         
       
  7514             symbol_c *IN_type_symbol = param_data_type;
       
  7515             last_type_symbol = param_data_type;
       
  7516             
       
  7517             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7518             {
       
  7519         
       
  7520                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  7521                 s4o.print("(");
       
  7522                 return_type_symbol->accept(*this);
       
  7523                 s4o.print(")");
       
  7524                 IN_param_value->accept(*this);
       
  7525                 return NULL;
       
  7526                 
       
  7527             }
       
  7528             
       
  7529             ERROR;
       
  7530         }
       
  7531         
       
  7532     }/*function_byte_to_uint*/
       
  7533     break;
       
  7534 
       
  7535 /****
       
  7536  *BYTE_TO_UDINT
       
  7537  */
       
  7538     case function_byte_to_udint :
       
  7539     {
       
  7540         symbol_c *last_type_symbol = NULL;
       
  7541 
       
  7542         {
       
  7543             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7544             symbol_c *IN_param_value = &this->default_variable_name;
       
  7545         
       
  7546             symbol_c *IN_type_symbol = param_data_type;
       
  7547             last_type_symbol = param_data_type;
       
  7548             
       
  7549             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7550             {
       
  7551         
       
  7552                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  7553                 s4o.print("(");
       
  7554                 return_type_symbol->accept(*this);
       
  7555                 s4o.print(")");
       
  7556                 IN_param_value->accept(*this);
       
  7557                 return NULL;
       
  7558                 
       
  7559             }
       
  7560             
       
  7561             ERROR;
       
  7562         }
       
  7563         
       
  7564     }/*function_byte_to_udint*/
       
  7565     break;
       
  7566 
       
  7567 /****
       
  7568  *BYTE_TO_ULINT
       
  7569  */
       
  7570     case function_byte_to_ulint :
       
  7571     {
       
  7572         symbol_c *last_type_symbol = NULL;
       
  7573 
       
  7574         {
       
  7575             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7576             symbol_c *IN_param_value = &this->default_variable_name;
       
  7577         
       
  7578             symbol_c *IN_type_symbol = param_data_type;
       
  7579             last_type_symbol = param_data_type;
       
  7580             
       
  7581             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7582             {
       
  7583         
       
  7584                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  7585                 s4o.print("(");
       
  7586                 return_type_symbol->accept(*this);
       
  7587                 s4o.print(")");
       
  7588                 IN_param_value->accept(*this);
       
  7589                 return NULL;
       
  7590                 
       
  7591             }
       
  7592             
       
  7593             ERROR;
       
  7594         }
       
  7595         
       
  7596     }/*function_byte_to_ulint*/
       
  7597     break;
       
  7598 
       
  7599 /****
       
  7600  *BYTE_TO_TIME
       
  7601  */
       
  7602     case function_byte_to_time :
       
  7603     {
       
  7604         symbol_c *last_type_symbol = NULL;
       
  7605 
       
  7606         {
       
  7607             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7608             symbol_c *IN_param_value = &this->default_variable_name;
       
  7609         
       
  7610             symbol_c *IN_type_symbol = param_data_type;
       
  7611             last_type_symbol = param_data_type;
       
  7612             
       
  7613             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7614             {
       
  7615         
       
  7616                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  7617                 s4o.print("(");
       
  7618                 return_type_symbol->accept(*this);
       
  7619                 s4o.print(")__int_to_time(");
       
  7620                 IN_param_value->accept(*this);
       
  7621                 s4o.print(")");
       
  7622                 return NULL;
       
  7623                 
       
  7624             }
       
  7625             
       
  7626             ERROR;
       
  7627         }
       
  7628         
       
  7629     }/*function_byte_to_time*/
       
  7630     break;
       
  7631 
       
  7632 /****
       
  7633  *BYTE_TO_BOOL
       
  7634  */
       
  7635     case function_byte_to_bool :
       
  7636     {
       
  7637         symbol_c *last_type_symbol = NULL;
       
  7638 
       
  7639         {
       
  7640             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7641             symbol_c *IN_param_value = &this->default_variable_name;
       
  7642         
       
  7643             symbol_c *IN_type_symbol = param_data_type;
       
  7644             last_type_symbol = param_data_type;
       
  7645             
       
  7646             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7647             {
       
  7648         
       
  7649                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  7650                 s4o.print("(");
       
  7651                 return_type_symbol->accept(*this);
       
  7652                 s4o.print(")");
       
  7653                 IN_param_value->accept(*this);
       
  7654                 return NULL;
       
  7655                 
       
  7656             }
       
  7657             
       
  7658             ERROR;
       
  7659         }
       
  7660         
       
  7661     }/*function_byte_to_bool*/
       
  7662     break;
       
  7663 
       
  7664 /****
       
  7665  *BYTE_TO_WORD
       
  7666  */
       
  7667     case function_byte_to_word :
       
  7668     {
       
  7669         symbol_c *last_type_symbol = NULL;
       
  7670 
       
  7671         {
       
  7672             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7673             symbol_c *IN_param_value = &this->default_variable_name;
       
  7674         
       
  7675             symbol_c *IN_type_symbol = param_data_type;
       
  7676             last_type_symbol = param_data_type;
       
  7677             
       
  7678             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7679             {
       
  7680         
       
  7681                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  7682                 s4o.print("(");
       
  7683                 return_type_symbol->accept(*this);
       
  7684                 s4o.print(")");
       
  7685                 IN_param_value->accept(*this);
       
  7686                 return NULL;
       
  7687                 
       
  7688             }
       
  7689             
       
  7690             ERROR;
       
  7691         }
       
  7692         
       
  7693     }/*function_byte_to_word*/
       
  7694     break;
       
  7695 
       
  7696 /****
       
  7697  *BYTE_TO_DWORD
       
  7698  */
       
  7699     case function_byte_to_dword :
       
  7700     {
       
  7701         symbol_c *last_type_symbol = NULL;
       
  7702 
       
  7703         {
       
  7704             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7705             symbol_c *IN_param_value = &this->default_variable_name;
       
  7706         
       
  7707             symbol_c *IN_type_symbol = param_data_type;
       
  7708             last_type_symbol = param_data_type;
       
  7709             
       
  7710             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7711             {
       
  7712         
       
  7713                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  7714                 s4o.print("(");
       
  7715                 return_type_symbol->accept(*this);
       
  7716                 s4o.print(")");
       
  7717                 IN_param_value->accept(*this);
       
  7718                 return NULL;
       
  7719                 
       
  7720             }
       
  7721             
       
  7722             ERROR;
       
  7723         }
       
  7724         
       
  7725     }/*function_byte_to_dword*/
       
  7726     break;
       
  7727 
       
  7728 /****
       
  7729  *BYTE_TO_LWORD
       
  7730  */
       
  7731     case function_byte_to_lword :
       
  7732     {
       
  7733         symbol_c *last_type_symbol = NULL;
       
  7734 
       
  7735         {
       
  7736             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7737             symbol_c *IN_param_value = &this->default_variable_name;
       
  7738         
       
  7739             symbol_c *IN_type_symbol = param_data_type;
       
  7740             last_type_symbol = param_data_type;
       
  7741             
       
  7742             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7743             {
       
  7744         
       
  7745                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  7746                 s4o.print("(");
       
  7747                 return_type_symbol->accept(*this);
       
  7748                 s4o.print(")");
       
  7749                 IN_param_value->accept(*this);
       
  7750                 return NULL;
       
  7751                 
       
  7752             }
       
  7753             
       
  7754             ERROR;
       
  7755         }
       
  7756         
       
  7757     }/*function_byte_to_lword*/
       
  7758     break;
       
  7759 
       
  7760 /****
       
  7761  *BYTE_TO_STRING
       
  7762  */
       
  7763     case function_byte_to_string :
       
  7764     {
       
  7765         symbol_c *last_type_symbol = NULL;
       
  7766 
       
  7767         {
       
  7768             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7769             symbol_c *IN_param_value = &this->default_variable_name;
       
  7770         
       
  7771             symbol_c *IN_type_symbol = param_data_type;
       
  7772             last_type_symbol = param_data_type;
       
  7773             
       
  7774             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7775             {
       
  7776         
       
  7777                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  7778                 s4o.print("(");
       
  7779                 return_type_symbol->accept(*this);
       
  7780                 s4o.print(")__bit_to_string(");
       
  7781                 IN_param_value->accept(*this);
       
  7782                 s4o.print(")");
       
  7783                 return NULL;
       
  7784                 
       
  7785             }
       
  7786             
       
  7787             ERROR;
       
  7788         }
       
  7789         
       
  7790     }/*function_byte_to_string*/
       
  7791     break;
       
  7792 
       
  7793 /****
       
  7794  *BYTE_TO_DATE
       
  7795  */
       
  7796     case function_byte_to_date :
       
  7797     {
       
  7798         symbol_c *last_type_symbol = NULL;
       
  7799 
       
  7800         {
       
  7801             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7802             symbol_c *IN_param_value = &this->default_variable_name;
       
  7803         
       
  7804             symbol_c *IN_type_symbol = param_data_type;
       
  7805             last_type_symbol = param_data_type;
       
  7806             
       
  7807             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7808             {
       
  7809         
       
  7810                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  7811                 s4o.print("(");
       
  7812                 return_type_symbol->accept(*this);
       
  7813                 s4o.print(")__int_to_time(");
       
  7814                 IN_param_value->accept(*this);
       
  7815                 s4o.print(")");
       
  7816                 return NULL;
       
  7817                 
       
  7818             }
       
  7819             
       
  7820             ERROR;
       
  7821         }
       
  7822         
       
  7823     }/*function_byte_to_date*/
       
  7824     break;
       
  7825 
       
  7826 /****
       
  7827  *BYTE_TO_TOD
       
  7828  */
       
  7829     case function_byte_to_tod :
       
  7830     {
       
  7831         symbol_c *last_type_symbol = NULL;
       
  7832 
       
  7833         {
       
  7834             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7835             symbol_c *IN_param_value = &this->default_variable_name;
       
  7836         
       
  7837             symbol_c *IN_type_symbol = param_data_type;
       
  7838             last_type_symbol = param_data_type;
       
  7839             
       
  7840             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7841             {
       
  7842         
       
  7843                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  7844                 s4o.print("(");
       
  7845                 return_type_symbol->accept(*this);
       
  7846                 s4o.print(")__int_to_time(");
       
  7847                 IN_param_value->accept(*this);
       
  7848                 s4o.print(")");
       
  7849                 return NULL;
       
  7850                 
       
  7851             }
       
  7852             
       
  7853             ERROR;
       
  7854         }
       
  7855         
       
  7856     }/*function_byte_to_tod*/
       
  7857     break;
       
  7858 
       
  7859 /****
       
  7860  *BYTE_TO_DT
       
  7861  */
       
  7862     case function_byte_to_dt :
       
  7863     {
       
  7864         symbol_c *last_type_symbol = NULL;
       
  7865 
       
  7866         {
       
  7867             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7868             symbol_c *IN_param_value = &this->default_variable_name;
       
  7869         
       
  7870             symbol_c *IN_type_symbol = param_data_type;
       
  7871             last_type_symbol = param_data_type;
       
  7872             
       
  7873             if (typeid(*last_type_symbol) == typeid(byte_type_name_c))
       
  7874             {
       
  7875         
       
  7876                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  7877                 s4o.print("(");
       
  7878                 return_type_symbol->accept(*this);
       
  7879                 s4o.print(")__int_to_time(");
       
  7880                 IN_param_value->accept(*this);
       
  7881                 s4o.print(")");
       
  7882                 return NULL;
       
  7883                 
       
  7884             }
       
  7885             
       
  7886             ERROR;
       
  7887         }
       
  7888         
       
  7889     }/*function_byte_to_dt*/
       
  7890     break;
       
  7891 
       
  7892 /****
       
  7893  *WORD_TO_REAL
       
  7894  */
       
  7895     case function_word_to_real :
       
  7896     {
       
  7897         symbol_c *last_type_symbol = NULL;
       
  7898 
       
  7899         {
       
  7900             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7901             symbol_c *IN_param_value = &this->default_variable_name;
       
  7902         
       
  7903             symbol_c *IN_type_symbol = param_data_type;
       
  7904             last_type_symbol = param_data_type;
       
  7905             
       
  7906             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  7907             {
       
  7908         
       
  7909                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  7910                 s4o.print("(");
       
  7911                 return_type_symbol->accept(*this);
       
  7912                 s4o.print(")");
       
  7913                 IN_param_value->accept(*this);
       
  7914                 return NULL;
       
  7915                 
       
  7916             }
       
  7917             
       
  7918             ERROR;
       
  7919         }
       
  7920         
       
  7921     }/*function_word_to_real*/
       
  7922     break;
       
  7923 
       
  7924 /****
       
  7925  *WORD_TO_LREAL
       
  7926  */
       
  7927     case function_word_to_lreal :
       
  7928     {
       
  7929         symbol_c *last_type_symbol = NULL;
       
  7930 
       
  7931         {
       
  7932             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7933             symbol_c *IN_param_value = &this->default_variable_name;
       
  7934         
       
  7935             symbol_c *IN_type_symbol = param_data_type;
       
  7936             last_type_symbol = param_data_type;
       
  7937             
       
  7938             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  7939             {
       
  7940         
       
  7941                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  7942                 s4o.print("(");
       
  7943                 return_type_symbol->accept(*this);
       
  7944                 s4o.print(")");
       
  7945                 IN_param_value->accept(*this);
       
  7946                 return NULL;
       
  7947                 
       
  7948             }
       
  7949             
       
  7950             ERROR;
       
  7951         }
       
  7952         
       
  7953     }/*function_word_to_lreal*/
       
  7954     break;
       
  7955 
       
  7956 /****
       
  7957  *WORD_TO_SINT
       
  7958  */
       
  7959     case function_word_to_sint :
       
  7960     {
       
  7961         symbol_c *last_type_symbol = NULL;
       
  7962 
       
  7963         {
       
  7964             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7965             symbol_c *IN_param_value = &this->default_variable_name;
       
  7966         
       
  7967             symbol_c *IN_type_symbol = param_data_type;
       
  7968             last_type_symbol = param_data_type;
       
  7969             
       
  7970             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  7971             {
       
  7972         
       
  7973                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  7974                 s4o.print("(");
       
  7975                 return_type_symbol->accept(*this);
       
  7976                 s4o.print(")");
       
  7977                 IN_param_value->accept(*this);
       
  7978                 return NULL;
       
  7979                 
       
  7980             }
       
  7981             
       
  7982             ERROR;
       
  7983         }
       
  7984         
       
  7985     }/*function_word_to_sint*/
       
  7986     break;
       
  7987 
       
  7988 /****
       
  7989  *WORD_TO_INT
       
  7990  */
       
  7991     case function_word_to_int :
       
  7992     {
       
  7993         symbol_c *last_type_symbol = NULL;
       
  7994 
       
  7995         {
       
  7996             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  7997             symbol_c *IN_param_value = &this->default_variable_name;
       
  7998         
       
  7999             symbol_c *IN_type_symbol = param_data_type;
       
  8000             last_type_symbol = param_data_type;
       
  8001             
       
  8002             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8003             {
       
  8004         
       
  8005                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  8006                 s4o.print("(");
       
  8007                 return_type_symbol->accept(*this);
       
  8008                 s4o.print(")");
       
  8009                 IN_param_value->accept(*this);
       
  8010                 return NULL;
       
  8011                 
       
  8012             }
       
  8013             
       
  8014             ERROR;
       
  8015         }
       
  8016         
       
  8017     }/*function_word_to_int*/
       
  8018     break;
       
  8019 
       
  8020 /****
       
  8021  *WORD_TO_DINT
       
  8022  */
       
  8023     case function_word_to_dint :
       
  8024     {
       
  8025         symbol_c *last_type_symbol = NULL;
       
  8026 
       
  8027         {
       
  8028             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8029             symbol_c *IN_param_value = &this->default_variable_name;
       
  8030         
       
  8031             symbol_c *IN_type_symbol = param_data_type;
       
  8032             last_type_symbol = param_data_type;
       
  8033             
       
  8034             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8035             {
       
  8036         
       
  8037                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  8038                 s4o.print("(");
       
  8039                 return_type_symbol->accept(*this);
       
  8040                 s4o.print(")");
       
  8041                 IN_param_value->accept(*this);
       
  8042                 return NULL;
       
  8043                 
       
  8044             }
       
  8045             
       
  8046             ERROR;
       
  8047         }
       
  8048         
       
  8049     }/*function_word_to_dint*/
       
  8050     break;
       
  8051 
       
  8052 /****
       
  8053  *WORD_TO_LINT
       
  8054  */
       
  8055     case function_word_to_lint :
       
  8056     {
       
  8057         symbol_c *last_type_symbol = NULL;
       
  8058 
       
  8059         {
       
  8060             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8061             symbol_c *IN_param_value = &this->default_variable_name;
       
  8062         
       
  8063             symbol_c *IN_type_symbol = param_data_type;
       
  8064             last_type_symbol = param_data_type;
       
  8065             
       
  8066             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8067             {
       
  8068         
       
  8069                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  8070                 s4o.print("(");
       
  8071                 return_type_symbol->accept(*this);
       
  8072                 s4o.print(")");
       
  8073                 IN_param_value->accept(*this);
       
  8074                 return NULL;
       
  8075                 
       
  8076             }
       
  8077             
       
  8078             ERROR;
       
  8079         }
       
  8080         
       
  8081     }/*function_word_to_lint*/
       
  8082     break;
       
  8083 
       
  8084 /****
       
  8085  *WORD_TO_USINT
       
  8086  */
       
  8087     case function_word_to_usint :
       
  8088     {
       
  8089         symbol_c *last_type_symbol = NULL;
       
  8090 
       
  8091         {
       
  8092             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8093             symbol_c *IN_param_value = &this->default_variable_name;
       
  8094         
       
  8095             symbol_c *IN_type_symbol = param_data_type;
       
  8096             last_type_symbol = param_data_type;
       
  8097             
       
  8098             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8099             {
       
  8100         
       
  8101                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  8102                 s4o.print("(");
       
  8103                 return_type_symbol->accept(*this);
       
  8104                 s4o.print(")");
       
  8105                 IN_param_value->accept(*this);
       
  8106                 return NULL;
       
  8107                 
       
  8108             }
       
  8109             
       
  8110             ERROR;
       
  8111         }
       
  8112         
       
  8113     }/*function_word_to_usint*/
       
  8114     break;
       
  8115 
       
  8116 /****
       
  8117  *WORD_TO_UINT
       
  8118  */
       
  8119     case function_word_to_uint :
       
  8120     {
       
  8121         symbol_c *last_type_symbol = NULL;
       
  8122 
       
  8123         {
       
  8124             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8125             symbol_c *IN_param_value = &this->default_variable_name;
       
  8126         
       
  8127             symbol_c *IN_type_symbol = param_data_type;
       
  8128             last_type_symbol = param_data_type;
       
  8129             
       
  8130             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8131             {
       
  8132         
       
  8133                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  8134                 s4o.print("(");
       
  8135                 return_type_symbol->accept(*this);
       
  8136                 s4o.print(")");
       
  8137                 IN_param_value->accept(*this);
       
  8138                 return NULL;
       
  8139                 
       
  8140             }
       
  8141             
       
  8142             ERROR;
       
  8143         }
       
  8144         
       
  8145     }/*function_word_to_uint*/
       
  8146     break;
       
  8147 
       
  8148 /****
       
  8149  *WORD_TO_UDINT
       
  8150  */
       
  8151     case function_word_to_udint :
       
  8152     {
       
  8153         symbol_c *last_type_symbol = NULL;
       
  8154 
       
  8155         {
       
  8156             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8157             symbol_c *IN_param_value = &this->default_variable_name;
       
  8158         
       
  8159             symbol_c *IN_type_symbol = param_data_type;
       
  8160             last_type_symbol = param_data_type;
       
  8161             
       
  8162             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8163             {
       
  8164         
       
  8165                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  8166                 s4o.print("(");
       
  8167                 return_type_symbol->accept(*this);
       
  8168                 s4o.print(")");
       
  8169                 IN_param_value->accept(*this);
       
  8170                 return NULL;
       
  8171                 
       
  8172             }
       
  8173             
       
  8174             ERROR;
       
  8175         }
       
  8176         
       
  8177     }/*function_word_to_udint*/
       
  8178     break;
       
  8179 
       
  8180 /****
       
  8181  *WORD_TO_ULINT
       
  8182  */
       
  8183     case function_word_to_ulint :
       
  8184     {
       
  8185         symbol_c *last_type_symbol = NULL;
       
  8186 
       
  8187         {
       
  8188             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8189             symbol_c *IN_param_value = &this->default_variable_name;
       
  8190         
       
  8191             symbol_c *IN_type_symbol = param_data_type;
       
  8192             last_type_symbol = param_data_type;
       
  8193             
       
  8194             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8195             {
       
  8196         
       
  8197                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  8198                 s4o.print("(");
       
  8199                 return_type_symbol->accept(*this);
       
  8200                 s4o.print(")");
       
  8201                 IN_param_value->accept(*this);
       
  8202                 return NULL;
       
  8203                 
       
  8204             }
       
  8205             
       
  8206             ERROR;
       
  8207         }
       
  8208         
       
  8209     }/*function_word_to_ulint*/
       
  8210     break;
       
  8211 
       
  8212 /****
       
  8213  *WORD_TO_TIME
       
  8214  */
       
  8215     case function_word_to_time :
       
  8216     {
       
  8217         symbol_c *last_type_symbol = NULL;
       
  8218 
       
  8219         {
       
  8220             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8221             symbol_c *IN_param_value = &this->default_variable_name;
       
  8222         
       
  8223             symbol_c *IN_type_symbol = param_data_type;
       
  8224             last_type_symbol = param_data_type;
       
  8225             
       
  8226             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8227             {
       
  8228         
       
  8229                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  8230                 s4o.print("(");
       
  8231                 return_type_symbol->accept(*this);
       
  8232                 s4o.print(")__int_to_time(");
       
  8233                 IN_param_value->accept(*this);
       
  8234                 s4o.print(")");
       
  8235                 return NULL;
       
  8236                 
       
  8237             }
       
  8238             
       
  8239             ERROR;
       
  8240         }
       
  8241         
       
  8242     }/*function_word_to_time*/
       
  8243     break;
       
  8244 
       
  8245 /****
       
  8246  *WORD_TO_BOOL
       
  8247  */
       
  8248     case function_word_to_bool :
       
  8249     {
       
  8250         symbol_c *last_type_symbol = NULL;
       
  8251 
       
  8252         {
       
  8253             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8254             symbol_c *IN_param_value = &this->default_variable_name;
       
  8255         
       
  8256             symbol_c *IN_type_symbol = param_data_type;
       
  8257             last_type_symbol = param_data_type;
       
  8258             
       
  8259             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8260             {
       
  8261         
       
  8262                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  8263                 s4o.print("(");
       
  8264                 return_type_symbol->accept(*this);
       
  8265                 s4o.print(")");
       
  8266                 IN_param_value->accept(*this);
       
  8267                 return NULL;
       
  8268                 
       
  8269             }
       
  8270             
       
  8271             ERROR;
       
  8272         }
       
  8273         
       
  8274     }/*function_word_to_bool*/
       
  8275     break;
       
  8276 
       
  8277 /****
       
  8278  *WORD_TO_BYTE
       
  8279  */
       
  8280     case function_word_to_byte :
       
  8281     {
       
  8282         symbol_c *last_type_symbol = NULL;
       
  8283 
       
  8284         {
       
  8285             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8286             symbol_c *IN_param_value = &this->default_variable_name;
       
  8287         
       
  8288             symbol_c *IN_type_symbol = param_data_type;
       
  8289             last_type_symbol = param_data_type;
       
  8290             
       
  8291             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8292             {
       
  8293         
       
  8294                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  8295                 s4o.print("(");
       
  8296                 return_type_symbol->accept(*this);
       
  8297                 s4o.print(")");
       
  8298                 IN_param_value->accept(*this);
       
  8299                 return NULL;
       
  8300                 
       
  8301             }
       
  8302             
       
  8303             ERROR;
       
  8304         }
       
  8305         
       
  8306     }/*function_word_to_byte*/
       
  8307     break;
       
  8308 
       
  8309 /****
       
  8310  *WORD_TO_DWORD
       
  8311  */
       
  8312     case function_word_to_dword :
       
  8313     {
       
  8314         symbol_c *last_type_symbol = NULL;
       
  8315 
       
  8316         {
       
  8317             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8318             symbol_c *IN_param_value = &this->default_variable_name;
       
  8319         
       
  8320             symbol_c *IN_type_symbol = param_data_type;
       
  8321             last_type_symbol = param_data_type;
       
  8322             
       
  8323             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8324             {
       
  8325         
       
  8326                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  8327                 s4o.print("(");
       
  8328                 return_type_symbol->accept(*this);
       
  8329                 s4o.print(")");
       
  8330                 IN_param_value->accept(*this);
       
  8331                 return NULL;
       
  8332                 
       
  8333             }
       
  8334             
       
  8335             ERROR;
       
  8336         }
       
  8337         
       
  8338     }/*function_word_to_dword*/
       
  8339     break;
       
  8340 
       
  8341 /****
       
  8342  *WORD_TO_LWORD
       
  8343  */
       
  8344     case function_word_to_lword :
       
  8345     {
       
  8346         symbol_c *last_type_symbol = NULL;
       
  8347 
       
  8348         {
       
  8349             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8350             symbol_c *IN_param_value = &this->default_variable_name;
       
  8351         
       
  8352             symbol_c *IN_type_symbol = param_data_type;
       
  8353             last_type_symbol = param_data_type;
       
  8354             
       
  8355             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8356             {
       
  8357         
       
  8358                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  8359                 s4o.print("(");
       
  8360                 return_type_symbol->accept(*this);
       
  8361                 s4o.print(")");
       
  8362                 IN_param_value->accept(*this);
       
  8363                 return NULL;
       
  8364                 
       
  8365             }
       
  8366             
       
  8367             ERROR;
       
  8368         }
       
  8369         
       
  8370     }/*function_word_to_lword*/
       
  8371     break;
       
  8372 
       
  8373 /****
       
  8374  *WORD_TO_STRING
       
  8375  */
       
  8376     case function_word_to_string :
       
  8377     {
       
  8378         symbol_c *last_type_symbol = NULL;
       
  8379 
       
  8380         {
       
  8381             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8382             symbol_c *IN_param_value = &this->default_variable_name;
       
  8383         
       
  8384             symbol_c *IN_type_symbol = param_data_type;
       
  8385             last_type_symbol = param_data_type;
       
  8386             
       
  8387             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8388             {
       
  8389         
       
  8390                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  8391                 s4o.print("(");
       
  8392                 return_type_symbol->accept(*this);
       
  8393                 s4o.print(")__bit_to_string(");
       
  8394                 IN_param_value->accept(*this);
       
  8395                 s4o.print(")");
       
  8396                 return NULL;
       
  8397                 
       
  8398             }
       
  8399             
       
  8400             ERROR;
       
  8401         }
       
  8402         
       
  8403     }/*function_word_to_string*/
       
  8404     break;
       
  8405 
       
  8406 /****
       
  8407  *WORD_TO_DATE
       
  8408  */
       
  8409     case function_word_to_date :
       
  8410     {
       
  8411         symbol_c *last_type_symbol = NULL;
       
  8412 
       
  8413         {
       
  8414             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8415             symbol_c *IN_param_value = &this->default_variable_name;
       
  8416         
       
  8417             symbol_c *IN_type_symbol = param_data_type;
       
  8418             last_type_symbol = param_data_type;
       
  8419             
       
  8420             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8421             {
       
  8422         
       
  8423                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  8424                 s4o.print("(");
       
  8425                 return_type_symbol->accept(*this);
       
  8426                 s4o.print(")__int_to_time(");
       
  8427                 IN_param_value->accept(*this);
       
  8428                 s4o.print(")");
       
  8429                 return NULL;
       
  8430                 
       
  8431             }
       
  8432             
       
  8433             ERROR;
       
  8434         }
       
  8435         
       
  8436     }/*function_word_to_date*/
       
  8437     break;
       
  8438 
       
  8439 /****
       
  8440  *WORD_TO_TOD
       
  8441  */
       
  8442     case function_word_to_tod :
       
  8443     {
       
  8444         symbol_c *last_type_symbol = NULL;
       
  8445 
       
  8446         {
       
  8447             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8448             symbol_c *IN_param_value = &this->default_variable_name;
       
  8449         
       
  8450             symbol_c *IN_type_symbol = param_data_type;
       
  8451             last_type_symbol = param_data_type;
       
  8452             
       
  8453             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8454             {
       
  8455         
       
  8456                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  8457                 s4o.print("(");
       
  8458                 return_type_symbol->accept(*this);
       
  8459                 s4o.print(")__int_to_time(");
       
  8460                 IN_param_value->accept(*this);
       
  8461                 s4o.print(")");
       
  8462                 return NULL;
       
  8463                 
       
  8464             }
       
  8465             
       
  8466             ERROR;
       
  8467         }
       
  8468         
       
  8469     }/*function_word_to_tod*/
       
  8470     break;
       
  8471 
       
  8472 /****
       
  8473  *WORD_TO_DT
       
  8474  */
       
  8475     case function_word_to_dt :
       
  8476     {
       
  8477         symbol_c *last_type_symbol = NULL;
       
  8478 
       
  8479         {
       
  8480             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8481             symbol_c *IN_param_value = &this->default_variable_name;
       
  8482         
       
  8483             symbol_c *IN_type_symbol = param_data_type;
       
  8484             last_type_symbol = param_data_type;
       
  8485             
       
  8486             if (typeid(*last_type_symbol) == typeid(word_type_name_c))
       
  8487             {
       
  8488         
       
  8489                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  8490                 s4o.print("(");
       
  8491                 return_type_symbol->accept(*this);
       
  8492                 s4o.print(")__int_to_time(");
       
  8493                 IN_param_value->accept(*this);
       
  8494                 s4o.print(")");
       
  8495                 return NULL;
       
  8496                 
       
  8497             }
       
  8498             
       
  8499             ERROR;
       
  8500         }
       
  8501         
       
  8502     }/*function_word_to_dt*/
       
  8503     break;
       
  8504 
       
  8505 /****
       
  8506  *DWORD_TO_REAL
       
  8507  */
       
  8508     case function_dword_to_real :
       
  8509     {
       
  8510         symbol_c *last_type_symbol = NULL;
       
  8511 
       
  8512         {
       
  8513             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8514             symbol_c *IN_param_value = &this->default_variable_name;
       
  8515         
       
  8516             symbol_c *IN_type_symbol = param_data_type;
       
  8517             last_type_symbol = param_data_type;
       
  8518             
       
  8519             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8520             {
       
  8521         
       
  8522                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  8523                 s4o.print("(");
       
  8524                 return_type_symbol->accept(*this);
       
  8525                 s4o.print(")");
       
  8526                 IN_param_value->accept(*this);
       
  8527                 return NULL;
       
  8528                 
       
  8529             }
       
  8530             
       
  8531             ERROR;
       
  8532         }
       
  8533         
       
  8534     }/*function_dword_to_real*/
       
  8535     break;
       
  8536 
       
  8537 /****
       
  8538  *DWORD_TO_LREAL
       
  8539  */
       
  8540     case function_dword_to_lreal :
       
  8541     {
       
  8542         symbol_c *last_type_symbol = NULL;
       
  8543 
       
  8544         {
       
  8545             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8546             symbol_c *IN_param_value = &this->default_variable_name;
       
  8547         
       
  8548             symbol_c *IN_type_symbol = param_data_type;
       
  8549             last_type_symbol = param_data_type;
       
  8550             
       
  8551             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8552             {
       
  8553         
       
  8554                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  8555                 s4o.print("(");
       
  8556                 return_type_symbol->accept(*this);
       
  8557                 s4o.print(")");
       
  8558                 IN_param_value->accept(*this);
       
  8559                 return NULL;
       
  8560                 
       
  8561             }
       
  8562             
       
  8563             ERROR;
       
  8564         }
       
  8565         
       
  8566     }/*function_dword_to_lreal*/
       
  8567     break;
       
  8568 
       
  8569 /****
       
  8570  *DWORD_TO_SINT
       
  8571  */
       
  8572     case function_dword_to_sint :
       
  8573     {
       
  8574         symbol_c *last_type_symbol = NULL;
       
  8575 
       
  8576         {
       
  8577             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8578             symbol_c *IN_param_value = &this->default_variable_name;
       
  8579         
       
  8580             symbol_c *IN_type_symbol = param_data_type;
       
  8581             last_type_symbol = param_data_type;
       
  8582             
       
  8583             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8584             {
       
  8585         
       
  8586                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  8587                 s4o.print("(");
       
  8588                 return_type_symbol->accept(*this);
       
  8589                 s4o.print(")");
       
  8590                 IN_param_value->accept(*this);
       
  8591                 return NULL;
       
  8592                 
       
  8593             }
       
  8594             
       
  8595             ERROR;
       
  8596         }
       
  8597         
       
  8598     }/*function_dword_to_sint*/
       
  8599     break;
       
  8600 
       
  8601 /****
       
  8602  *DWORD_TO_INT
       
  8603  */
       
  8604     case function_dword_to_int :
       
  8605     {
       
  8606         symbol_c *last_type_symbol = NULL;
       
  8607 
       
  8608         {
       
  8609             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8610             symbol_c *IN_param_value = &this->default_variable_name;
       
  8611         
       
  8612             symbol_c *IN_type_symbol = param_data_type;
       
  8613             last_type_symbol = param_data_type;
       
  8614             
       
  8615             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8616             {
       
  8617         
       
  8618                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  8619                 s4o.print("(");
       
  8620                 return_type_symbol->accept(*this);
       
  8621                 s4o.print(")");
       
  8622                 IN_param_value->accept(*this);
       
  8623                 return NULL;
       
  8624                 
       
  8625             }
       
  8626             
       
  8627             ERROR;
       
  8628         }
       
  8629         
       
  8630     }/*function_dword_to_int*/
       
  8631     break;
       
  8632 
       
  8633 /****
       
  8634  *DWORD_TO_DINT
       
  8635  */
       
  8636     case function_dword_to_dint :
       
  8637     {
       
  8638         symbol_c *last_type_symbol = NULL;
       
  8639 
       
  8640         {
       
  8641             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8642             symbol_c *IN_param_value = &this->default_variable_name;
       
  8643         
       
  8644             symbol_c *IN_type_symbol = param_data_type;
       
  8645             last_type_symbol = param_data_type;
       
  8646             
       
  8647             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8648             {
       
  8649         
       
  8650                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  8651                 s4o.print("(");
       
  8652                 return_type_symbol->accept(*this);
       
  8653                 s4o.print(")");
       
  8654                 IN_param_value->accept(*this);
       
  8655                 return NULL;
       
  8656                 
       
  8657             }
       
  8658             
       
  8659             ERROR;
       
  8660         }
       
  8661         
       
  8662     }/*function_dword_to_dint*/
       
  8663     break;
       
  8664 
       
  8665 /****
       
  8666  *DWORD_TO_LINT
       
  8667  */
       
  8668     case function_dword_to_lint :
       
  8669     {
       
  8670         symbol_c *last_type_symbol = NULL;
       
  8671 
       
  8672         {
       
  8673             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8674             symbol_c *IN_param_value = &this->default_variable_name;
       
  8675         
       
  8676             symbol_c *IN_type_symbol = param_data_type;
       
  8677             last_type_symbol = param_data_type;
       
  8678             
       
  8679             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8680             {
       
  8681         
       
  8682                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  8683                 s4o.print("(");
       
  8684                 return_type_symbol->accept(*this);
       
  8685                 s4o.print(")");
       
  8686                 IN_param_value->accept(*this);
       
  8687                 return NULL;
       
  8688                 
       
  8689             }
       
  8690             
       
  8691             ERROR;
       
  8692         }
       
  8693         
       
  8694     }/*function_dword_to_lint*/
       
  8695     break;
       
  8696 
       
  8697 /****
       
  8698  *DWORD_TO_USINT
       
  8699  */
       
  8700     case function_dword_to_usint :
       
  8701     {
       
  8702         symbol_c *last_type_symbol = NULL;
       
  8703 
       
  8704         {
       
  8705             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8706             symbol_c *IN_param_value = &this->default_variable_name;
       
  8707         
       
  8708             symbol_c *IN_type_symbol = param_data_type;
       
  8709             last_type_symbol = param_data_type;
       
  8710             
       
  8711             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8712             {
       
  8713         
       
  8714                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  8715                 s4o.print("(");
       
  8716                 return_type_symbol->accept(*this);
       
  8717                 s4o.print(")");
       
  8718                 IN_param_value->accept(*this);
       
  8719                 return NULL;
       
  8720                 
       
  8721             }
       
  8722             
       
  8723             ERROR;
       
  8724         }
       
  8725         
       
  8726     }/*function_dword_to_usint*/
       
  8727     break;
       
  8728 
       
  8729 /****
       
  8730  *DWORD_TO_UINT
       
  8731  */
       
  8732     case function_dword_to_uint :
       
  8733     {
       
  8734         symbol_c *last_type_symbol = NULL;
       
  8735 
       
  8736         {
       
  8737             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8738             symbol_c *IN_param_value = &this->default_variable_name;
       
  8739         
       
  8740             symbol_c *IN_type_symbol = param_data_type;
       
  8741             last_type_symbol = param_data_type;
       
  8742             
       
  8743             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8744             {
       
  8745         
       
  8746                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  8747                 s4o.print("(");
       
  8748                 return_type_symbol->accept(*this);
       
  8749                 s4o.print(")");
       
  8750                 IN_param_value->accept(*this);
       
  8751                 return NULL;
       
  8752                 
       
  8753             }
       
  8754             
       
  8755             ERROR;
       
  8756         }
       
  8757         
       
  8758     }/*function_dword_to_uint*/
       
  8759     break;
       
  8760 
       
  8761 /****
       
  8762  *DWORD_TO_UDINT
       
  8763  */
       
  8764     case function_dword_to_udint :
       
  8765     {
       
  8766         symbol_c *last_type_symbol = NULL;
       
  8767 
       
  8768         {
       
  8769             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8770             symbol_c *IN_param_value = &this->default_variable_name;
       
  8771         
       
  8772             symbol_c *IN_type_symbol = param_data_type;
       
  8773             last_type_symbol = param_data_type;
       
  8774             
       
  8775             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8776             {
       
  8777         
       
  8778                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  8779                 s4o.print("(");
       
  8780                 return_type_symbol->accept(*this);
       
  8781                 s4o.print(")");
       
  8782                 IN_param_value->accept(*this);
       
  8783                 return NULL;
       
  8784                 
       
  8785             }
       
  8786             
       
  8787             ERROR;
       
  8788         }
       
  8789         
       
  8790     }/*function_dword_to_udint*/
       
  8791     break;
       
  8792 
       
  8793 /****
       
  8794  *DWORD_TO_ULINT
       
  8795  */
       
  8796     case function_dword_to_ulint :
       
  8797     {
       
  8798         symbol_c *last_type_symbol = NULL;
       
  8799 
       
  8800         {
       
  8801             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8802             symbol_c *IN_param_value = &this->default_variable_name;
       
  8803         
       
  8804             symbol_c *IN_type_symbol = param_data_type;
       
  8805             last_type_symbol = param_data_type;
       
  8806             
       
  8807             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8808             {
       
  8809         
       
  8810                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  8811                 s4o.print("(");
       
  8812                 return_type_symbol->accept(*this);
       
  8813                 s4o.print(")");
       
  8814                 IN_param_value->accept(*this);
       
  8815                 return NULL;
       
  8816                 
       
  8817             }
       
  8818             
       
  8819             ERROR;
       
  8820         }
       
  8821         
       
  8822     }/*function_dword_to_ulint*/
       
  8823     break;
       
  8824 
       
  8825 /****
       
  8826  *DWORD_TO_TIME
       
  8827  */
       
  8828     case function_dword_to_time :
       
  8829     {
       
  8830         symbol_c *last_type_symbol = NULL;
       
  8831 
       
  8832         {
       
  8833             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8834             symbol_c *IN_param_value = &this->default_variable_name;
       
  8835         
       
  8836             symbol_c *IN_type_symbol = param_data_type;
       
  8837             last_type_symbol = param_data_type;
       
  8838             
       
  8839             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8840             {
       
  8841         
       
  8842                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  8843                 s4o.print("(");
       
  8844                 return_type_symbol->accept(*this);
       
  8845                 s4o.print(")__int_to_time(");
       
  8846                 IN_param_value->accept(*this);
       
  8847                 s4o.print(")");
       
  8848                 return NULL;
       
  8849                 
       
  8850             }
       
  8851             
       
  8852             ERROR;
       
  8853         }
       
  8854         
       
  8855     }/*function_dword_to_time*/
       
  8856     break;
       
  8857 
       
  8858 /****
       
  8859  *DWORD_TO_BOOL
       
  8860  */
       
  8861     case function_dword_to_bool :
       
  8862     {
       
  8863         symbol_c *last_type_symbol = NULL;
       
  8864 
       
  8865         {
       
  8866             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8867             symbol_c *IN_param_value = &this->default_variable_name;
       
  8868         
       
  8869             symbol_c *IN_type_symbol = param_data_type;
       
  8870             last_type_symbol = param_data_type;
       
  8871             
       
  8872             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8873             {
       
  8874         
       
  8875                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  8876                 s4o.print("(");
       
  8877                 return_type_symbol->accept(*this);
       
  8878                 s4o.print(")");
       
  8879                 IN_param_value->accept(*this);
       
  8880                 return NULL;
       
  8881                 
       
  8882             }
       
  8883             
       
  8884             ERROR;
       
  8885         }
       
  8886         
       
  8887     }/*function_dword_to_bool*/
       
  8888     break;
       
  8889 
       
  8890 /****
       
  8891  *DWORD_TO_BYTE
       
  8892  */
       
  8893     case function_dword_to_byte :
       
  8894     {
       
  8895         symbol_c *last_type_symbol = NULL;
       
  8896 
       
  8897         {
       
  8898             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8899             symbol_c *IN_param_value = &this->default_variable_name;
       
  8900         
       
  8901             symbol_c *IN_type_symbol = param_data_type;
       
  8902             last_type_symbol = param_data_type;
       
  8903             
       
  8904             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8905             {
       
  8906         
       
  8907                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  8908                 s4o.print("(");
       
  8909                 return_type_symbol->accept(*this);
       
  8910                 s4o.print(")");
       
  8911                 IN_param_value->accept(*this);
       
  8912                 return NULL;
       
  8913                 
       
  8914             }
       
  8915             
       
  8916             ERROR;
       
  8917         }
       
  8918         
       
  8919     }/*function_dword_to_byte*/
       
  8920     break;
       
  8921 
       
  8922 /****
       
  8923  *DWORD_TO_WORD
       
  8924  */
       
  8925     case function_dword_to_word :
       
  8926     {
       
  8927         symbol_c *last_type_symbol = NULL;
       
  8928 
       
  8929         {
       
  8930             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8931             symbol_c *IN_param_value = &this->default_variable_name;
       
  8932         
       
  8933             symbol_c *IN_type_symbol = param_data_type;
       
  8934             last_type_symbol = param_data_type;
       
  8935             
       
  8936             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8937             {
       
  8938         
       
  8939                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  8940                 s4o.print("(");
       
  8941                 return_type_symbol->accept(*this);
       
  8942                 s4o.print(")");
       
  8943                 IN_param_value->accept(*this);
       
  8944                 return NULL;
       
  8945                 
       
  8946             }
       
  8947             
       
  8948             ERROR;
       
  8949         }
       
  8950         
       
  8951     }/*function_dword_to_word*/
       
  8952     break;
       
  8953 
       
  8954 /****
       
  8955  *DWORD_TO_LWORD
       
  8956  */
       
  8957     case function_dword_to_lword :
       
  8958     {
       
  8959         symbol_c *last_type_symbol = NULL;
       
  8960 
       
  8961         {
       
  8962             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8963             symbol_c *IN_param_value = &this->default_variable_name;
       
  8964         
       
  8965             symbol_c *IN_type_symbol = param_data_type;
       
  8966             last_type_symbol = param_data_type;
       
  8967             
       
  8968             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  8969             {
       
  8970         
       
  8971                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
  8972                 s4o.print("(");
       
  8973                 return_type_symbol->accept(*this);
       
  8974                 s4o.print(")");
       
  8975                 IN_param_value->accept(*this);
       
  8976                 return NULL;
       
  8977                 
       
  8978             }
       
  8979             
       
  8980             ERROR;
       
  8981         }
       
  8982         
       
  8983     }/*function_dword_to_lword*/
       
  8984     break;
       
  8985 
       
  8986 /****
       
  8987  *DWORD_TO_STRING
       
  8988  */
       
  8989     case function_dword_to_string :
       
  8990     {
       
  8991         symbol_c *last_type_symbol = NULL;
       
  8992 
       
  8993         {
       
  8994             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  8995             symbol_c *IN_param_value = &this->default_variable_name;
       
  8996         
       
  8997             symbol_c *IN_type_symbol = param_data_type;
       
  8998             last_type_symbol = param_data_type;
       
  8999             
       
  9000             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  9001             {
       
  9002         
       
  9003                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  9004                 s4o.print("(");
       
  9005                 return_type_symbol->accept(*this);
       
  9006                 s4o.print(")__bit_to_string(");
       
  9007                 IN_param_value->accept(*this);
       
  9008                 s4o.print(")");
       
  9009                 return NULL;
       
  9010                 
       
  9011             }
       
  9012             
       
  9013             ERROR;
       
  9014         }
       
  9015         
       
  9016     }/*function_dword_to_string*/
       
  9017     break;
       
  9018 
       
  9019 /****
       
  9020  *DWORD_TO_DATE
       
  9021  */
       
  9022     case function_dword_to_date :
       
  9023     {
       
  9024         symbol_c *last_type_symbol = NULL;
       
  9025 
       
  9026         {
       
  9027             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9028             symbol_c *IN_param_value = &this->default_variable_name;
       
  9029         
       
  9030             symbol_c *IN_type_symbol = param_data_type;
       
  9031             last_type_symbol = param_data_type;
       
  9032             
       
  9033             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  9034             {
       
  9035         
       
  9036                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  9037                 s4o.print("(");
       
  9038                 return_type_symbol->accept(*this);
       
  9039                 s4o.print(")__int_to_time(");
       
  9040                 IN_param_value->accept(*this);
       
  9041                 s4o.print(")");
       
  9042                 return NULL;
       
  9043                 
       
  9044             }
       
  9045             
       
  9046             ERROR;
       
  9047         }
       
  9048         
       
  9049     }/*function_dword_to_date*/
       
  9050     break;
       
  9051 
       
  9052 /****
       
  9053  *DWORD_TO_TOD
       
  9054  */
       
  9055     case function_dword_to_tod :
       
  9056     {
       
  9057         symbol_c *last_type_symbol = NULL;
       
  9058 
       
  9059         {
       
  9060             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9061             symbol_c *IN_param_value = &this->default_variable_name;
       
  9062         
       
  9063             symbol_c *IN_type_symbol = param_data_type;
       
  9064             last_type_symbol = param_data_type;
       
  9065             
       
  9066             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  9067             {
       
  9068         
       
  9069                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  9070                 s4o.print("(");
       
  9071                 return_type_symbol->accept(*this);
       
  9072                 s4o.print(")__int_to_time(");
       
  9073                 IN_param_value->accept(*this);
       
  9074                 s4o.print(")");
       
  9075                 return NULL;
       
  9076                 
       
  9077             }
       
  9078             
       
  9079             ERROR;
       
  9080         }
       
  9081         
       
  9082     }/*function_dword_to_tod*/
       
  9083     break;
       
  9084 
       
  9085 /****
       
  9086  *DWORD_TO_DT
       
  9087  */
       
  9088     case function_dword_to_dt :
       
  9089     {
       
  9090         symbol_c *last_type_symbol = NULL;
       
  9091 
       
  9092         {
       
  9093             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9094             symbol_c *IN_param_value = &this->default_variable_name;
       
  9095         
       
  9096             symbol_c *IN_type_symbol = param_data_type;
       
  9097             last_type_symbol = param_data_type;
       
  9098             
       
  9099             if (typeid(*last_type_symbol) == typeid(dword_type_name_c))
       
  9100             {
       
  9101         
       
  9102                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  9103                 s4o.print("(");
       
  9104                 return_type_symbol->accept(*this);
       
  9105                 s4o.print(")__int_to_time(");
       
  9106                 IN_param_value->accept(*this);
       
  9107                 s4o.print(")");
       
  9108                 return NULL;
       
  9109                 
       
  9110             }
       
  9111             
       
  9112             ERROR;
       
  9113         }
       
  9114         
       
  9115     }/*function_dword_to_dt*/
       
  9116     break;
       
  9117 
       
  9118 /****
       
  9119  *LWORD_TO_REAL
       
  9120  */
       
  9121     case function_lword_to_real :
       
  9122     {
       
  9123         symbol_c *last_type_symbol = NULL;
       
  9124 
       
  9125         {
       
  9126             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9127             symbol_c *IN_param_value = &this->default_variable_name;
       
  9128         
       
  9129             symbol_c *IN_type_symbol = param_data_type;
       
  9130             last_type_symbol = param_data_type;
       
  9131             
       
  9132             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9133             {
       
  9134         
       
  9135                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  9136                 s4o.print("(");
       
  9137                 return_type_symbol->accept(*this);
       
  9138                 s4o.print(")");
       
  9139                 IN_param_value->accept(*this);
       
  9140                 return NULL;
       
  9141                 
       
  9142             }
       
  9143             
       
  9144             ERROR;
       
  9145         }
       
  9146         
       
  9147     }/*function_lword_to_real*/
       
  9148     break;
       
  9149 
       
  9150 /****
       
  9151  *LWORD_TO_LREAL
       
  9152  */
       
  9153     case function_lword_to_lreal :
       
  9154     {
       
  9155         symbol_c *last_type_symbol = NULL;
       
  9156 
       
  9157         {
       
  9158             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9159             symbol_c *IN_param_value = &this->default_variable_name;
       
  9160         
       
  9161             symbol_c *IN_type_symbol = param_data_type;
       
  9162             last_type_symbol = param_data_type;
       
  9163             
       
  9164             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9165             {
       
  9166         
       
  9167                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  9168                 s4o.print("(");
       
  9169                 return_type_symbol->accept(*this);
       
  9170                 s4o.print(")");
       
  9171                 IN_param_value->accept(*this);
       
  9172                 return NULL;
       
  9173                 
       
  9174             }
       
  9175             
       
  9176             ERROR;
       
  9177         }
       
  9178         
       
  9179     }/*function_lword_to_lreal*/
       
  9180     break;
       
  9181 
       
  9182 /****
       
  9183  *LWORD_TO_SINT
       
  9184  */
       
  9185     case function_lword_to_sint :
       
  9186     {
       
  9187         symbol_c *last_type_symbol = NULL;
       
  9188 
       
  9189         {
       
  9190             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9191             symbol_c *IN_param_value = &this->default_variable_name;
       
  9192         
       
  9193             symbol_c *IN_type_symbol = param_data_type;
       
  9194             last_type_symbol = param_data_type;
       
  9195             
       
  9196             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9197             {
       
  9198         
       
  9199                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  9200                 s4o.print("(");
       
  9201                 return_type_symbol->accept(*this);
       
  9202                 s4o.print(")");
       
  9203                 IN_param_value->accept(*this);
       
  9204                 return NULL;
       
  9205                 
       
  9206             }
       
  9207             
       
  9208             ERROR;
       
  9209         }
       
  9210         
       
  9211     }/*function_lword_to_sint*/
       
  9212     break;
       
  9213 
       
  9214 /****
       
  9215  *LWORD_TO_INT
       
  9216  */
       
  9217     case function_lword_to_int :
       
  9218     {
       
  9219         symbol_c *last_type_symbol = NULL;
       
  9220 
       
  9221         {
       
  9222             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9223             symbol_c *IN_param_value = &this->default_variable_name;
       
  9224         
       
  9225             symbol_c *IN_type_symbol = param_data_type;
       
  9226             last_type_symbol = param_data_type;
       
  9227             
       
  9228             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9229             {
       
  9230         
       
  9231                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  9232                 s4o.print("(");
       
  9233                 return_type_symbol->accept(*this);
       
  9234                 s4o.print(")");
       
  9235                 IN_param_value->accept(*this);
       
  9236                 return NULL;
       
  9237                 
       
  9238             }
       
  9239             
       
  9240             ERROR;
       
  9241         }
       
  9242         
       
  9243     }/*function_lword_to_int*/
       
  9244     break;
       
  9245 
       
  9246 /****
       
  9247  *LWORD_TO_DINT
       
  9248  */
       
  9249     case function_lword_to_dint :
       
  9250     {
       
  9251         symbol_c *last_type_symbol = NULL;
       
  9252 
       
  9253         {
       
  9254             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9255             symbol_c *IN_param_value = &this->default_variable_name;
       
  9256         
       
  9257             symbol_c *IN_type_symbol = param_data_type;
       
  9258             last_type_symbol = param_data_type;
       
  9259             
       
  9260             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9261             {
       
  9262         
       
  9263                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  9264                 s4o.print("(");
       
  9265                 return_type_symbol->accept(*this);
       
  9266                 s4o.print(")");
       
  9267                 IN_param_value->accept(*this);
       
  9268                 return NULL;
       
  9269                 
       
  9270             }
       
  9271             
       
  9272             ERROR;
       
  9273         }
       
  9274         
       
  9275     }/*function_lword_to_dint*/
       
  9276     break;
       
  9277 
       
  9278 /****
       
  9279  *LWORD_TO_LINT
       
  9280  */
       
  9281     case function_lword_to_lint :
       
  9282     {
       
  9283         symbol_c *last_type_symbol = NULL;
       
  9284 
       
  9285         {
       
  9286             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9287             symbol_c *IN_param_value = &this->default_variable_name;
       
  9288         
       
  9289             symbol_c *IN_type_symbol = param_data_type;
       
  9290             last_type_symbol = param_data_type;
       
  9291             
       
  9292             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9293             {
       
  9294         
       
  9295                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  9296                 s4o.print("(");
       
  9297                 return_type_symbol->accept(*this);
       
  9298                 s4o.print(")");
       
  9299                 IN_param_value->accept(*this);
       
  9300                 return NULL;
       
  9301                 
       
  9302             }
       
  9303             
       
  9304             ERROR;
       
  9305         }
       
  9306         
       
  9307     }/*function_lword_to_lint*/
       
  9308     break;
       
  9309 
       
  9310 /****
       
  9311  *LWORD_TO_USINT
       
  9312  */
       
  9313     case function_lword_to_usint :
       
  9314     {
       
  9315         symbol_c *last_type_symbol = NULL;
       
  9316 
       
  9317         {
       
  9318             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9319             symbol_c *IN_param_value = &this->default_variable_name;
       
  9320         
       
  9321             symbol_c *IN_type_symbol = param_data_type;
       
  9322             last_type_symbol = param_data_type;
       
  9323             
       
  9324             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9325             {
       
  9326         
       
  9327                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  9328                 s4o.print("(");
       
  9329                 return_type_symbol->accept(*this);
       
  9330                 s4o.print(")");
       
  9331                 IN_param_value->accept(*this);
       
  9332                 return NULL;
       
  9333                 
       
  9334             }
       
  9335             
       
  9336             ERROR;
       
  9337         }
       
  9338         
       
  9339     }/*function_lword_to_usint*/
       
  9340     break;
       
  9341 
       
  9342 /****
       
  9343  *LWORD_TO_UINT
       
  9344  */
       
  9345     case function_lword_to_uint :
       
  9346     {
       
  9347         symbol_c *last_type_symbol = NULL;
       
  9348 
       
  9349         {
       
  9350             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9351             symbol_c *IN_param_value = &this->default_variable_name;
       
  9352         
       
  9353             symbol_c *IN_type_symbol = param_data_type;
       
  9354             last_type_symbol = param_data_type;
       
  9355             
       
  9356             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9357             {
       
  9358         
       
  9359                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  9360                 s4o.print("(");
       
  9361                 return_type_symbol->accept(*this);
       
  9362                 s4o.print(")");
       
  9363                 IN_param_value->accept(*this);
       
  9364                 return NULL;
       
  9365                 
       
  9366             }
       
  9367             
       
  9368             ERROR;
       
  9369         }
       
  9370         
       
  9371     }/*function_lword_to_uint*/
       
  9372     break;
       
  9373 
       
  9374 /****
       
  9375  *LWORD_TO_UDINT
       
  9376  */
       
  9377     case function_lword_to_udint :
       
  9378     {
       
  9379         symbol_c *last_type_symbol = NULL;
       
  9380 
       
  9381         {
       
  9382             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9383             symbol_c *IN_param_value = &this->default_variable_name;
       
  9384         
       
  9385             symbol_c *IN_type_symbol = param_data_type;
       
  9386             last_type_symbol = param_data_type;
       
  9387             
       
  9388             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9389             {
       
  9390         
       
  9391                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
  9392                 s4o.print("(");
       
  9393                 return_type_symbol->accept(*this);
       
  9394                 s4o.print(")");
       
  9395                 IN_param_value->accept(*this);
       
  9396                 return NULL;
       
  9397                 
       
  9398             }
       
  9399             
       
  9400             ERROR;
       
  9401         }
       
  9402         
       
  9403     }/*function_lword_to_udint*/
       
  9404     break;
       
  9405 
       
  9406 /****
       
  9407  *LWORD_TO_ULINT
       
  9408  */
       
  9409     case function_lword_to_ulint :
       
  9410     {
       
  9411         symbol_c *last_type_symbol = NULL;
       
  9412 
       
  9413         {
       
  9414             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9415             symbol_c *IN_param_value = &this->default_variable_name;
       
  9416         
       
  9417             symbol_c *IN_type_symbol = param_data_type;
       
  9418             last_type_symbol = param_data_type;
       
  9419             
       
  9420             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9421             {
       
  9422         
       
  9423                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
  9424                 s4o.print("(");
       
  9425                 return_type_symbol->accept(*this);
       
  9426                 s4o.print(")");
       
  9427                 IN_param_value->accept(*this);
       
  9428                 return NULL;
       
  9429                 
       
  9430             }
       
  9431             
       
  9432             ERROR;
       
  9433         }
       
  9434         
       
  9435     }/*function_lword_to_ulint*/
       
  9436     break;
       
  9437 
       
  9438 /****
       
  9439  *LWORD_TO_TIME
       
  9440  */
       
  9441     case function_lword_to_time :
       
  9442     {
       
  9443         symbol_c *last_type_symbol = NULL;
       
  9444 
       
  9445         {
       
  9446             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9447             symbol_c *IN_param_value = &this->default_variable_name;
       
  9448         
       
  9449             symbol_c *IN_type_symbol = param_data_type;
       
  9450             last_type_symbol = param_data_type;
       
  9451             
       
  9452             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9453             {
       
  9454         
       
  9455                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
  9456                 s4o.print("(");
       
  9457                 return_type_symbol->accept(*this);
       
  9458                 s4o.print(")__int_to_time(");
       
  9459                 IN_param_value->accept(*this);
       
  9460                 s4o.print(")");
       
  9461                 return NULL;
       
  9462                 
       
  9463             }
       
  9464             
       
  9465             ERROR;
       
  9466         }
       
  9467         
       
  9468     }/*function_lword_to_time*/
       
  9469     break;
       
  9470 
       
  9471 /****
       
  9472  *LWORD_TO_BOOL
       
  9473  */
       
  9474     case function_lword_to_bool :
       
  9475     {
       
  9476         symbol_c *last_type_symbol = NULL;
       
  9477 
       
  9478         {
       
  9479             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9480             symbol_c *IN_param_value = &this->default_variable_name;
       
  9481         
       
  9482             symbol_c *IN_type_symbol = param_data_type;
       
  9483             last_type_symbol = param_data_type;
       
  9484             
       
  9485             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9486             {
       
  9487         
       
  9488                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
  9489                 s4o.print("(");
       
  9490                 return_type_symbol->accept(*this);
       
  9491                 s4o.print(")");
       
  9492                 IN_param_value->accept(*this);
       
  9493                 return NULL;
       
  9494                 
       
  9495             }
       
  9496             
       
  9497             ERROR;
       
  9498         }
       
  9499         
       
  9500     }/*function_lword_to_bool*/
       
  9501     break;
       
  9502 
       
  9503 /****
       
  9504  *LWORD_TO_BYTE
       
  9505  */
       
  9506     case function_lword_to_byte :
       
  9507     {
       
  9508         symbol_c *last_type_symbol = NULL;
       
  9509 
       
  9510         {
       
  9511             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9512             symbol_c *IN_param_value = &this->default_variable_name;
       
  9513         
       
  9514             symbol_c *IN_type_symbol = param_data_type;
       
  9515             last_type_symbol = param_data_type;
       
  9516             
       
  9517             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9518             {
       
  9519         
       
  9520                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
  9521                 s4o.print("(");
       
  9522                 return_type_symbol->accept(*this);
       
  9523                 s4o.print(")");
       
  9524                 IN_param_value->accept(*this);
       
  9525                 return NULL;
       
  9526                 
       
  9527             }
       
  9528             
       
  9529             ERROR;
       
  9530         }
       
  9531         
       
  9532     }/*function_lword_to_byte*/
       
  9533     break;
       
  9534 
       
  9535 /****
       
  9536  *LWORD_TO_WORD
       
  9537  */
       
  9538     case function_lword_to_word :
       
  9539     {
       
  9540         symbol_c *last_type_symbol = NULL;
       
  9541 
       
  9542         {
       
  9543             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9544             symbol_c *IN_param_value = &this->default_variable_name;
       
  9545         
       
  9546             symbol_c *IN_type_symbol = param_data_type;
       
  9547             last_type_symbol = param_data_type;
       
  9548             
       
  9549             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9550             {
       
  9551         
       
  9552                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
  9553                 s4o.print("(");
       
  9554                 return_type_symbol->accept(*this);
       
  9555                 s4o.print(")");
       
  9556                 IN_param_value->accept(*this);
       
  9557                 return NULL;
       
  9558                 
       
  9559             }
       
  9560             
       
  9561             ERROR;
       
  9562         }
       
  9563         
       
  9564     }/*function_lword_to_word*/
       
  9565     break;
       
  9566 
       
  9567 /****
       
  9568  *LWORD_TO_DWORD
       
  9569  */
       
  9570     case function_lword_to_dword :
       
  9571     {
       
  9572         symbol_c *last_type_symbol = NULL;
       
  9573 
       
  9574         {
       
  9575             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9576             symbol_c *IN_param_value = &this->default_variable_name;
       
  9577         
       
  9578             symbol_c *IN_type_symbol = param_data_type;
       
  9579             last_type_symbol = param_data_type;
       
  9580             
       
  9581             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9582             {
       
  9583         
       
  9584                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
  9585                 s4o.print("(");
       
  9586                 return_type_symbol->accept(*this);
       
  9587                 s4o.print(")");
       
  9588                 IN_param_value->accept(*this);
       
  9589                 return NULL;
       
  9590                 
       
  9591             }
       
  9592             
       
  9593             ERROR;
       
  9594         }
       
  9595         
       
  9596     }/*function_lword_to_dword*/
 11939     }/*function_lword_to_dword*/
  9597     break;
       
  9598 
       
  9599 /****
       
  9600  *LWORD_TO_STRING
       
  9601  */
       
  9602     case function_lword_to_string :
       
  9603     {
       
  9604         symbol_c *last_type_symbol = NULL;
       
  9605 
       
  9606         {
       
  9607             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9608             symbol_c *IN_param_value = &this->default_variable_name;
       
  9609         
       
  9610             symbol_c *IN_type_symbol = param_data_type;
       
  9611             last_type_symbol = param_data_type;
       
  9612             
       
  9613             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9614             {
       
  9615         
       
  9616                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
  9617                 s4o.print("(");
       
  9618                 return_type_symbol->accept(*this);
       
  9619                 s4o.print(")__bit_to_string(");
       
  9620                 IN_param_value->accept(*this);
       
  9621                 s4o.print(")");
       
  9622                 return NULL;
       
  9623                 
       
  9624             }
       
  9625             
       
  9626             ERROR;
       
  9627         }
       
  9628         
       
  9629     }/*function_lword_to_string*/
       
  9630     break;
       
  9631 
       
  9632 /****
       
  9633  *LWORD_TO_DATE
       
  9634  */
       
  9635     case function_lword_to_date :
       
  9636     {
       
  9637         symbol_c *last_type_symbol = NULL;
       
  9638 
       
  9639         {
       
  9640             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9641             symbol_c *IN_param_value = &this->default_variable_name;
       
  9642         
       
  9643             symbol_c *IN_type_symbol = param_data_type;
       
  9644             last_type_symbol = param_data_type;
       
  9645             
       
  9646             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9647             {
       
  9648         
       
  9649                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
  9650                 s4o.print("(");
       
  9651                 return_type_symbol->accept(*this);
       
  9652                 s4o.print(")__int_to_time(");
       
  9653                 IN_param_value->accept(*this);
       
  9654                 s4o.print(")");
       
  9655                 return NULL;
       
  9656                 
       
  9657             }
       
  9658             
       
  9659             ERROR;
       
  9660         }
       
  9661         
       
  9662     }/*function_lword_to_date*/
       
  9663     break;
       
  9664 
       
  9665 /****
       
  9666  *LWORD_TO_TOD
       
  9667  */
       
  9668     case function_lword_to_tod :
       
  9669     {
       
  9670         symbol_c *last_type_symbol = NULL;
       
  9671 
       
  9672         {
       
  9673             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9674             symbol_c *IN_param_value = &this->default_variable_name;
       
  9675         
       
  9676             symbol_c *IN_type_symbol = param_data_type;
       
  9677             last_type_symbol = param_data_type;
       
  9678             
       
  9679             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9680             {
       
  9681         
       
  9682                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
  9683                 s4o.print("(");
       
  9684                 return_type_symbol->accept(*this);
       
  9685                 s4o.print(")__int_to_time(");
       
  9686                 IN_param_value->accept(*this);
       
  9687                 s4o.print(")");
       
  9688                 return NULL;
       
  9689                 
       
  9690             }
       
  9691             
       
  9692             ERROR;
       
  9693         }
       
  9694         
       
  9695     }/*function_lword_to_tod*/
       
  9696     break;
       
  9697 
       
  9698 /****
       
  9699  *LWORD_TO_DT
       
  9700  */
       
  9701     case function_lword_to_dt :
       
  9702     {
       
  9703         symbol_c *last_type_symbol = NULL;
       
  9704 
       
  9705         {
       
  9706             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9707             symbol_c *IN_param_value = &this->default_variable_name;
       
  9708         
       
  9709             symbol_c *IN_type_symbol = param_data_type;
       
  9710             last_type_symbol = param_data_type;
       
  9711             
       
  9712             if (typeid(*last_type_symbol) == typeid(lword_type_name_c))
       
  9713             {
       
  9714         
       
  9715                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
  9716                 s4o.print("(");
       
  9717                 return_type_symbol->accept(*this);
       
  9718                 s4o.print(")__int_to_time(");
       
  9719                 IN_param_value->accept(*this);
       
  9720                 s4o.print(")");
       
  9721                 return NULL;
       
  9722                 
       
  9723             }
       
  9724             
       
  9725             ERROR;
       
  9726         }
       
  9727         
       
  9728     }/*function_lword_to_dt*/
       
  9729     break;
       
  9730 
       
  9731 /****
       
  9732  *STRING_TO_REAL
       
  9733  */
       
  9734     case function_string_to_real :
       
  9735     {
       
  9736         symbol_c *last_type_symbol = NULL;
       
  9737 
       
  9738         {
       
  9739             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9740             symbol_c *IN_param_value = &this->default_variable_name;
       
  9741         
       
  9742             symbol_c *IN_type_symbol = param_data_type;
       
  9743             last_type_symbol = param_data_type;
       
  9744             
       
  9745             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9746             {
       
  9747         
       
  9748                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
  9749                 s4o.print("(");
       
  9750                 return_type_symbol->accept(*this);
       
  9751                 s4o.print(")__string_to_real(");
       
  9752                 IN_param_value->accept(*this);
       
  9753                 s4o.print(")");
       
  9754                 return NULL;
       
  9755                 
       
  9756             }
       
  9757             
       
  9758             ERROR;
       
  9759         }
       
  9760         
       
  9761     }/*function_string_to_real*/
       
  9762     break;
       
  9763 
       
  9764 /****
       
  9765  *STRING_TO_LREAL
       
  9766  */
       
  9767     case function_string_to_lreal :
       
  9768     {
       
  9769         symbol_c *last_type_symbol = NULL;
       
  9770 
       
  9771         {
       
  9772             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9773             symbol_c *IN_param_value = &this->default_variable_name;
       
  9774         
       
  9775             symbol_c *IN_type_symbol = param_data_type;
       
  9776             last_type_symbol = param_data_type;
       
  9777             
       
  9778             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9779             {
       
  9780         
       
  9781                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
  9782                 s4o.print("(");
       
  9783                 return_type_symbol->accept(*this);
       
  9784                 s4o.print(")__string_to_real(");
       
  9785                 IN_param_value->accept(*this);
       
  9786                 s4o.print(")");
       
  9787                 return NULL;
       
  9788                 
       
  9789             }
       
  9790             
       
  9791             ERROR;
       
  9792         }
       
  9793         
       
  9794     }/*function_string_to_lreal*/
       
  9795     break;
       
  9796 
       
  9797 /****
       
  9798  *STRING_TO_SINT
       
  9799  */
       
  9800     case function_string_to_sint :
       
  9801     {
       
  9802         symbol_c *last_type_symbol = NULL;
       
  9803 
       
  9804         {
       
  9805             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9806             symbol_c *IN_param_value = &this->default_variable_name;
       
  9807         
       
  9808             symbol_c *IN_type_symbol = param_data_type;
       
  9809             last_type_symbol = param_data_type;
       
  9810             
       
  9811             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9812             {
       
  9813         
       
  9814                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
  9815                 s4o.print("(");
       
  9816                 return_type_symbol->accept(*this);
       
  9817                 s4o.print(")__string_to_sint(");
       
  9818                 IN_param_value->accept(*this);
       
  9819                 s4o.print(")");
       
  9820                 return NULL;
       
  9821                 
       
  9822             }
       
  9823             
       
  9824             ERROR;
       
  9825         }
       
  9826         
       
  9827     }/*function_string_to_sint*/
       
  9828     break;
       
  9829 
       
  9830 /****
       
  9831  *STRING_TO_INT
       
  9832  */
       
  9833     case function_string_to_int :
       
  9834     {
       
  9835         symbol_c *last_type_symbol = NULL;
       
  9836 
       
  9837         {
       
  9838             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9839             symbol_c *IN_param_value = &this->default_variable_name;
       
  9840         
       
  9841             symbol_c *IN_type_symbol = param_data_type;
       
  9842             last_type_symbol = param_data_type;
       
  9843             
       
  9844             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9845             {
       
  9846         
       
  9847                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
  9848                 s4o.print("(");
       
  9849                 return_type_symbol->accept(*this);
       
  9850                 s4o.print(")__string_to_sint(");
       
  9851                 IN_param_value->accept(*this);
       
  9852                 s4o.print(")");
       
  9853                 return NULL;
       
  9854                 
       
  9855             }
       
  9856             
       
  9857             ERROR;
       
  9858         }
       
  9859         
       
  9860     }/*function_string_to_int*/
       
  9861     break;
       
  9862 
       
  9863 /****
       
  9864  *STRING_TO_DINT
       
  9865  */
       
  9866     case function_string_to_dint :
       
  9867     {
       
  9868         symbol_c *last_type_symbol = NULL;
       
  9869 
       
  9870         {
       
  9871             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9872             symbol_c *IN_param_value = &this->default_variable_name;
       
  9873         
       
  9874             symbol_c *IN_type_symbol = param_data_type;
       
  9875             last_type_symbol = param_data_type;
       
  9876             
       
  9877             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9878             {
       
  9879         
       
  9880                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
  9881                 s4o.print("(");
       
  9882                 return_type_symbol->accept(*this);
       
  9883                 s4o.print(")__string_to_sint(");
       
  9884                 IN_param_value->accept(*this);
       
  9885                 s4o.print(")");
       
  9886                 return NULL;
       
  9887                 
       
  9888             }
       
  9889             
       
  9890             ERROR;
       
  9891         }
       
  9892         
       
  9893     }/*function_string_to_dint*/
       
  9894     break;
       
  9895 
       
  9896 /****
       
  9897  *STRING_TO_LINT
       
  9898  */
       
  9899     case function_string_to_lint :
       
  9900     {
       
  9901         symbol_c *last_type_symbol = NULL;
       
  9902 
       
  9903         {
       
  9904             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9905             symbol_c *IN_param_value = &this->default_variable_name;
       
  9906         
       
  9907             symbol_c *IN_type_symbol = param_data_type;
       
  9908             last_type_symbol = param_data_type;
       
  9909             
       
  9910             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9911             {
       
  9912         
       
  9913                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
  9914                 s4o.print("(");
       
  9915                 return_type_symbol->accept(*this);
       
  9916                 s4o.print(")__string_to_sint(");
       
  9917                 IN_param_value->accept(*this);
       
  9918                 s4o.print(")");
       
  9919                 return NULL;
       
  9920                 
       
  9921             }
       
  9922             
       
  9923             ERROR;
       
  9924         }
       
  9925         
       
  9926     }/*function_string_to_lint*/
       
  9927     break;
       
  9928 
       
  9929 /****
       
  9930  *STRING_TO_USINT
       
  9931  */
       
  9932     case function_string_to_usint :
       
  9933     {
       
  9934         symbol_c *last_type_symbol = NULL;
       
  9935 
       
  9936         {
       
  9937             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9938             symbol_c *IN_param_value = &this->default_variable_name;
       
  9939         
       
  9940             symbol_c *IN_type_symbol = param_data_type;
       
  9941             last_type_symbol = param_data_type;
       
  9942             
       
  9943             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9944             {
       
  9945         
       
  9946                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
  9947                 s4o.print("(");
       
  9948                 return_type_symbol->accept(*this);
       
  9949                 s4o.print(")__string_to_uint(");
       
  9950                 IN_param_value->accept(*this);
       
  9951                 s4o.print(")");
       
  9952                 return NULL;
       
  9953                 
       
  9954             }
       
  9955             
       
  9956             ERROR;
       
  9957         }
       
  9958         
       
  9959     }/*function_string_to_usint*/
       
  9960     break;
       
  9961 
       
  9962 /****
       
  9963  *STRING_TO_UINT
       
  9964  */
       
  9965     case function_string_to_uint :
       
  9966     {
       
  9967         symbol_c *last_type_symbol = NULL;
       
  9968 
       
  9969         {
       
  9970             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
  9971             symbol_c *IN_param_value = &this->default_variable_name;
       
  9972         
       
  9973             symbol_c *IN_type_symbol = param_data_type;
       
  9974             last_type_symbol = param_data_type;
       
  9975             
       
  9976             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
  9977             {
       
  9978         
       
  9979                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
  9980                 s4o.print("(");
       
  9981                 return_type_symbol->accept(*this);
       
  9982                 s4o.print(")__string_to_uint(");
       
  9983                 IN_param_value->accept(*this);
       
  9984                 s4o.print(")");
       
  9985                 return NULL;
       
  9986                 
       
  9987             }
       
  9988             
       
  9989             ERROR;
       
  9990         }
       
  9991         
       
  9992     }/*function_string_to_uint*/
       
  9993     break;
       
  9994 
       
  9995 /****
       
  9996  *STRING_TO_UDINT
       
  9997  */
       
  9998     case function_string_to_udint :
       
  9999     {
       
 10000         symbol_c *last_type_symbol = NULL;
       
 10001 
       
 10002         {
       
 10003             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10004             symbol_c *IN_param_value = &this->default_variable_name;
       
 10005         
       
 10006             symbol_c *IN_type_symbol = param_data_type;
       
 10007             last_type_symbol = param_data_type;
       
 10008             
       
 10009             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10010             {
       
 10011         
       
 10012                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
 10013                 s4o.print("(");
       
 10014                 return_type_symbol->accept(*this);
       
 10015                 s4o.print(")__string_to_uint(");
       
 10016                 IN_param_value->accept(*this);
       
 10017                 s4o.print(")");
       
 10018                 return NULL;
       
 10019                 
       
 10020             }
       
 10021             
       
 10022             ERROR;
       
 10023         }
       
 10024         
       
 10025     }/*function_string_to_udint*/
       
 10026     break;
       
 10027 
       
 10028 /****
       
 10029  *STRING_TO_ULINT
       
 10030  */
       
 10031     case function_string_to_ulint :
       
 10032     {
       
 10033         symbol_c *last_type_symbol = NULL;
       
 10034 
       
 10035         {
       
 10036             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10037             symbol_c *IN_param_value = &this->default_variable_name;
       
 10038         
       
 10039             symbol_c *IN_type_symbol = param_data_type;
       
 10040             last_type_symbol = param_data_type;
       
 10041             
       
 10042             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10043             {
       
 10044         
       
 10045                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
 10046                 s4o.print("(");
       
 10047                 return_type_symbol->accept(*this);
       
 10048                 s4o.print(")__string_to_uint(");
       
 10049                 IN_param_value->accept(*this);
       
 10050                 s4o.print(")");
       
 10051                 return NULL;
       
 10052                 
       
 10053             }
       
 10054             
       
 10055             ERROR;
       
 10056         }
       
 10057         
       
 10058     }/*function_string_to_ulint*/
       
 10059     break;
       
 10060 
       
 10061 /****
       
 10062  *STRING_TO_TIME
       
 10063  */
       
 10064     case function_string_to_time :
       
 10065     {
       
 10066         symbol_c *last_type_symbol = NULL;
       
 10067 
       
 10068         {
       
 10069             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10070             symbol_c *IN_param_value = &this->default_variable_name;
       
 10071         
       
 10072             symbol_c *IN_type_symbol = param_data_type;
       
 10073             last_type_symbol = param_data_type;
       
 10074             
       
 10075             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10076             {
       
 10077         
       
 10078                 symbol_c * return_type_symbol = &search_constant_type_c::time_type_name;
       
 10079                 s4o.print("(");
       
 10080                 return_type_symbol->accept(*this);
       
 10081                 s4o.print(")__string_to_time(");
       
 10082                 IN_param_value->accept(*this);
       
 10083                 s4o.print(")");
       
 10084                 return NULL;
       
 10085                 
       
 10086             }
       
 10087             
       
 10088             ERROR;
       
 10089         }
       
 10090         
       
 10091     }/*function_string_to_time*/
       
 10092     break;
       
 10093 
       
 10094 /****
       
 10095  *STRING_TO_BOOL
       
 10096  */
       
 10097     case function_string_to_bool :
       
 10098     {
       
 10099         symbol_c *last_type_symbol = NULL;
       
 10100 
       
 10101         {
       
 10102             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10103             symbol_c *IN_param_value = &this->default_variable_name;
       
 10104         
       
 10105             symbol_c *IN_type_symbol = param_data_type;
       
 10106             last_type_symbol = param_data_type;
       
 10107             
       
 10108             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10109             {
       
 10110         
       
 10111                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
 10112                 s4o.print("(");
       
 10113                 return_type_symbol->accept(*this);
       
 10114                 s4o.print(")__string_to_bool(");
       
 10115                 IN_param_value->accept(*this);
       
 10116                 s4o.print(")");
       
 10117                 return NULL;
       
 10118                 
       
 10119             }
       
 10120             
       
 10121             ERROR;
       
 10122         }
       
 10123         
       
 10124     }/*function_string_to_bool*/
       
 10125     break;
       
 10126 
       
 10127 /****
       
 10128  *STRING_TO_BYTE
       
 10129  */
       
 10130     case function_string_to_byte :
       
 10131     {
       
 10132         symbol_c *last_type_symbol = NULL;
       
 10133 
       
 10134         {
       
 10135             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10136             symbol_c *IN_param_value = &this->default_variable_name;
       
 10137         
       
 10138             symbol_c *IN_type_symbol = param_data_type;
       
 10139             last_type_symbol = param_data_type;
       
 10140             
       
 10141             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10142             {
       
 10143         
       
 10144                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
 10145                 s4o.print("(");
       
 10146                 return_type_symbol->accept(*this);
       
 10147                 s4o.print(")__string_to_bit(");
       
 10148                 IN_param_value->accept(*this);
       
 10149                 s4o.print(")");
       
 10150                 return NULL;
       
 10151                 
       
 10152             }
       
 10153             
       
 10154             ERROR;
       
 10155         }
       
 10156         
       
 10157     }/*function_string_to_byte*/
       
 10158     break;
       
 10159 
       
 10160 /****
       
 10161  *STRING_TO_WORD
       
 10162  */
       
 10163     case function_string_to_word :
       
 10164     {
       
 10165         symbol_c *last_type_symbol = NULL;
       
 10166 
       
 10167         {
       
 10168             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10169             symbol_c *IN_param_value = &this->default_variable_name;
       
 10170         
       
 10171             symbol_c *IN_type_symbol = param_data_type;
       
 10172             last_type_symbol = param_data_type;
       
 10173             
       
 10174             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10175             {
       
 10176         
       
 10177                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
 10178                 s4o.print("(");
       
 10179                 return_type_symbol->accept(*this);
       
 10180                 s4o.print(")__string_to_bit(");
       
 10181                 IN_param_value->accept(*this);
       
 10182                 s4o.print(")");
       
 10183                 return NULL;
       
 10184                 
       
 10185             }
       
 10186             
       
 10187             ERROR;
       
 10188         }
       
 10189         
       
 10190     }/*function_string_to_word*/
       
 10191     break;
       
 10192 
       
 10193 /****
       
 10194  *STRING_TO_DWORD
       
 10195  */
       
 10196     case function_string_to_dword :
       
 10197     {
       
 10198         symbol_c *last_type_symbol = NULL;
       
 10199 
       
 10200         {
       
 10201             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10202             symbol_c *IN_param_value = &this->default_variable_name;
       
 10203         
       
 10204             symbol_c *IN_type_symbol = param_data_type;
       
 10205             last_type_symbol = param_data_type;
       
 10206             
       
 10207             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10208             {
       
 10209         
       
 10210                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
 10211                 s4o.print("(");
       
 10212                 return_type_symbol->accept(*this);
       
 10213                 s4o.print(")__string_to_bit(");
       
 10214                 IN_param_value->accept(*this);
       
 10215                 s4o.print(")");
       
 10216                 return NULL;
       
 10217                 
       
 10218             }
       
 10219             
       
 10220             ERROR;
       
 10221         }
       
 10222         
       
 10223     }/*function_string_to_dword*/
       
 10224     break;
       
 10225 
       
 10226 /****
       
 10227  *STRING_TO_LWORD
       
 10228  */
       
 10229     case function_string_to_lword :
       
 10230     {
       
 10231         symbol_c *last_type_symbol = NULL;
       
 10232 
       
 10233         {
       
 10234             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10235             symbol_c *IN_param_value = &this->default_variable_name;
       
 10236         
       
 10237             symbol_c *IN_type_symbol = param_data_type;
       
 10238             last_type_symbol = param_data_type;
       
 10239             
       
 10240             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10241             {
       
 10242         
       
 10243                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
 10244                 s4o.print("(");
       
 10245                 return_type_symbol->accept(*this);
       
 10246                 s4o.print(")__string_to_bit(");
       
 10247                 IN_param_value->accept(*this);
       
 10248                 s4o.print(")");
       
 10249                 return NULL;
       
 10250                 
       
 10251             }
       
 10252             
       
 10253             ERROR;
       
 10254         }
       
 10255         
       
 10256     }/*function_string_to_lword*/
       
 10257     break;
       
 10258 
       
 10259 /****
       
 10260  *STRING_TO_DATE
       
 10261  */
       
 10262     case function_string_to_date :
       
 10263     {
       
 10264         symbol_c *last_type_symbol = NULL;
       
 10265 
       
 10266         {
       
 10267             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10268             symbol_c *IN_param_value = &this->default_variable_name;
       
 10269         
       
 10270             symbol_c *IN_type_symbol = param_data_type;
       
 10271             last_type_symbol = param_data_type;
       
 10272             
       
 10273             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10274             {
       
 10275         
       
 10276                 symbol_c * return_type_symbol = &search_constant_type_c::date_type_name;
       
 10277                 s4o.print("(");
       
 10278                 return_type_symbol->accept(*this);
       
 10279                 s4o.print(")__string_to_time(");
       
 10280                 IN_param_value->accept(*this);
       
 10281                 s4o.print(")");
       
 10282                 return NULL;
       
 10283                 
       
 10284             }
       
 10285             
       
 10286             ERROR;
       
 10287         }
       
 10288         
       
 10289     }/*function_string_to_date*/
       
 10290     break;
       
 10291 
       
 10292 /****
       
 10293  *STRING_TO_TOD
       
 10294  */
       
 10295     case function_string_to_tod :
       
 10296     {
       
 10297         symbol_c *last_type_symbol = NULL;
       
 10298 
       
 10299         {
       
 10300             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10301             symbol_c *IN_param_value = &this->default_variable_name;
       
 10302         
       
 10303             symbol_c *IN_type_symbol = param_data_type;
       
 10304             last_type_symbol = param_data_type;
       
 10305             
       
 10306             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10307             {
       
 10308         
       
 10309                 symbol_c * return_type_symbol = &search_constant_type_c::tod_type_name;
       
 10310                 s4o.print("(");
       
 10311                 return_type_symbol->accept(*this);
       
 10312                 s4o.print(")__string_to_time(");
       
 10313                 IN_param_value->accept(*this);
       
 10314                 s4o.print(")");
       
 10315                 return NULL;
       
 10316                 
       
 10317             }
       
 10318             
       
 10319             ERROR;
       
 10320         }
       
 10321         
       
 10322     }/*function_string_to_tod*/
       
 10323     break;
       
 10324 
       
 10325 /****
       
 10326  *STRING_TO_DT
       
 10327  */
       
 10328     case function_string_to_dt :
       
 10329     {
       
 10330         symbol_c *last_type_symbol = NULL;
       
 10331 
       
 10332         {
       
 10333             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10334             symbol_c *IN_param_value = &this->default_variable_name;
       
 10335         
       
 10336             symbol_c *IN_type_symbol = param_data_type;
       
 10337             last_type_symbol = param_data_type;
       
 10338             
       
 10339             if (typeid(*last_type_symbol) == typeid(string_type_name_c))
       
 10340             {
       
 10341         
       
 10342                 symbol_c * return_type_symbol = &search_constant_type_c::dt_type_name;
       
 10343                 s4o.print("(");
       
 10344                 return_type_symbol->accept(*this);
       
 10345                 s4o.print(")__string_to_time(");
       
 10346                 IN_param_value->accept(*this);
       
 10347                 s4o.print(")");
       
 10348                 return NULL;
       
 10349                 
       
 10350             }
       
 10351             
       
 10352             ERROR;
       
 10353         }
       
 10354         
       
 10355     }/*function_string_to_dt*/
       
 10356     break;
       
 10357 
       
 10358 /****
       
 10359  *DATE_TO_REAL
       
 10360  */
       
 10361     case function_date_to_real :
       
 10362     {
       
 10363         symbol_c *last_type_symbol = NULL;
       
 10364 
       
 10365         {
       
 10366             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10367             symbol_c *IN_param_value = &this->default_variable_name;
       
 10368         
       
 10369             symbol_c *IN_type_symbol = param_data_type;
       
 10370             last_type_symbol = param_data_type;
       
 10371             
       
 10372             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10373             {
       
 10374         
       
 10375                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
 10376                 s4o.print("(");
       
 10377                 return_type_symbol->accept(*this);
       
 10378                 s4o.print(")__time_to_real(");
       
 10379                 IN_param_value->accept(*this);
       
 10380                 s4o.print(")");
       
 10381                 return NULL;
       
 10382                 
       
 10383             }
       
 10384             
       
 10385             ERROR;
       
 10386         }
       
 10387         
       
 10388     }/*function_date_to_real*/
       
 10389     break;
       
 10390 
       
 10391 /****
       
 10392  *DATE_TO_LREAL
       
 10393  */
       
 10394     case function_date_to_lreal :
       
 10395     {
       
 10396         symbol_c *last_type_symbol = NULL;
       
 10397 
       
 10398         {
       
 10399             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10400             symbol_c *IN_param_value = &this->default_variable_name;
       
 10401         
       
 10402             symbol_c *IN_type_symbol = param_data_type;
       
 10403             last_type_symbol = param_data_type;
       
 10404             
       
 10405             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10406             {
       
 10407         
       
 10408                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
 10409                 s4o.print("(");
       
 10410                 return_type_symbol->accept(*this);
       
 10411                 s4o.print(")__time_to_real(");
       
 10412                 IN_param_value->accept(*this);
       
 10413                 s4o.print(")");
       
 10414                 return NULL;
       
 10415                 
       
 10416             }
       
 10417             
       
 10418             ERROR;
       
 10419         }
       
 10420         
       
 10421     }/*function_date_to_lreal*/
       
 10422     break;
       
 10423 
       
 10424 /****
       
 10425  *DATE_TO_SINT
       
 10426  */
       
 10427     case function_date_to_sint :
       
 10428     {
       
 10429         symbol_c *last_type_symbol = NULL;
       
 10430 
       
 10431         {
       
 10432             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10433             symbol_c *IN_param_value = &this->default_variable_name;
       
 10434         
       
 10435             symbol_c *IN_type_symbol = param_data_type;
       
 10436             last_type_symbol = param_data_type;
       
 10437             
       
 10438             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10439             {
       
 10440         
       
 10441                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
 10442                 s4o.print("(");
       
 10443                 return_type_symbol->accept(*this);
       
 10444                 s4o.print(")__time_to_int(");
       
 10445                 IN_param_value->accept(*this);
       
 10446                 s4o.print(")");
       
 10447                 return NULL;
       
 10448                 
       
 10449             }
       
 10450             
       
 10451             ERROR;
       
 10452         }
       
 10453         
       
 10454     }/*function_date_to_sint*/
       
 10455     break;
       
 10456 
       
 10457 /****
       
 10458  *DATE_TO_INT
       
 10459  */
       
 10460     case function_date_to_int :
       
 10461     {
       
 10462         symbol_c *last_type_symbol = NULL;
       
 10463 
       
 10464         {
       
 10465             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10466             symbol_c *IN_param_value = &this->default_variable_name;
       
 10467         
       
 10468             symbol_c *IN_type_symbol = param_data_type;
       
 10469             last_type_symbol = param_data_type;
       
 10470             
       
 10471             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10472             {
       
 10473         
       
 10474                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
 10475                 s4o.print("(");
       
 10476                 return_type_symbol->accept(*this);
       
 10477                 s4o.print(")__time_to_int(");
       
 10478                 IN_param_value->accept(*this);
       
 10479                 s4o.print(")");
       
 10480                 return NULL;
       
 10481                 
       
 10482             }
       
 10483             
       
 10484             ERROR;
       
 10485         }
       
 10486         
       
 10487     }/*function_date_to_int*/
       
 10488     break;
       
 10489 
       
 10490 /****
       
 10491  *DATE_TO_DINT
       
 10492  */
       
 10493     case function_date_to_dint :
       
 10494     {
       
 10495         symbol_c *last_type_symbol = NULL;
       
 10496 
       
 10497         {
       
 10498             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10499             symbol_c *IN_param_value = &this->default_variable_name;
       
 10500         
       
 10501             symbol_c *IN_type_symbol = param_data_type;
       
 10502             last_type_symbol = param_data_type;
       
 10503             
       
 10504             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10505             {
       
 10506         
       
 10507                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
 10508                 s4o.print("(");
       
 10509                 return_type_symbol->accept(*this);
       
 10510                 s4o.print(")__time_to_int(");
       
 10511                 IN_param_value->accept(*this);
       
 10512                 s4o.print(")");
       
 10513                 return NULL;
       
 10514                 
       
 10515             }
       
 10516             
       
 10517             ERROR;
       
 10518         }
       
 10519         
       
 10520     }/*function_date_to_dint*/
       
 10521     break;
       
 10522 
       
 10523 /****
       
 10524  *DATE_TO_LINT
       
 10525  */
       
 10526     case function_date_to_lint :
       
 10527     {
       
 10528         symbol_c *last_type_symbol = NULL;
       
 10529 
       
 10530         {
       
 10531             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10532             symbol_c *IN_param_value = &this->default_variable_name;
       
 10533         
       
 10534             symbol_c *IN_type_symbol = param_data_type;
       
 10535             last_type_symbol = param_data_type;
       
 10536             
       
 10537             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10538             {
       
 10539         
       
 10540                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
 10541                 s4o.print("(");
       
 10542                 return_type_symbol->accept(*this);
       
 10543                 s4o.print(")__time_to_int(");
       
 10544                 IN_param_value->accept(*this);
       
 10545                 s4o.print(")");
       
 10546                 return NULL;
       
 10547                 
       
 10548             }
       
 10549             
       
 10550             ERROR;
       
 10551         }
       
 10552         
       
 10553     }/*function_date_to_lint*/
       
 10554     break;
       
 10555 
       
 10556 /****
       
 10557  *DATE_TO_USINT
       
 10558  */
       
 10559     case function_date_to_usint :
       
 10560     {
       
 10561         symbol_c *last_type_symbol = NULL;
       
 10562 
       
 10563         {
       
 10564             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10565             symbol_c *IN_param_value = &this->default_variable_name;
       
 10566         
       
 10567             symbol_c *IN_type_symbol = param_data_type;
       
 10568             last_type_symbol = param_data_type;
       
 10569             
       
 10570             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10571             {
       
 10572         
       
 10573                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
 10574                 s4o.print("(");
       
 10575                 return_type_symbol->accept(*this);
       
 10576                 s4o.print(")__time_to_int(");
       
 10577                 IN_param_value->accept(*this);
       
 10578                 s4o.print(")");
       
 10579                 return NULL;
       
 10580                 
       
 10581             }
       
 10582             
       
 10583             ERROR;
       
 10584         }
       
 10585         
       
 10586     }/*function_date_to_usint*/
       
 10587     break;
       
 10588 
       
 10589 /****
       
 10590  *DATE_TO_UINT
       
 10591  */
       
 10592     case function_date_to_uint :
       
 10593     {
       
 10594         symbol_c *last_type_symbol = NULL;
       
 10595 
       
 10596         {
       
 10597             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10598             symbol_c *IN_param_value = &this->default_variable_name;
       
 10599         
       
 10600             symbol_c *IN_type_symbol = param_data_type;
       
 10601             last_type_symbol = param_data_type;
       
 10602             
       
 10603             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10604             {
       
 10605         
       
 10606                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
 10607                 s4o.print("(");
       
 10608                 return_type_symbol->accept(*this);
       
 10609                 s4o.print(")__time_to_int(");
       
 10610                 IN_param_value->accept(*this);
       
 10611                 s4o.print(")");
       
 10612                 return NULL;
       
 10613                 
       
 10614             }
       
 10615             
       
 10616             ERROR;
       
 10617         }
       
 10618         
       
 10619     }/*function_date_to_uint*/
       
 10620     break;
       
 10621 
       
 10622 /****
       
 10623  *DATE_TO_UDINT
       
 10624  */
       
 10625     case function_date_to_udint :
       
 10626     {
       
 10627         symbol_c *last_type_symbol = NULL;
       
 10628 
       
 10629         {
       
 10630             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10631             symbol_c *IN_param_value = &this->default_variable_name;
       
 10632         
       
 10633             symbol_c *IN_type_symbol = param_data_type;
       
 10634             last_type_symbol = param_data_type;
       
 10635             
       
 10636             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10637             {
       
 10638         
       
 10639                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
 10640                 s4o.print("(");
       
 10641                 return_type_symbol->accept(*this);
       
 10642                 s4o.print(")__time_to_int(");
       
 10643                 IN_param_value->accept(*this);
       
 10644                 s4o.print(")");
       
 10645                 return NULL;
       
 10646                 
       
 10647             }
       
 10648             
       
 10649             ERROR;
       
 10650         }
       
 10651         
       
 10652     }/*function_date_to_udint*/
       
 10653     break;
       
 10654 
       
 10655 /****
       
 10656  *DATE_TO_ULINT
       
 10657  */
       
 10658     case function_date_to_ulint :
       
 10659     {
       
 10660         symbol_c *last_type_symbol = NULL;
       
 10661 
       
 10662         {
       
 10663             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10664             symbol_c *IN_param_value = &this->default_variable_name;
       
 10665         
       
 10666             symbol_c *IN_type_symbol = param_data_type;
       
 10667             last_type_symbol = param_data_type;
       
 10668             
       
 10669             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10670             {
       
 10671         
       
 10672                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
 10673                 s4o.print("(");
       
 10674                 return_type_symbol->accept(*this);
       
 10675                 s4o.print(")__time_to_int(");
       
 10676                 IN_param_value->accept(*this);
       
 10677                 s4o.print(")");
       
 10678                 return NULL;
       
 10679                 
       
 10680             }
       
 10681             
       
 10682             ERROR;
       
 10683         }
       
 10684         
       
 10685     }/*function_date_to_ulint*/
       
 10686     break;
       
 10687 
       
 10688 /****
       
 10689  *DATE_TO_BOOL
       
 10690  */
       
 10691     case function_date_to_bool :
       
 10692     {
       
 10693         symbol_c *last_type_symbol = NULL;
       
 10694 
       
 10695         {
       
 10696             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10697             symbol_c *IN_param_value = &this->default_variable_name;
       
 10698         
       
 10699             symbol_c *IN_type_symbol = param_data_type;
       
 10700             last_type_symbol = param_data_type;
       
 10701             
       
 10702             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10703             {
       
 10704         
       
 10705                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
 10706                 s4o.print("(");
       
 10707                 return_type_symbol->accept(*this);
       
 10708                 s4o.print(")__time_to_int(");
       
 10709                 IN_param_value->accept(*this);
       
 10710                 s4o.print(")");
       
 10711                 return NULL;
       
 10712                 
       
 10713             }
       
 10714             
       
 10715             ERROR;
       
 10716         }
       
 10717         
       
 10718     }/*function_date_to_bool*/
       
 10719     break;
       
 10720 
       
 10721 /****
       
 10722  *DATE_TO_BYTE
       
 10723  */
       
 10724     case function_date_to_byte :
       
 10725     {
       
 10726         symbol_c *last_type_symbol = NULL;
       
 10727 
       
 10728         {
       
 10729             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10730             symbol_c *IN_param_value = &this->default_variable_name;
       
 10731         
       
 10732             symbol_c *IN_type_symbol = param_data_type;
       
 10733             last_type_symbol = param_data_type;
       
 10734             
       
 10735             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10736             {
       
 10737         
       
 10738                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
 10739                 s4o.print("(");
       
 10740                 return_type_symbol->accept(*this);
       
 10741                 s4o.print(")__time_to_int(");
       
 10742                 IN_param_value->accept(*this);
       
 10743                 s4o.print(")");
       
 10744                 return NULL;
       
 10745                 
       
 10746             }
       
 10747             
       
 10748             ERROR;
       
 10749         }
       
 10750         
       
 10751     }/*function_date_to_byte*/
       
 10752     break;
       
 10753 
       
 10754 /****
       
 10755  *DATE_TO_WORD
       
 10756  */
       
 10757     case function_date_to_word :
       
 10758     {
       
 10759         symbol_c *last_type_symbol = NULL;
       
 10760 
       
 10761         {
       
 10762             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10763             symbol_c *IN_param_value = &this->default_variable_name;
       
 10764         
       
 10765             symbol_c *IN_type_symbol = param_data_type;
       
 10766             last_type_symbol = param_data_type;
       
 10767             
       
 10768             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10769             {
       
 10770         
       
 10771                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
 10772                 s4o.print("(");
       
 10773                 return_type_symbol->accept(*this);
       
 10774                 s4o.print(")__time_to_int(");
       
 10775                 IN_param_value->accept(*this);
       
 10776                 s4o.print(")");
       
 10777                 return NULL;
       
 10778                 
       
 10779             }
       
 10780             
       
 10781             ERROR;
       
 10782         }
       
 10783         
       
 10784     }/*function_date_to_word*/
       
 10785     break;
       
 10786 
       
 10787 /****
       
 10788  *DATE_TO_DWORD
       
 10789  */
       
 10790     case function_date_to_dword :
       
 10791     {
       
 10792         symbol_c *last_type_symbol = NULL;
       
 10793 
       
 10794         {
       
 10795             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10796             symbol_c *IN_param_value = &this->default_variable_name;
       
 10797         
       
 10798             symbol_c *IN_type_symbol = param_data_type;
       
 10799             last_type_symbol = param_data_type;
       
 10800             
       
 10801             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10802             {
       
 10803         
       
 10804                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
 10805                 s4o.print("(");
       
 10806                 return_type_symbol->accept(*this);
       
 10807                 s4o.print(")__time_to_int(");
       
 10808                 IN_param_value->accept(*this);
       
 10809                 s4o.print(")");
       
 10810                 return NULL;
       
 10811                 
       
 10812             }
       
 10813             
       
 10814             ERROR;
       
 10815         }
       
 10816         
       
 10817     }/*function_date_to_dword*/
       
 10818     break;
       
 10819 
       
 10820 /****
       
 10821  *DATE_TO_LWORD
       
 10822  */
       
 10823     case function_date_to_lword :
       
 10824     {
       
 10825         symbol_c *last_type_symbol = NULL;
       
 10826 
       
 10827         {
       
 10828             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10829             symbol_c *IN_param_value = &this->default_variable_name;
       
 10830         
       
 10831             symbol_c *IN_type_symbol = param_data_type;
       
 10832             last_type_symbol = param_data_type;
       
 10833             
       
 10834             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10835             {
       
 10836         
       
 10837                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
 10838                 s4o.print("(");
       
 10839                 return_type_symbol->accept(*this);
       
 10840                 s4o.print(")__time_to_int(");
       
 10841                 IN_param_value->accept(*this);
       
 10842                 s4o.print(")");
       
 10843                 return NULL;
       
 10844                 
       
 10845             }
       
 10846             
       
 10847             ERROR;
       
 10848         }
       
 10849         
       
 10850     }/*function_date_to_lword*/
       
 10851     break;
       
 10852 
       
 10853 /****
       
 10854  *DATE_TO_STRING
       
 10855  */
       
 10856     case function_date_to_string :
       
 10857     {
       
 10858         symbol_c *last_type_symbol = NULL;
       
 10859 
       
 10860         {
       
 10861             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10862             symbol_c *IN_param_value = &this->default_variable_name;
       
 10863         
       
 10864             symbol_c *IN_type_symbol = param_data_type;
       
 10865             last_type_symbol = param_data_type;
       
 10866             
       
 10867             if (typeid(*last_type_symbol) == typeid(date_type_name_c))
       
 10868             {
       
 10869         
       
 10870                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
 10871                 s4o.print("(");
       
 10872                 return_type_symbol->accept(*this);
       
 10873                 s4o.print(")__date_to_string(");
       
 10874                 IN_param_value->accept(*this);
       
 10875                 s4o.print(")");
       
 10876                 return NULL;
       
 10877                 
       
 10878             }
       
 10879             
       
 10880             ERROR;
       
 10881         }
       
 10882         
       
 10883     }/*function_date_to_string*/
       
 10884     break;
       
 10885 
       
 10886 /****
       
 10887  *TOD_TO_REAL
       
 10888  */
       
 10889     case function_tod_to_real :
       
 10890     {
       
 10891         symbol_c *last_type_symbol = NULL;
       
 10892 
       
 10893         {
       
 10894             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10895             symbol_c *IN_param_value = &this->default_variable_name;
       
 10896         
       
 10897             symbol_c *IN_type_symbol = param_data_type;
       
 10898             last_type_symbol = param_data_type;
       
 10899             
       
 10900             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 10901             {
       
 10902         
       
 10903                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
 10904                 s4o.print("(");
       
 10905                 return_type_symbol->accept(*this);
       
 10906                 s4o.print(")__time_to_real(");
       
 10907                 IN_param_value->accept(*this);
       
 10908                 s4o.print(")");
       
 10909                 return NULL;
       
 10910                 
       
 10911             }
       
 10912             
       
 10913             ERROR;
       
 10914         }
       
 10915         
       
 10916     }/*function_tod_to_real*/
       
 10917     break;
       
 10918 
       
 10919 /****
       
 10920  *TOD_TO_LREAL
       
 10921  */
       
 10922     case function_tod_to_lreal :
       
 10923     {
       
 10924         symbol_c *last_type_symbol = NULL;
       
 10925 
       
 10926         {
       
 10927             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10928             symbol_c *IN_param_value = &this->default_variable_name;
       
 10929         
       
 10930             symbol_c *IN_type_symbol = param_data_type;
       
 10931             last_type_symbol = param_data_type;
       
 10932             
       
 10933             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 10934             {
       
 10935         
       
 10936                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
 10937                 s4o.print("(");
       
 10938                 return_type_symbol->accept(*this);
       
 10939                 s4o.print(")__time_to_real(");
       
 10940                 IN_param_value->accept(*this);
       
 10941                 s4o.print(")");
       
 10942                 return NULL;
       
 10943                 
       
 10944             }
       
 10945             
       
 10946             ERROR;
       
 10947         }
       
 10948         
       
 10949     }/*function_tod_to_lreal*/
       
 10950     break;
       
 10951 
       
 10952 /****
       
 10953  *TOD_TO_SINT
       
 10954  */
       
 10955     case function_tod_to_sint :
       
 10956     {
       
 10957         symbol_c *last_type_symbol = NULL;
       
 10958 
       
 10959         {
       
 10960             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10961             symbol_c *IN_param_value = &this->default_variable_name;
       
 10962         
       
 10963             symbol_c *IN_type_symbol = param_data_type;
       
 10964             last_type_symbol = param_data_type;
       
 10965             
       
 10966             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 10967             {
       
 10968         
       
 10969                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
 10970                 s4o.print("(");
       
 10971                 return_type_symbol->accept(*this);
       
 10972                 s4o.print(")__time_to_int(");
       
 10973                 IN_param_value->accept(*this);
       
 10974                 s4o.print(")");
       
 10975                 return NULL;
       
 10976                 
       
 10977             }
       
 10978             
       
 10979             ERROR;
       
 10980         }
       
 10981         
       
 10982     }/*function_tod_to_sint*/
       
 10983     break;
       
 10984 
       
 10985 /****
       
 10986  *TOD_TO_INT
       
 10987  */
       
 10988     case function_tod_to_int :
       
 10989     {
       
 10990         symbol_c *last_type_symbol = NULL;
       
 10991 
       
 10992         {
       
 10993             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 10994             symbol_c *IN_param_value = &this->default_variable_name;
       
 10995         
       
 10996             symbol_c *IN_type_symbol = param_data_type;
       
 10997             last_type_symbol = param_data_type;
       
 10998             
       
 10999             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11000             {
       
 11001         
       
 11002                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
 11003                 s4o.print("(");
       
 11004                 return_type_symbol->accept(*this);
       
 11005                 s4o.print(")__time_to_int(");
       
 11006                 IN_param_value->accept(*this);
       
 11007                 s4o.print(")");
       
 11008                 return NULL;
       
 11009                 
       
 11010             }
       
 11011             
       
 11012             ERROR;
       
 11013         }
       
 11014         
       
 11015     }/*function_tod_to_int*/
       
 11016     break;
       
 11017 
       
 11018 /****
       
 11019  *TOD_TO_DINT
       
 11020  */
       
 11021     case function_tod_to_dint :
       
 11022     {
       
 11023         symbol_c *last_type_symbol = NULL;
       
 11024 
       
 11025         {
       
 11026             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11027             symbol_c *IN_param_value = &this->default_variable_name;
       
 11028         
       
 11029             symbol_c *IN_type_symbol = param_data_type;
       
 11030             last_type_symbol = param_data_type;
       
 11031             
       
 11032             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11033             {
       
 11034         
       
 11035                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
 11036                 s4o.print("(");
       
 11037                 return_type_symbol->accept(*this);
       
 11038                 s4o.print(")__time_to_int(");
       
 11039                 IN_param_value->accept(*this);
       
 11040                 s4o.print(")");
       
 11041                 return NULL;
       
 11042                 
       
 11043             }
       
 11044             
       
 11045             ERROR;
       
 11046         }
       
 11047         
       
 11048     }/*function_tod_to_dint*/
       
 11049     break;
       
 11050 
       
 11051 /****
       
 11052  *TOD_TO_LINT
       
 11053  */
       
 11054     case function_tod_to_lint :
       
 11055     {
       
 11056         symbol_c *last_type_symbol = NULL;
       
 11057 
       
 11058         {
       
 11059             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11060             symbol_c *IN_param_value = &this->default_variable_name;
       
 11061         
       
 11062             symbol_c *IN_type_symbol = param_data_type;
       
 11063             last_type_symbol = param_data_type;
       
 11064             
       
 11065             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11066             {
       
 11067         
       
 11068                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
 11069                 s4o.print("(");
       
 11070                 return_type_symbol->accept(*this);
       
 11071                 s4o.print(")__time_to_int(");
       
 11072                 IN_param_value->accept(*this);
       
 11073                 s4o.print(")");
       
 11074                 return NULL;
       
 11075                 
       
 11076             }
       
 11077             
       
 11078             ERROR;
       
 11079         }
       
 11080         
       
 11081     }/*function_tod_to_lint*/
       
 11082     break;
       
 11083 
       
 11084 /****
       
 11085  *TOD_TO_USINT
       
 11086  */
       
 11087     case function_tod_to_usint :
       
 11088     {
       
 11089         symbol_c *last_type_symbol = NULL;
       
 11090 
       
 11091         {
       
 11092             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11093             symbol_c *IN_param_value = &this->default_variable_name;
       
 11094         
       
 11095             symbol_c *IN_type_symbol = param_data_type;
       
 11096             last_type_symbol = param_data_type;
       
 11097             
       
 11098             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11099             {
       
 11100         
       
 11101                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
 11102                 s4o.print("(");
       
 11103                 return_type_symbol->accept(*this);
       
 11104                 s4o.print(")__time_to_int(");
       
 11105                 IN_param_value->accept(*this);
       
 11106                 s4o.print(")");
       
 11107                 return NULL;
       
 11108                 
       
 11109             }
       
 11110             
       
 11111             ERROR;
       
 11112         }
       
 11113         
       
 11114     }/*function_tod_to_usint*/
       
 11115     break;
       
 11116 
       
 11117 /****
       
 11118  *TOD_TO_UINT
       
 11119  */
       
 11120     case function_tod_to_uint :
       
 11121     {
       
 11122         symbol_c *last_type_symbol = NULL;
       
 11123 
       
 11124         {
       
 11125             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11126             symbol_c *IN_param_value = &this->default_variable_name;
       
 11127         
       
 11128             symbol_c *IN_type_symbol = param_data_type;
       
 11129             last_type_symbol = param_data_type;
       
 11130             
       
 11131             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11132             {
       
 11133         
       
 11134                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
 11135                 s4o.print("(");
       
 11136                 return_type_symbol->accept(*this);
       
 11137                 s4o.print(")__time_to_int(");
       
 11138                 IN_param_value->accept(*this);
       
 11139                 s4o.print(")");
       
 11140                 return NULL;
       
 11141                 
       
 11142             }
       
 11143             
       
 11144             ERROR;
       
 11145         }
       
 11146         
       
 11147     }/*function_tod_to_uint*/
       
 11148     break;
       
 11149 
       
 11150 /****
       
 11151  *TOD_TO_UDINT
       
 11152  */
       
 11153     case function_tod_to_udint :
       
 11154     {
       
 11155         symbol_c *last_type_symbol = NULL;
       
 11156 
       
 11157         {
       
 11158             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11159             symbol_c *IN_param_value = &this->default_variable_name;
       
 11160         
       
 11161             symbol_c *IN_type_symbol = param_data_type;
       
 11162             last_type_symbol = param_data_type;
       
 11163             
       
 11164             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11165             {
       
 11166         
       
 11167                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
 11168                 s4o.print("(");
       
 11169                 return_type_symbol->accept(*this);
       
 11170                 s4o.print(")__time_to_int(");
       
 11171                 IN_param_value->accept(*this);
       
 11172                 s4o.print(")");
       
 11173                 return NULL;
       
 11174                 
       
 11175             }
       
 11176             
       
 11177             ERROR;
       
 11178         }
       
 11179         
       
 11180     }/*function_tod_to_udint*/
       
 11181     break;
       
 11182 
       
 11183 /****
       
 11184  *TOD_TO_ULINT
       
 11185  */
       
 11186     case function_tod_to_ulint :
       
 11187     {
       
 11188         symbol_c *last_type_symbol = NULL;
       
 11189 
       
 11190         {
       
 11191             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11192             symbol_c *IN_param_value = &this->default_variable_name;
       
 11193         
       
 11194             symbol_c *IN_type_symbol = param_data_type;
       
 11195             last_type_symbol = param_data_type;
       
 11196             
       
 11197             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11198             {
       
 11199         
       
 11200                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
 11201                 s4o.print("(");
       
 11202                 return_type_symbol->accept(*this);
       
 11203                 s4o.print(")__time_to_int(");
       
 11204                 IN_param_value->accept(*this);
       
 11205                 s4o.print(")");
       
 11206                 return NULL;
       
 11207                 
       
 11208             }
       
 11209             
       
 11210             ERROR;
       
 11211         }
       
 11212         
       
 11213     }/*function_tod_to_ulint*/
       
 11214     break;
       
 11215 
       
 11216 /****
       
 11217  *TOD_TO_BOOL
       
 11218  */
       
 11219     case function_tod_to_bool :
       
 11220     {
       
 11221         symbol_c *last_type_symbol = NULL;
       
 11222 
       
 11223         {
       
 11224             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11225             symbol_c *IN_param_value = &this->default_variable_name;
       
 11226         
       
 11227             symbol_c *IN_type_symbol = param_data_type;
       
 11228             last_type_symbol = param_data_type;
       
 11229             
       
 11230             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11231             {
       
 11232         
       
 11233                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
 11234                 s4o.print("(");
       
 11235                 return_type_symbol->accept(*this);
       
 11236                 s4o.print(")__time_to_int(");
       
 11237                 IN_param_value->accept(*this);
       
 11238                 s4o.print(")");
       
 11239                 return NULL;
       
 11240                 
       
 11241             }
       
 11242             
       
 11243             ERROR;
       
 11244         }
       
 11245         
       
 11246     }/*function_tod_to_bool*/
       
 11247     break;
       
 11248 
       
 11249 /****
       
 11250  *TOD_TO_BYTE
       
 11251  */
       
 11252     case function_tod_to_byte :
       
 11253     {
       
 11254         symbol_c *last_type_symbol = NULL;
       
 11255 
       
 11256         {
       
 11257             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11258             symbol_c *IN_param_value = &this->default_variable_name;
       
 11259         
       
 11260             symbol_c *IN_type_symbol = param_data_type;
       
 11261             last_type_symbol = param_data_type;
       
 11262             
       
 11263             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11264             {
       
 11265         
       
 11266                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
 11267                 s4o.print("(");
       
 11268                 return_type_symbol->accept(*this);
       
 11269                 s4o.print(")__time_to_int(");
       
 11270                 IN_param_value->accept(*this);
       
 11271                 s4o.print(")");
       
 11272                 return NULL;
       
 11273                 
       
 11274             }
       
 11275             
       
 11276             ERROR;
       
 11277         }
       
 11278         
       
 11279     }/*function_tod_to_byte*/
       
 11280     break;
       
 11281 
       
 11282 /****
       
 11283  *TOD_TO_WORD
       
 11284  */
       
 11285     case function_tod_to_word :
       
 11286     {
       
 11287         symbol_c *last_type_symbol = NULL;
       
 11288 
       
 11289         {
       
 11290             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11291             symbol_c *IN_param_value = &this->default_variable_name;
       
 11292         
       
 11293             symbol_c *IN_type_symbol = param_data_type;
       
 11294             last_type_symbol = param_data_type;
       
 11295             
       
 11296             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11297             {
       
 11298         
       
 11299                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
 11300                 s4o.print("(");
       
 11301                 return_type_symbol->accept(*this);
       
 11302                 s4o.print(")__time_to_int(");
       
 11303                 IN_param_value->accept(*this);
       
 11304                 s4o.print(")");
       
 11305                 return NULL;
       
 11306                 
       
 11307             }
       
 11308             
       
 11309             ERROR;
       
 11310         }
       
 11311         
       
 11312     }/*function_tod_to_word*/
       
 11313     break;
       
 11314 
       
 11315 /****
       
 11316  *TOD_TO_DWORD
       
 11317  */
       
 11318     case function_tod_to_dword :
       
 11319     {
       
 11320         symbol_c *last_type_symbol = NULL;
       
 11321 
       
 11322         {
       
 11323             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11324             symbol_c *IN_param_value = &this->default_variable_name;
       
 11325         
       
 11326             symbol_c *IN_type_symbol = param_data_type;
       
 11327             last_type_symbol = param_data_type;
       
 11328             
       
 11329             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11330             {
       
 11331         
       
 11332                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
 11333                 s4o.print("(");
       
 11334                 return_type_symbol->accept(*this);
       
 11335                 s4o.print(")__time_to_int(");
       
 11336                 IN_param_value->accept(*this);
       
 11337                 s4o.print(")");
       
 11338                 return NULL;
       
 11339                 
       
 11340             }
       
 11341             
       
 11342             ERROR;
       
 11343         }
       
 11344         
       
 11345     }/*function_tod_to_dword*/
       
 11346     break;
       
 11347 
       
 11348 /****
       
 11349  *TOD_TO_LWORD
       
 11350  */
       
 11351     case function_tod_to_lword :
       
 11352     {
       
 11353         symbol_c *last_type_symbol = NULL;
       
 11354 
       
 11355         {
       
 11356             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11357             symbol_c *IN_param_value = &this->default_variable_name;
       
 11358         
       
 11359             symbol_c *IN_type_symbol = param_data_type;
       
 11360             last_type_symbol = param_data_type;
       
 11361             
       
 11362             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11363             {
       
 11364         
       
 11365                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
 11366                 s4o.print("(");
       
 11367                 return_type_symbol->accept(*this);
       
 11368                 s4o.print(")__time_to_int(");
       
 11369                 IN_param_value->accept(*this);
       
 11370                 s4o.print(")");
       
 11371                 return NULL;
       
 11372                 
       
 11373             }
       
 11374             
       
 11375             ERROR;
       
 11376         }
       
 11377         
       
 11378     }/*function_tod_to_lword*/
       
 11379     break;
       
 11380 
       
 11381 /****
       
 11382  *TOD_TO_STRING
       
 11383  */
       
 11384     case function_tod_to_string :
       
 11385     {
       
 11386         symbol_c *last_type_symbol = NULL;
       
 11387 
       
 11388         {
       
 11389             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11390             symbol_c *IN_param_value = &this->default_variable_name;
       
 11391         
       
 11392             symbol_c *IN_type_symbol = param_data_type;
       
 11393             last_type_symbol = param_data_type;
       
 11394             
       
 11395             if (typeid(*last_type_symbol) == typeid(tod_type_name_c))
       
 11396             {
       
 11397         
       
 11398                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
 11399                 s4o.print("(");
       
 11400                 return_type_symbol->accept(*this);
       
 11401                 s4o.print(")__tod_to_string(");
       
 11402                 IN_param_value->accept(*this);
       
 11403                 s4o.print(")");
       
 11404                 return NULL;
       
 11405                 
       
 11406             }
       
 11407             
       
 11408             ERROR;
       
 11409         }
       
 11410         
       
 11411     }/*function_tod_to_string*/
       
 11412     break;
       
 11413 
       
 11414 /****
       
 11415  *DT_TO_REAL
       
 11416  */
       
 11417     case function_dt_to_real :
       
 11418     {
       
 11419         symbol_c *last_type_symbol = NULL;
       
 11420 
       
 11421         {
       
 11422             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11423             symbol_c *IN_param_value = &this->default_variable_name;
       
 11424         
       
 11425             symbol_c *IN_type_symbol = param_data_type;
       
 11426             last_type_symbol = param_data_type;
       
 11427             
       
 11428             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11429             {
       
 11430         
       
 11431                 symbol_c * return_type_symbol = &search_constant_type_c::real_type_name;
       
 11432                 s4o.print("(");
       
 11433                 return_type_symbol->accept(*this);
       
 11434                 s4o.print(")__time_to_real(");
       
 11435                 IN_param_value->accept(*this);
       
 11436                 s4o.print(")");
       
 11437                 return NULL;
       
 11438                 
       
 11439             }
       
 11440             
       
 11441             ERROR;
       
 11442         }
       
 11443         
       
 11444     }/*function_dt_to_real*/
       
 11445     break;
       
 11446 
       
 11447 /****
       
 11448  *DT_TO_LREAL
       
 11449  */
       
 11450     case function_dt_to_lreal :
       
 11451     {
       
 11452         symbol_c *last_type_symbol = NULL;
       
 11453 
       
 11454         {
       
 11455             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11456             symbol_c *IN_param_value = &this->default_variable_name;
       
 11457         
       
 11458             symbol_c *IN_type_symbol = param_data_type;
       
 11459             last_type_symbol = param_data_type;
       
 11460             
       
 11461             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11462             {
       
 11463         
       
 11464                 symbol_c * return_type_symbol = &search_constant_type_c::lreal_type_name;
       
 11465                 s4o.print("(");
       
 11466                 return_type_symbol->accept(*this);
       
 11467                 s4o.print(")__time_to_real(");
       
 11468                 IN_param_value->accept(*this);
       
 11469                 s4o.print(")");
       
 11470                 return NULL;
       
 11471                 
       
 11472             }
       
 11473             
       
 11474             ERROR;
       
 11475         }
       
 11476         
       
 11477     }/*function_dt_to_lreal*/
       
 11478     break;
       
 11479 
       
 11480 /****
       
 11481  *DT_TO_SINT
       
 11482  */
       
 11483     case function_dt_to_sint :
       
 11484     {
       
 11485         symbol_c *last_type_symbol = NULL;
       
 11486 
       
 11487         {
       
 11488             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11489             symbol_c *IN_param_value = &this->default_variable_name;
       
 11490         
       
 11491             symbol_c *IN_type_symbol = param_data_type;
       
 11492             last_type_symbol = param_data_type;
       
 11493             
       
 11494             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11495             {
       
 11496         
       
 11497                 symbol_c * return_type_symbol = &search_constant_type_c::sint_type_name;
       
 11498                 s4o.print("(");
       
 11499                 return_type_symbol->accept(*this);
       
 11500                 s4o.print(")__time_to_int(");
       
 11501                 IN_param_value->accept(*this);
       
 11502                 s4o.print(")");
       
 11503                 return NULL;
       
 11504                 
       
 11505             }
       
 11506             
       
 11507             ERROR;
       
 11508         }
       
 11509         
       
 11510     }/*function_dt_to_sint*/
       
 11511     break;
       
 11512 
       
 11513 /****
       
 11514  *DT_TO_INT
       
 11515  */
       
 11516     case function_dt_to_int :
       
 11517     {
       
 11518         symbol_c *last_type_symbol = NULL;
       
 11519 
       
 11520         {
       
 11521             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11522             symbol_c *IN_param_value = &this->default_variable_name;
       
 11523         
       
 11524             symbol_c *IN_type_symbol = param_data_type;
       
 11525             last_type_symbol = param_data_type;
       
 11526             
       
 11527             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11528             {
       
 11529         
       
 11530                 symbol_c * return_type_symbol = &search_constant_type_c::int_type_name;
       
 11531                 s4o.print("(");
       
 11532                 return_type_symbol->accept(*this);
       
 11533                 s4o.print(")__time_to_int(");
       
 11534                 IN_param_value->accept(*this);
       
 11535                 s4o.print(")");
       
 11536                 return NULL;
       
 11537                 
       
 11538             }
       
 11539             
       
 11540             ERROR;
       
 11541         }
       
 11542         
       
 11543     }/*function_dt_to_int*/
       
 11544     break;
       
 11545 
       
 11546 /****
       
 11547  *DT_TO_DINT
       
 11548  */
       
 11549     case function_dt_to_dint :
       
 11550     {
       
 11551         symbol_c *last_type_symbol = NULL;
       
 11552 
       
 11553         {
       
 11554             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11555             symbol_c *IN_param_value = &this->default_variable_name;
       
 11556         
       
 11557             symbol_c *IN_type_symbol = param_data_type;
       
 11558             last_type_symbol = param_data_type;
       
 11559             
       
 11560             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11561             {
       
 11562         
       
 11563                 symbol_c * return_type_symbol = &search_constant_type_c::dint_type_name;
       
 11564                 s4o.print("(");
       
 11565                 return_type_symbol->accept(*this);
       
 11566                 s4o.print(")__time_to_int(");
       
 11567                 IN_param_value->accept(*this);
       
 11568                 s4o.print(")");
       
 11569                 return NULL;
       
 11570                 
       
 11571             }
       
 11572             
       
 11573             ERROR;
       
 11574         }
       
 11575         
       
 11576     }/*function_dt_to_dint*/
       
 11577     break;
       
 11578 
       
 11579 /****
       
 11580  *DT_TO_LINT
       
 11581  */
       
 11582     case function_dt_to_lint :
       
 11583     {
       
 11584         symbol_c *last_type_symbol = NULL;
       
 11585 
       
 11586         {
       
 11587             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11588             symbol_c *IN_param_value = &this->default_variable_name;
       
 11589         
       
 11590             symbol_c *IN_type_symbol = param_data_type;
       
 11591             last_type_symbol = param_data_type;
       
 11592             
       
 11593             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11594             {
       
 11595         
       
 11596                 symbol_c * return_type_symbol = &search_constant_type_c::lint_type_name;
       
 11597                 s4o.print("(");
       
 11598                 return_type_symbol->accept(*this);
       
 11599                 s4o.print(")__time_to_int(");
       
 11600                 IN_param_value->accept(*this);
       
 11601                 s4o.print(")");
       
 11602                 return NULL;
       
 11603                 
       
 11604             }
       
 11605             
       
 11606             ERROR;
       
 11607         }
       
 11608         
       
 11609     }/*function_dt_to_lint*/
       
 11610     break;
       
 11611 
       
 11612 /****
       
 11613  *DT_TO_USINT
       
 11614  */
       
 11615     case function_dt_to_usint :
       
 11616     {
       
 11617         symbol_c *last_type_symbol = NULL;
       
 11618 
       
 11619         {
       
 11620             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11621             symbol_c *IN_param_value = &this->default_variable_name;
       
 11622         
       
 11623             symbol_c *IN_type_symbol = param_data_type;
       
 11624             last_type_symbol = param_data_type;
       
 11625             
       
 11626             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11627             {
       
 11628         
       
 11629                 symbol_c * return_type_symbol = &search_constant_type_c::usint_type_name;
       
 11630                 s4o.print("(");
       
 11631                 return_type_symbol->accept(*this);
       
 11632                 s4o.print(")__time_to_int(");
       
 11633                 IN_param_value->accept(*this);
       
 11634                 s4o.print(")");
       
 11635                 return NULL;
       
 11636                 
       
 11637             }
       
 11638             
       
 11639             ERROR;
       
 11640         }
       
 11641         
       
 11642     }/*function_dt_to_usint*/
       
 11643     break;
       
 11644 
       
 11645 /****
       
 11646  *DT_TO_UINT
       
 11647  */
       
 11648     case function_dt_to_uint :
       
 11649     {
       
 11650         symbol_c *last_type_symbol = NULL;
       
 11651 
       
 11652         {
       
 11653             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11654             symbol_c *IN_param_value = &this->default_variable_name;
       
 11655         
       
 11656             symbol_c *IN_type_symbol = param_data_type;
       
 11657             last_type_symbol = param_data_type;
       
 11658             
       
 11659             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11660             {
       
 11661         
       
 11662                 symbol_c * return_type_symbol = &search_constant_type_c::uint_type_name;
       
 11663                 s4o.print("(");
       
 11664                 return_type_symbol->accept(*this);
       
 11665                 s4o.print(")__time_to_int(");
       
 11666                 IN_param_value->accept(*this);
       
 11667                 s4o.print(")");
       
 11668                 return NULL;
       
 11669                 
       
 11670             }
       
 11671             
       
 11672             ERROR;
       
 11673         }
       
 11674         
       
 11675     }/*function_dt_to_uint*/
       
 11676     break;
       
 11677 
       
 11678 /****
       
 11679  *DT_TO_UDINT
       
 11680  */
       
 11681     case function_dt_to_udint :
       
 11682     {
       
 11683         symbol_c *last_type_symbol = NULL;
       
 11684 
       
 11685         {
       
 11686             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11687             symbol_c *IN_param_value = &this->default_variable_name;
       
 11688         
       
 11689             symbol_c *IN_type_symbol = param_data_type;
       
 11690             last_type_symbol = param_data_type;
       
 11691             
       
 11692             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11693             {
       
 11694         
       
 11695                 symbol_c * return_type_symbol = &search_constant_type_c::udint_type_name;
       
 11696                 s4o.print("(");
       
 11697                 return_type_symbol->accept(*this);
       
 11698                 s4o.print(")__time_to_int(");
       
 11699                 IN_param_value->accept(*this);
       
 11700                 s4o.print(")");
       
 11701                 return NULL;
       
 11702                 
       
 11703             }
       
 11704             
       
 11705             ERROR;
       
 11706         }
       
 11707         
       
 11708     }/*function_dt_to_udint*/
       
 11709     break;
       
 11710 
       
 11711 /****
       
 11712  *DT_TO_ULINT
       
 11713  */
       
 11714     case function_dt_to_ulint :
       
 11715     {
       
 11716         symbol_c *last_type_symbol = NULL;
       
 11717 
       
 11718         {
       
 11719             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11720             symbol_c *IN_param_value = &this->default_variable_name;
       
 11721         
       
 11722             symbol_c *IN_type_symbol = param_data_type;
       
 11723             last_type_symbol = param_data_type;
       
 11724             
       
 11725             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11726             {
       
 11727         
       
 11728                 symbol_c * return_type_symbol = &search_constant_type_c::ulint_type_name;
       
 11729                 s4o.print("(");
       
 11730                 return_type_symbol->accept(*this);
       
 11731                 s4o.print(")__time_to_int(");
       
 11732                 IN_param_value->accept(*this);
       
 11733                 s4o.print(")");
       
 11734                 return NULL;
       
 11735                 
       
 11736             }
       
 11737             
       
 11738             ERROR;
       
 11739         }
       
 11740         
       
 11741     }/*function_dt_to_ulint*/
       
 11742     break;
       
 11743 
       
 11744 /****
       
 11745  *DT_TO_BOOL
       
 11746  */
       
 11747     case function_dt_to_bool :
       
 11748     {
       
 11749         symbol_c *last_type_symbol = NULL;
       
 11750 
       
 11751         {
       
 11752             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11753             symbol_c *IN_param_value = &this->default_variable_name;
       
 11754         
       
 11755             symbol_c *IN_type_symbol = param_data_type;
       
 11756             last_type_symbol = param_data_type;
       
 11757             
       
 11758             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11759             {
       
 11760         
       
 11761                 symbol_c * return_type_symbol = &search_constant_type_c::bool_type_name;
       
 11762                 s4o.print("(");
       
 11763                 return_type_symbol->accept(*this);
       
 11764                 s4o.print(")__time_to_int(");
       
 11765                 IN_param_value->accept(*this);
       
 11766                 s4o.print(")");
       
 11767                 return NULL;
       
 11768                 
       
 11769             }
       
 11770             
       
 11771             ERROR;
       
 11772         }
       
 11773         
       
 11774     }/*function_dt_to_bool*/
       
 11775     break;
       
 11776 
       
 11777 /****
       
 11778  *DT_TO_BYTE
       
 11779  */
       
 11780     case function_dt_to_byte :
       
 11781     {
       
 11782         symbol_c *last_type_symbol = NULL;
       
 11783 
       
 11784         {
       
 11785             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11786             symbol_c *IN_param_value = &this->default_variable_name;
       
 11787         
       
 11788             symbol_c *IN_type_symbol = param_data_type;
       
 11789             last_type_symbol = param_data_type;
       
 11790             
       
 11791             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11792             {
       
 11793         
       
 11794                 symbol_c * return_type_symbol = &search_constant_type_c::byte_type_name;
       
 11795                 s4o.print("(");
       
 11796                 return_type_symbol->accept(*this);
       
 11797                 s4o.print(")__time_to_int(");
       
 11798                 IN_param_value->accept(*this);
       
 11799                 s4o.print(")");
       
 11800                 return NULL;
       
 11801                 
       
 11802             }
       
 11803             
       
 11804             ERROR;
       
 11805         }
       
 11806         
       
 11807     }/*function_dt_to_byte*/
       
 11808     break;
       
 11809 
       
 11810 /****
       
 11811  *DT_TO_WORD
       
 11812  */
       
 11813     case function_dt_to_word :
       
 11814     {
       
 11815         symbol_c *last_type_symbol = NULL;
       
 11816 
       
 11817         {
       
 11818             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11819             symbol_c *IN_param_value = &this->default_variable_name;
       
 11820         
       
 11821             symbol_c *IN_type_symbol = param_data_type;
       
 11822             last_type_symbol = param_data_type;
       
 11823             
       
 11824             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11825             {
       
 11826         
       
 11827                 symbol_c * return_type_symbol = &search_constant_type_c::word_type_name;
       
 11828                 s4o.print("(");
       
 11829                 return_type_symbol->accept(*this);
       
 11830                 s4o.print(")__time_to_int(");
       
 11831                 IN_param_value->accept(*this);
       
 11832                 s4o.print(")");
       
 11833                 return NULL;
       
 11834                 
       
 11835             }
       
 11836             
       
 11837             ERROR;
       
 11838         }
       
 11839         
       
 11840     }/*function_dt_to_word*/
       
 11841     break;
       
 11842 
       
 11843 /****
       
 11844  *DT_TO_DWORD
       
 11845  */
       
 11846     case function_dt_to_dword :
       
 11847     {
       
 11848         symbol_c *last_type_symbol = NULL;
       
 11849 
       
 11850         {
       
 11851             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11852             symbol_c *IN_param_value = &this->default_variable_name;
       
 11853         
       
 11854             symbol_c *IN_type_symbol = param_data_type;
       
 11855             last_type_symbol = param_data_type;
       
 11856             
       
 11857             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11858             {
       
 11859         
       
 11860                 symbol_c * return_type_symbol = &search_constant_type_c::dword_type_name;
       
 11861                 s4o.print("(");
       
 11862                 return_type_symbol->accept(*this);
       
 11863                 s4o.print(")__time_to_int(");
       
 11864                 IN_param_value->accept(*this);
       
 11865                 s4o.print(")");
       
 11866                 return NULL;
       
 11867                 
       
 11868             }
       
 11869             
       
 11870             ERROR;
       
 11871         }
       
 11872         
       
 11873     }/*function_dt_to_dword*/
       
 11874     break;
       
 11875 
       
 11876 /****
       
 11877  *DT_TO_LWORD
       
 11878  */
       
 11879     case function_dt_to_lword :
       
 11880     {
       
 11881         symbol_c *last_type_symbol = NULL;
       
 11882 
       
 11883         {
       
 11884             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11885             symbol_c *IN_param_value = &this->default_variable_name;
       
 11886         
       
 11887             symbol_c *IN_type_symbol = param_data_type;
       
 11888             last_type_symbol = param_data_type;
       
 11889             
       
 11890             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11891             {
       
 11892         
       
 11893                 symbol_c * return_type_symbol = &search_constant_type_c::lword_type_name;
       
 11894                 s4o.print("(");
       
 11895                 return_type_symbol->accept(*this);
       
 11896                 s4o.print(")__time_to_int(");
       
 11897                 IN_param_value->accept(*this);
       
 11898                 s4o.print(")");
       
 11899                 return NULL;
       
 11900                 
       
 11901             }
       
 11902             
       
 11903             ERROR;
       
 11904         }
       
 11905         
       
 11906     }/*function_dt_to_lword*/
       
 11907     break;
       
 11908 
       
 11909 /****
       
 11910  *DT_TO_STRING
       
 11911  */
       
 11912     case function_dt_to_string :
       
 11913     {
       
 11914         symbol_c *last_type_symbol = NULL;
       
 11915 
       
 11916         {
       
 11917             /* Get the value from a foo(<param_name> = <param_value>) style call */
       
 11918             symbol_c *IN_param_value = &this->default_variable_name;
       
 11919         
       
 11920             symbol_c *IN_type_symbol = param_data_type;
       
 11921             last_type_symbol = param_data_type;
       
 11922             
       
 11923             if (typeid(*last_type_symbol) == typeid(dt_type_name_c))
       
 11924             {
       
 11925         
       
 11926                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
       
 11927                 s4o.print("(");
       
 11928                 return_type_symbol->accept(*this);
       
 11929                 s4o.print(")__dt_to_string(");
       
 11930                 IN_param_value->accept(*this);
       
 11931                 s4o.print(")");
       
 11932                 return NULL;
       
 11933                 
       
 11934             }
       
 11935             
       
 11936             ERROR;
       
 11937         }
       
 11938         
       
 11939     }/*function_dt_to_string*/
       
 11940     break;
 11940     break;
 11941 
 11941 
 11942 /****
 11942 /****
 11943  *TRUNC
 11943  *TRUNC
 11944  */
 11944  */
 13371                     if (N_param_value == NULL)
 13371                     if (N_param_value == NULL)
 13372                       N_param_value = function_call_param_iterator.next();
 13372                       N_param_value = function_call_param_iterator.next();
 13373                     symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
 13373                     symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
 13374                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
 13374                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
 13375                     
 13375                     
 13376                     if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 13376                     if(search_expression_type->is_integer_type(N_type_symbol))
 13377                     {
 13377                     {
 13378                 
 13378                 
 13379                         symbol_c * return_type_symbol = IN_type_symbol;
 13379                         symbol_c * return_type_symbol = IN_type_symbol;
 13380                         IN_param_value->accept(*this);
 13380                         IN_param_value->accept(*this);
 13381                         s4o.print("<<");
 13381                         s4o.print("<<");
 13421                     if (N_param_value == NULL)
 13421                     if (N_param_value == NULL)
 13422                       N_param_value = function_call_param_iterator.next();
 13422                       N_param_value = function_call_param_iterator.next();
 13423                     symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
 13423                     symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
 13424                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
 13424                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
 13425                     
 13425                     
 13426                     if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 13426                     if(search_expression_type->is_integer_type(N_type_symbol))
 13427                     {
 13427                     {
 13428                 
 13428                 
 13429                         symbol_c * return_type_symbol = IN_type_symbol;
 13429                         symbol_c * return_type_symbol = IN_type_symbol;
 13430                         IN_param_value->accept(*this);
 13430                         IN_param_value->accept(*this);
 13431                         s4o.print(">>");
 13431                         s4o.print(">>");
 13471                     if (N_param_value == NULL)
 13471                     if (N_param_value == NULL)
 13472                       N_param_value = function_call_param_iterator.next();
 13472                       N_param_value = function_call_param_iterator.next();
 13473                     symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
 13473                     symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
 13474                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
 13474                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
 13475                     
 13475                     
 13476                     if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 13476                     if(search_expression_type->is_integer_type(N_type_symbol))
 13477                     {
 13477                     {
 13478                 
 13478                 
 13479                         symbol_c * return_type_symbol = IN_type_symbol;
 13479                         symbol_c * return_type_symbol = IN_type_symbol;
 13480                         s4o.print("__ror_");
 13480                         s4o.print("__ror_");
 13481                         IN_type_symbol->accept(*this);
 13481                         IN_type_symbol->accept(*this);
 13525                     if (N_param_value == NULL)
 13525                     if (N_param_value == NULL)
 13526                       N_param_value = function_call_param_iterator.next();
 13526                       N_param_value = function_call_param_iterator.next();
 13527                     symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
 13527                     symbol_c *N_type_symbol = search_expression_type->get_type(N_param_value);
 13528                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
 13528                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(N_type_symbol, last_type_symbol) ? search_expression_type->common_type(N_type_symbol, last_type_symbol) : N_type_symbol ;
 13529                     
 13529                     
 13530                     if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 13530                     if(search_expression_type->is_integer_type(N_type_symbol))
 13531                     {
 13531                     {
 13532                 
 13532                 
 13533                         symbol_c * return_type_symbol = IN_type_symbol;
 13533                         symbol_c * return_type_symbol = IN_type_symbol;
 13534                         s4o.print("__rol_");
 13534                         s4o.print("__rol_");
 13535                         IN_type_symbol->accept(*this);
 13535                         IN_type_symbol->accept(*this);
 14800                     if (L_param_value == NULL)
 14800                     if (L_param_value == NULL)
 14801                       L_param_value = function_call_param_iterator.next();
 14801                       L_param_value = function_call_param_iterator.next();
 14802                     symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
 14802                     symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
 14803                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
 14803                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
 14804                     
 14804                     
 14805                     if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 14805                     if(search_expression_type->is_integer_type(L_type_symbol))
 14806                     {
 14806                     {
 14807                 
 14807                 
 14808                         symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 14808                         symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 14809                         s4o.print("__left(");
 14809                         s4o.print("__left(");
 14810                         IN_param_value->accept(*this);
 14810                         IN_param_value->accept(*this);
 14852                     if (L_param_value == NULL)
 14852                     if (L_param_value == NULL)
 14853                       L_param_value = function_call_param_iterator.next();
 14853                       L_param_value = function_call_param_iterator.next();
 14854                     symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
 14854                     symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
 14855                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
 14855                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
 14856                     
 14856                     
 14857                     if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 14857                     if(search_expression_type->is_integer_type(L_type_symbol))
 14858                     {
 14858                     {
 14859                 
 14859                 
 14860                         symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 14860                         symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 14861                         s4o.print("__right(");
 14861                         s4o.print("__right(");
 14862                         IN_param_value->accept(*this);
 14862                         IN_param_value->accept(*this);
 14904                     if (L_param_value == NULL)
 14904                     if (L_param_value == NULL)
 14905                       L_param_value = function_call_param_iterator.next();
 14905                       L_param_value = function_call_param_iterator.next();
 14906                     symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
 14906                     symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
 14907                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
 14907                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
 14908                     
 14908                     
 14909                     if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 14909                     if(search_expression_type->is_integer_type(L_type_symbol))
 14910                     {
 14910                     {
 14911                 
 14911                 
 14912                         {
 14912                         {
 14913                             identifier_c param_name("P");
 14913                             identifier_c param_name("P");
 14914                             /* Get the value from a foo(<param_name> = <param_value>) style call */
 14914                             /* Get the value from a foo(<param_name> = <param_value>) style call */
 14918                             if (P_param_value == NULL)
 14918                             if (P_param_value == NULL)
 14919                               P_param_value = function_call_param_iterator.next();
 14919                               P_param_value = function_call_param_iterator.next();
 14920                             symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
 14920                             symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
 14921                             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
 14921                             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
 14922                             
 14922                             
 14923                             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 14923                             if(search_expression_type->is_integer_type(P_type_symbol))
 14924                             {
 14924                             {
 14925                         
 14925                         
 14926                                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 14926                                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 14927                                 s4o.print("__mid(");
 14927                                 s4o.print("__mid(");
 14928                                 IN_param_value->accept(*this);
 14928                                 IN_param_value->accept(*this);
 15103                             if (P_param_value == NULL)
 15103                             if (P_param_value == NULL)
 15104                               P_param_value = function_call_param_iterator.next();
 15104                               P_param_value = function_call_param_iterator.next();
 15105                             symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
 15105                             symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
 15106                             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
 15106                             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
 15107                             
 15107                             
 15108                             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 15108                             if(search_expression_type->is_integer_type(P_type_symbol))
 15109                             {
 15109                             {
 15110                         
 15110                         
 15111                                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 15111                                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 15112                                 s4o.print("__insert(");
 15112                                 s4o.print("__insert(");
 15113                                 IN1_param_value->accept(*this);
 15113                                 IN1_param_value->accept(*this);
 15162                     if (L_param_value == NULL)
 15162                     if (L_param_value == NULL)
 15163                       L_param_value = function_call_param_iterator.next();
 15163                       L_param_value = function_call_param_iterator.next();
 15164                     symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
 15164                     symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
 15165                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
 15165                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
 15166                     
 15166                     
 15167                     if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 15167                     if(search_expression_type->is_integer_type(L_type_symbol))
 15168                     {
 15168                     {
 15169                 
 15169                 
 15170                         {
 15170                         {
 15171                             identifier_c param_name("P");
 15171                             identifier_c param_name("P");
 15172                             /* Get the value from a foo(<param_name> = <param_value>) style call */
 15172                             /* Get the value from a foo(<param_name> = <param_value>) style call */
 15176                             if (P_param_value == NULL)
 15176                             if (P_param_value == NULL)
 15177                               P_param_value = function_call_param_iterator.next();
 15177                               P_param_value = function_call_param_iterator.next();
 15178                             symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
 15178                             symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
 15179                             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
 15179                             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
 15180                             
 15180                             
 15181                             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 15181                             if(search_expression_type->is_integer_type(P_type_symbol))
 15182                             {
 15182                             {
 15183                         
 15183                         
 15184                                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 15184                                 symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 15185                                 s4o.print("__delete(");
 15185                                 s4o.print("__delete(");
 15186                                 IN_param_value->accept(*this);
 15186                                 IN_param_value->accept(*this);
 15249                             if (L_param_value == NULL)
 15249                             if (L_param_value == NULL)
 15250                               L_param_value = function_call_param_iterator.next();
 15250                               L_param_value = function_call_param_iterator.next();
 15251                             symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
 15251                             symbol_c *L_type_symbol = search_expression_type->get_type(L_param_value);
 15252                             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
 15252                             last_type_symbol = last_type_symbol && search_expression_type->is_same_type(L_type_symbol, last_type_symbol) ? search_expression_type->common_type(L_type_symbol, last_type_symbol) : L_type_symbol ;
 15253                             
 15253                             
 15254                             if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 15254                             if(search_expression_type->is_integer_type(L_type_symbol))
 15255                             {
 15255                             {
 15256                         
 15256                         
 15257                                 {
 15257                                 {
 15258                                     identifier_c param_name("P");
 15258                                     identifier_c param_name("P");
 15259                                     /* Get the value from a foo(<param_name> = <param_value>) style call */
 15259                                     /* Get the value from a foo(<param_name> = <param_value>) style call */
 15263                                     if (P_param_value == NULL)
 15263                                     if (P_param_value == NULL)
 15264                                       P_param_value = function_call_param_iterator.next();
 15264                                       P_param_value = function_call_param_iterator.next();
 15265                                     symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
 15265                                     symbol_c *P_type_symbol = search_expression_type->get_type(P_param_value);
 15266                                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
 15266                                     last_type_symbol = last_type_symbol && search_expression_type->is_same_type(P_type_symbol, last_type_symbol) ? search_expression_type->common_type(P_type_symbol, last_type_symbol) : P_type_symbol ;
 15267                                     
 15267                                     
 15268                                     if (typeid(*last_type_symbol) == typeid(uint_type_name_c))
 15268                                     if(search_expression_type->is_integer_type(P_type_symbol))
 15269                                     {
 15269                                     {
 15270                                 
 15270                                 
 15271                                         symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 15271                                         symbol_c * return_type_symbol = &search_constant_type_c::string_type_name;
 15272                                         s4o.print("__replace(");
 15272                                         s4o.print("__replace(");
 15273                                         IN1_param_value->accept(*this);
 15273                                         IN1_param_value->accept(*this);