Appendix
125
Axcess Programming Language
26.
Every DEFINE_CALL should at least have a descriptive name and descriptive names for all
parameters and local variables.
Not recommended:
DEFINE_CALL 'DO SOMETHING' (C,N)
LOCAL_VAR
LOOP (* LOOP COUNTER *)
{
LOOP= Ø
WHILE (LOOP < N)
{
LOOP=LOOP+1
OFF [C,LOOP]
}
}
Standard:
DEFINE_CALL 'TURN RELAYS OFF' (CARD,RELAY_NUMBER)
LOCAL_VAR
LOOP,PRE (* LOOP COUNTER *)
{
PRE=1ØØ
LOOP=Ø
WHILE (LOOP<PRE)
LOOP=LOOP+1 (* INCREMENTAL COUNTER *)
27.
List any PUSH_CHANNEL ranges used in the program above the DEFINE_DEVICE section.
Include the section comment so it can be found later using the 'SEARCH' command (ALT+S).
Standard:
PROGRAM_NAME='AMXØ1, BOARDROOM, SO#99999, REV2, XXX/BETA'
(* DATE:Ø4/Ø8/95 TIME:Ø1:23:45 *)
(* SYSTEM TYPE: ENHANCED MASTER V3.5ØØ *)
(**********************************************************)
(* PUSH_CHANNEL RANGES: >=8Ø ----- <=89 *)
(* TV TUNER CONTROL SECTION: *)
(* (* KEYPAD *) [TP,8Ø]..[TP,89] *)
(**********************************************************)
(**********************************************************)
(* DEVICE DEFINITIONS GO BELOW *)
(**********************************************************)
DEFINE_DEVICE
...
(**********************************************************)
(* ACTUAL PROGRAM GOES BELOW *)
(**********************************************************)
Содержание Axcess
Страница 1: ...instruction manual Software Axcess Programming Language ...
Страница 8: ...vi Axcess Programming Language Table of Contents ...
Страница 12: ...Introduction 4 Axcess Programming Language ...
Страница 22: ...Axcess Basics 14 Axcess Programming Language ...
Страница 38: ...Channel Characteristics 30 Axcess Programming Language ...
Страница 54: ...Levels 46 Axcess Programming Language ...
Страница 62: ...Operators 54 Axcess Programming Language ...
Страница 66: ...Variable Types and Conversions 58 Axcess Programming Language ...
Страница 70: ...Two Dimensional Arrays 62 Axcess Programming Language ...
Страница 80: ...While Keywords 72 Axcess Programming Language ...
Страница 86: ...Using Buffers 78 Axcess Programming Language ...
Страница 94: ...Waits and Timer Keywords 86 Axcess Programming Language ...
Страница 102: ...Using Subroutines 94 Axcess Programming Language ...
Страница 108: ...Include Files and System_Calls 100 Axcess Programming Language ...
Страница 120: ...Compiler Error Messages 112 Axcess Programming Language ...
Страница 124: ...The External_Control Protocol 116 Axcess Programming Language ...
Страница 143: ...Index 135 Axcess Programming Language ...