Channel Characteristics
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:
!
!
Here is the actual program:
DEFINE_DEVICE
VPROJ
CAMERA_1
CAMERA_2
CAMERA_3
TP
DEFINE_CALL 'CAMERA MACRO' (WHICH_CAM)
{
PULSE[VPROJ,WHICH_CAM-CAMERA_1+15]
PULSE[WHICH_CAM,1Ø1]
}
DEFINE_PROGRAM
PUSH[TP,57]
{
CUR_CAMERA = CAMERA_1
CALL 'CAMERA MACRO' (CAMERA_1)
}
PUSH[TP,58]
{
CUR_CAMERA = CAMERA_2
CALL 'CAMERA MACRO' (CAMERA_2)
}
PUSH[TP,59]
{
CUR_CAMERA = CAMERA_3
CALL 'CAMERA MACRO' (CAMERA_3)
}
28
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.
!
= 6
= 97
= 98
= 99
= 128
(* AXC-IR/S: PROJECTOR *)
(* AXB-CAM: PAN/TILT *)
(* AXB-CAM: PAN/TILT *)
(* AXB-CAM: PAN/TILT *)
(* AXU-CVA: COLOR VIDEO PANEL *)
(* SELECT INPUT 5,6 OR 7 *)
(* RECALL PRESET 1 *)
(* CAMERA 1 *)
(* CAMERA 2 *)
(* CAMERA 3 *)
Axcess Programming Language