Hello all,
I am trying to use a macro to define a number that is used in a conditional statement as part of an EMS. Here it is:
IF ZoneTemp <= #eval[FanMinSpeedTemp[] + #eval[ #eval[ FanMaxSpeedTemp[] - FanMinSpeedTemp[] ] / 6 ]]
Where "ZoneTemp" is the reading from an EMS sensor. No matter how I try to do this, EnergyPlus inserts a comma after the "<=", resulting in a severe error. Here is the text from the .audit file:
2978 IF ZoneTemp<=
** Warning ** IP: IDF line~2978 Comma being inserted after:"IF ZoneTemp<=" in Object=ENERGYMANAGEMENTSYSTEM:PROGRAM
2979
2980
2981 21.666666031,
I can see that the right side of the conditional statement is being evaluated correctly (21.6), but the comma insertion screws everything up. Any ideas?