Expected Behavior
Should be able to convert ANY to INT
Attempting to convert a REAL to INT
It should convert ANY to INT
Current Behavior
Fails to compile
19-07-26 14:46:22]: Runtime compilation started: COMPILING
[19-07-26 14:46:23]: Generating C files...
[19-07-26 14:46:23]: ./st_files/webserver_program.st:846-34..846-35: error: ';' missing at the end of statement in ST statement.
[19-07-26 14:46:23]: ./st_files/webserver_program.st:846-35..846-39: error: invalid statement in ST statement.
[19-07-26 14:46:24]: 2 error(s) found. Bailing out!
[19-07-26 14:46:24]: Error generating C files
[19-07-26 14:46:25]: Compilation finished with errors!
[19-07-26 14:46:25]: Compilation failed (exit code: 1).
[19-07-26 14:46:25]: Failed to upload to Runtime v3.
19-07-26 14:46:26: Stopping compilation process.
Below snippet top line is 846
_TMP_TO_INT6913197_OUT := TO_INT(O_R);
SM_RTD0(STACK := SM_RTD0_STACK);
C_F1(Office_C_in := SM_RTD0.TEMP1, Garage_C_in := SM_RTD0.TEMP2, Exterior_C_in := SM_RTD0.TEMP3, RV_C_in := SM_RTD0.TEMP4, HVAC_Sup_C_in := SM_RTD0.TEMP5, HVAC_ret_C_in := SM_RTD0.TEMP6, HVAC_L_C_in := SM_RTD0.TEMP7, HVAC_V_C_in := SM_RTD0.TEMP8);
HVAC_FB0(HVAC_Office_zone_IN := HVAC_OFFICE_IN, HVAC_Office_zone_IN_V := HVAC_OFFICE_M_V, HVAC_Garage_zone_IN := HVAC_GARAGE_IN, HVAC_Garage_zone_IN_V := HVAC_GARAGE_M_V, HVAC_Heat_mode_IN := HVAC_HEAT_M, HVAC_Heat_mode_IN_V := HVAC_HEAT_M_V, HVAC_AC_mode_IN := HVAC_COOL_M, HVAC_AC_mode_IN_V := HVAC_COOL_M_V, Fan_mode := HVAC_FAN_M_V, Recirc_Mode := HVAC_RECIRC_M_V, Pan_SW := HVAC_PAN_SW, Office_T_DN := HVAC_OFFICE_TEMP_DN, Office_T_UP_1 := HVAC_OFFICE_TEMP_UP, Garage_T_UP := HVAC_GARAGE_TEMP_UP, Garage_T_DN := HVAC_GARAGE_TEMP_DN, Garage_Temp := GARAGE_TEMP, Office_Temp := OFFICE_TEMP);
O_R := C_F1.Office_F_out;
OFFICE_TEMP := _TMP_TO_INT6913197_OUT;
Possible Solution (Not obligatory)
Context
trying to convert some real values to int
Your Environment
- Version : Editor shows 4.2.6 under help/about, but should be 4.2.8 as verified downloaded latest on 7/19
- Operating System and version : Win11 latest
Expected Behavior
Should be able to convert ANY to INT
Attempting to convert a REAL to INT
It should convert ANY to INT
Current Behavior
Fails to compile
19-07-26 14:46:22]: Runtime compilation started: COMPILING
[19-07-26 14:46:23]: Generating C files...
[19-07-26 14:46:23]: ./st_files/webserver_program.st:846-34..846-35: error: ';' missing at the end of statement in ST statement.
[19-07-26 14:46:23]: ./st_files/webserver_program.st:846-35..846-39: error: invalid statement in ST statement.
[19-07-26 14:46:24]: 2 error(s) found. Bailing out!
[19-07-26 14:46:24]: Error generating C files
[19-07-26 14:46:25]: Compilation finished with errors!
[19-07-26 14:46:25]: Compilation failed (exit code: 1).
[19-07-26 14:46:25]: Failed to upload to Runtime v3.
19-07-26 14:46:26: Stopping compilation process.
Below snippet top line is 846
_TMP_TO_INT6913197_OUT := TO_INT(O_R);
SM_RTD0(STACK := SM_RTD0_STACK);
C_F1(Office_C_in := SM_RTD0.TEMP1, Garage_C_in := SM_RTD0.TEMP2, Exterior_C_in := SM_RTD0.TEMP3, RV_C_in := SM_RTD0.TEMP4, HVAC_Sup_C_in := SM_RTD0.TEMP5, HVAC_ret_C_in := SM_RTD0.TEMP6, HVAC_L_C_in := SM_RTD0.TEMP7, HVAC_V_C_in := SM_RTD0.TEMP8);
HVAC_FB0(HVAC_Office_zone_IN := HVAC_OFFICE_IN, HVAC_Office_zone_IN_V := HVAC_OFFICE_M_V, HVAC_Garage_zone_IN := HVAC_GARAGE_IN, HVAC_Garage_zone_IN_V := HVAC_GARAGE_M_V, HVAC_Heat_mode_IN := HVAC_HEAT_M, HVAC_Heat_mode_IN_V := HVAC_HEAT_M_V, HVAC_AC_mode_IN := HVAC_COOL_M, HVAC_AC_mode_IN_V := HVAC_COOL_M_V, Fan_mode := HVAC_FAN_M_V, Recirc_Mode := HVAC_RECIRC_M_V, Pan_SW := HVAC_PAN_SW, Office_T_DN := HVAC_OFFICE_TEMP_DN, Office_T_UP_1 := HVAC_OFFICE_TEMP_UP, Garage_T_UP := HVAC_GARAGE_TEMP_UP, Garage_T_DN := HVAC_GARAGE_TEMP_DN, Garage_Temp := GARAGE_TEMP, Office_Temp := OFFICE_TEMP);
O_R := C_F1.Office_F_out;
OFFICE_TEMP := _TMP_TO_INT6913197_OUT;
Possible Solution (Not obligatory)
Context
trying to convert some real values to int
Your Environment