User Guide

Channel Characteristics
29
Axcess Programming Language
The program is explained step-by-step in the following section.
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 *)
The section above defines the five devices used in the program.
DEFINE_CALL 'CAMERA MACRO' (WHICH_CAM)
{
The section above begins the subroutine. Notice that the sequence must begin with a brace,
regardless of the size of the subroutine.
PULSE[VPROJ,WHICH_CAM-CAMERA_1+15] (* SELECT INPUT 5,6 OR 7 *)
PULSE[WHICH_CAM,1Ø1] (* RECALL PRESET 1 *)
}
The section above is the heart of the DEFINE_CALL. The first statement PULSEs the function on
the video projector's controller card corresponding to the input desired on the projector. Since the
functions on IR cards for video projectors have the switcher inputs located at 11-20, you can add 10
to the desired input number to obtain the needed IR function number. For instance, if
WHICH_CAM contains 98 (you selected Camera number 2 and input number 6 on the projector)
the first PULSE statement will activate function 16, which is usually the input 6 Select function on
video projector cards. The next PULSE recalls PRESET 1 on the selected camera.
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)
}
The main program starts in the above section. The code inside each PUSH sets the current camera
variable, then calls the camera macro with the selected camera passed as the WHICH_CAM
parameter.