User Guide

Appendix
124
Axcess Programming Language
Standard:
(* LIGHTING CONTROL ****************************)
PUSH[TP,25]
TO [LIGHTS,LIGHTS_ON] (* LIGHTS OFF *)
PUSH[TP,26]
TO [LIGHTS,LIGHTS_OFF] (* LIGHTS ON *)
[TP,25]=[LIGHTS,LIGHTS_ON]
[TP,26]=[LIGHTS,LIGHTS_OFF]
Also acceptable:
(* LIGHTING CONTROL ****************************)
PUSH[TP,25]
TO [RELAY,3] (* LIGHTS OFF *)
[TP,25]=[RELAY,3]
PUSH[TP,26]
TO [RELAY,4] (* LIGHTS ON *)
[TP,26]=[RELAY,4]
24. Do not use constants or variables for PUSH statements in mainline (except for AXC-INP8
cards and similar devices).
Not recommended:
PUSH[TP,VCR_SELECT]
CURRENT=VCR
Standard:
PUSH[TP,86] (* VCR SELECT *)
CURRENT=VCR
25. Use descriptive names for all DEFINE_CALLs and their parameters.
Not recommended:
DEFINE_CALL 'MACRO 1' (P1,P2)
{
ON [P1,P2]
WAIT 50 'WAITING'
OFF [P1,P2]
}
Standard:
DEFINE_CALL 'OPEN_BLINDS' (CARD,RELAY)
{
ON [CARD,RELAY]
WAIT 50 'OPENING_BLINDS'
OFF [CARD,RELAY]
}