Axcess Keywords

  1. DEFINE_START
    The DEFINE_START statement tells the compiler that the following statements will be executed only once on power-up or system reset.
  2. DEFINE_CONSTANT
    • The DEFINE_CONSTANT section allows you to give numbers names.
    • Example:
    • DEFINE_CONSTANT
    • PLAY = 1
    • STOP = 2
  3. DEFINE_VARIABLE
    • DEFINE_VARIABLE
    • DEFINE_VARIABLE allows you to define storage locations. These may be used the same as channels (i.e. ON[var],OFF[var],etc.). Also variables can store values in the range of 0 to 65535. Arithmetic operators such as +, -, *, /, MOD, and the bitwise operators can be used on variables.
    • Arrays of bytes are also supported. Such arrays can be used as strings with CREATE_BUFFER, SEND_COMMAND, SEND_STRING, and other commands.
    • Example:
    • DEFINE_VARIABLE
    • SYSTEM_POWER
    • COUNTER
    • RS232_BUFFER[20]
  4. DEFINE_CALL
    DEFINE_CALL allows a series of commands to be given a name (often called a subroutine). Later in the program you can execute this series of commands with a CALL statement.
  5. SEND_STRING
    • SEND_STRING allow you to send a string of characters to a device.
    • Example:
    • SEND_STRING RS232,"'FFWD',$0D"
  6. DEFINE_MUTUALLY_EXCLUSIVE
    • DEFINE_MUTUALLY_EXCLUSIVE allows you to define which channels and/or variables are interlocking (only one can be on at a time).
    • Example:
    • DEFINE_MUTUALLY_EXCLUSIVE
    • ([CASSETTE,PLAY]..[CASSETTE,REW])
    • ([SYSTEM_ON],[SYSTEM_OFF])
    • NOTE: The double period (..) shortcut can be used to specify a range of device-channels to be defined as mutually exclusive.
  7. SEND_COMMAND
    • SEND_COMMAND allows you to send card specific commands to a card.
    • Example:
    • SEND_COMMAND VRG,'P1L50T10'
  8. WAIT
    • WAIT causes a delay of time, specified in .1-second intervals, before the wait section is executed. The name is optional.
    • Example:
    • WAIT 10 'wait name'
    • {
    • do this after 1 second
    • }
  9. CALL
    • CALL executes a subroutine that was previously defined by a DEFINE_CALL statement.
    • Syntax:
    • CALL 'call name'
    • Example:
    • CALL 'DO_ROOM_PRESET'
  10. PULSE
    • PULSE will turn a channel on for a period of time then back off. The pulse on time is determined by SET_PULSE_TIME.
    • Example:
    • PULSE[RELAY,screen_down]
    • PULSE[variable]
Author
Anonymous
ID
54816
Card Set
Axcess Keywords
Description
Definitions for axcess keywords
Updated