User Guide
Channel Characteristics
28
Axcess Programming Language
Axcess first evaluates the Boolean expression. If the expression is evaluated as true, Axcess
replaces the expression with a 1; otherwise Axcess replaces it with a Ø. Only one of these will be
evaluated as true because a variable cannot have two different values at one time. Therefore, the
direct assignment will assign a 1 (On) to the Touch Panel button for which the expression is true,
and a Ø (Off) to those that are false. Assigning a 1 to a device-channel is the same as turning that
device-channel's output ON.
Sample Program
A complete example program using a subroutine is given below. Here are the basic requirements
for the program:
! The devices used are one infrared/serial card, three AXB-CAM boxes, and one AMX
Touch Panel. The device numbers are 6, 97, 98, 99, and 128, respectively. The IR/serial
cards will transmit infrared code to a video projector.
! The Touch Panel will have three buttons. Here are the functions to be associated with
each button:
! Button 57: Projector to input 5, recall Preset 1 on Camera 1.
! Button 58: Projector to input 6, recall Preset 1 on Camera 2.
! Button 59: Projector to input 7, recall Preset 1 on Camera 3.
Here is the actual program:
DEFINE_DEVICE
VPROJ = 6 (* AXC-IR/S: PROJECTOR *)
CAMERA_1 = 97 (* AXB-CAM: PAN/TILT *)
CAMERA_2 = 98 (* AXB-CAM: PAN/TILT *)
CAMERA_3 = 99 (* AXB-CAM: PAN/TILT *)
TP = 128 (* AXU-CVA: COLOR VIDEO PANEL *)
DEFINE_CALL 'CAMERA MACRO' (WHICH_CAM)
{
PULSE[VPROJ,WHICH_CAM-CAMERA_1+15] (* SELECT INPUT 5,6 OR 7 *)
PULSE[WHICH_CAM,1Ø1] (* RECALL PRESET 1 *)
}
DEFINE_PROGRAM
PUSH[TP,57] (* CAMERA 1 *)
{
CUR_CAMERA = CAMERA_1
CALL 'CAMERA MACRO' (CAMERA_1)
}
PUSH[TP,58] (* CAMERA 2 *)
{
CUR_CAMERA = CAMERA_2
CALL 'CAMERA MACRO' (CAMERA_2)
}
PUSH[TP,59] (* CAMERA 3 *)
{
CUR_CAMERA = CAMERA_3
CALL 'CAMERA MACRO' (CAMERA_3)
}