User Guide
Appendix
120
Axcess Programming Language
Standard:
DEFINE_DEVICE
(* devices here *)
DEFINE_COMBINE
(* makes things more obvious *)
DEFINE_CONSTANT
(* constants here *)
10. Include files should be listed after all DEFINE_CALLs and before DEFINE_START.
Standard:
DEFINE_CALL 'IMPORTANT STUFF'
(* IMPORTANT STUFF CODE *)
INCLUDE 'MORECODE.AXI' (* CONTAINS CODE THAT *)
(* DOES VARIOUS THINGS *)
DEFINE_START
11. Comments and code should be in upper case. Line comments (except for those in the
DEFINE_DEVICE section should start at column 36, and section comments should take an
entire line, padded with asterisks.
Not recommended:
(*********************)
(* POWER OFF DEVICES *)
(*********************)
OFF [RELAY,1] (* system power off *)
Off [relay,2] (* Amp power off *)
Standard:
(* POWER OFF DEVICES *************************************)
OFF [SYS_PWR,1] (* SYSTEM POWER OFF *)
OFF [PWR_AMP,2] (* AMP POWER OFF *)
12. CALL names and WAIT names are case sensitive and can be in upper and lower case.
Example: (These two CALLs are different!)
DEFINE_CALL 'SYSTEM POWER'
{
OFF [AMP,AMP_PWR] (* AMP POWER OFF *)
WAIT 20 'VCR Power'
OFF [VCR,VCR_PWR] (* VCR POWER OFF *)
}
DEFINE_CALL 'System Power'
{
OFF [AMP,AMP_PWR] (* AMP POWER OFF *)
WAIT 20 'VCR Power'
OFF [VCR,VCR_PWR] (* VCR POWER OFF *)
}