Pump OPEN turns on the pump. CLOSED turns it off.
This the syntax for the control based rules:
RULE (name)
IF (object) (object name) (object characteristic) (>, < OR =) (value, you can't use an other object's characteristic)
AND (optional, everything again)
THEN (object) (object characteristic) IS (value, you can't an use other object's characteristic)
AND (optional, everything again)
PRIORITY (higher imposes over lower)
Here are a couple working rules from an old model...
RULE BOOSTERNIVEIS
IF NODE RESrepublica PRESSURE < 1.5
THEN PUMP BOOSTER1 STATUS IS OPEN
PRIORITY 1
RULE BOOSTERNIVEIS2
IF NODE RESrepublica PRESSURE > 2.99
THEN PUMP BOOSTER1 STATUS IS CLOSED
PRIORITY 1
Just some more notes:
-In the manual it says priority is optional, but I just can't make rules work without them...
-If you forget to close the pump and the tank closes, the pump will close either way and consume no energy as the flow is 0, but epanet's medium efficiency seems to be calculated as (summation of efficiency in this moment)/(total time), and in these moments the efficiency will be 0%, deeply masking your efficiency results.
Hope it helps!