User Guide

Appendix
121
A
xcess Programming Language
13. Every command should be on its own line.
Not recommended:
OFF [RELAY,1] OFF [RELAY,2]
WAIT 30 'STOP DECK' OFF [RELAY,3]
Standard:
OFF [SYS_PWR,1] (* SYSTEM POWER OFF *)
OFF [AMP,AMP_PWR] (* AMP POWER OFF *)
WAIT 30 'STOP DECK'
OFF [VCR,VCR_STOP]
14. Braces should get their own line.
Not recommended:
IF(TEMPERATURE>COOLING_SET_POINT) {
ON [RELAY,5] (* TURN ON FAN *)
ON [RELAY,6] } (* TURN ON COMPRESSOR *)
Standard:
IF(TEMPERATURE>COOLING_SET_POINT)
{
ON [FAN,FAN_ON] (* TURN ON FAN *)
ON [COMPRES,COMPRES_ON] (* TURN ON COMPRESSOR *)
}
15. Braces should be aligned with the commands for which they are used.
Not recommended:
IF(TEMPERATURE>COOLING_SET_POINT)
{
ON [RELAY,5] (* TURN ON FAN *)
ON [RELAY,6] (* TURN ON COMPRESSOR *)
}
Standard:
IF(TEMPERATURE>COOLING_SET_POINT)
{
ON [FAN,FAN_ON] (* TURN ON FAN *)
ON [COMPRES,COMPRES_ON] (* TURN ON COMPRESSOR *)
}