[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[EnergyPlus_Support] Use macro in EMS conditional statement (EnergyPlus)





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?




__._,_.___

Posted by: thevinyldropper@xxxxxxxxx


Primary EnergyPlus support is found at:
http://energyplus.helpserve.com or send a message to energyplus-support@xxxxxxxx

The primary EnergyPlus web site is found at:
http://www.energyplus.gov

The group web site is:
http://groups.yahoo.com/group/EnergyPlus_Support/

Attachments are currently allowed but be mindful that not everyone has a high speed connection.  Limit attachments to small files.

EnergyPlus Documentation is searchable.  Open EPlusMainMenu.pdf under the Documentation link and press the "search" button.




Visit Your Group
Yahoo! Groups
PrivacyUnsubscribeTerms of Use

__,_._,___