Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Revision history [back]

You can't have an EMS line that starts with AND. The EMS program should be:

  EnergyManagementSystem:Program,
    CO2_Sensor09,
    IF (EMS_CO2_Sensor07 > 800) && (Temperature_Sensor07 > 26),
      SET OpenFactor09 = 1.0,
    ELSE,
      SET OpenFactor09 = 0.0,
    ENDIF;

Or another way to write it would be:

  EnergyManagementSystem:Program,
    CO2_Sensor09,
    SET OpenFactor09 = 0.0
    IF EMS_CO2_Sensor07 > 800,
      IF Temperature_Sensor07 > 26,
        SET OpenFactor09 = 1.0,
      ENDIF,
    ENDIF;