COMPUTER CONTROL
The ten AD1024 CPU control ports use asynchronous, full
duplex, RS-232C protocol. As shipped, all ports are set for
operation at 1200 baud with 8 data bits, 1 stop bit, and no
parity. The AD1024 ports are programmed for type of use and
communication parameters via the on-screen Ports menu (page
4-22). For computer control of the AD1024, the port must be
set for “KEYBOARD” Port Use via this menu.
ASCII code is used for all system control commands. The
ASCII codes used to control the AD1024 are printable ASCII
characters; these are shown in the table at the right. Lower
case ASCII letters a through d are used as command
terminators; these are shown in the table to the lower right.
The terminator codes identify the source of the command; that
is, which keyboard connected to an AD1981 Port Expander
(four keyboards may be connected via a Port Expander).
The software XON/XOFF handshake codes, Control Q (DC1
or HEX 11) and Control S (DC3 or HEX 13), are supported.
Other ASCII control codes such as LF (HEX 0A) are ignored.
To request specific Switching System actions, the computer
must send the same characters that would be sent from a
keyboard for the desired actions. For example:
To call camera 25 to the current monitor, send the following
command sequence: 25, Camera, Terminator
(ASCII codes: 25 # a) or (HEX codes: 32 35 23 61).
To call preset scene 3 from that camera, send the following
command sequence: 3, Call Shot, Terminator
(ASCII codes: 3 \ a) or (HEX codes: 33 5C 61).
To request continuous system actions, such as pan, tilt, zoom,
or focus, repeat the command codes for that action, followed
by a terminator, for as long as the action is desired. The
command code sequence should be repeated approximately 15
times per second. For example:
To pan the camera to the right, repeat the following control
commands, 15 times per second, until the desired camera
position is reached: “Pan Right”, “Pan Right”, etc.
(ASCII codes: R a R a etc.) or
(HEX codes: 52 61 52 61 etc.)
To focus the lens on a closer object, repeat the following
control commands, 15 times per second, until the desired
focal length is attained: “Focus Near”, “Focus Near”, etc.
(ASCII codes: N a N a etc.) or
(HEX codes: 4E 61 4E 61 etc.)
AD1024 setup programming commands are not provided via
these codes. An optional software package is available for
external setup programming from a PC.
Contact American Dynamics Applications Department for a
more detailed Applications note on ASCII remote control.
ASCII/HEX Codes for System Control
Command ASCII HEX
ACK _ 5F
ALARM NEW E 45
ALARM OLD G 47
ALARM CLEAR I 49
AUX ON A 41
AUX OFF B 42
CALL SHOT \ 5C
CAMERA # 23
CAMERA ARM ( 28
CAMERA HOLD H 48
CAMERA DISARM ) 29
FOCUS FAR F 46
FOCUS NEAR N 4E
IRIS CLOSE C 43
IRIS OPEN O 4F
LENS TELE T 54
LENS WIDE W 57
LOCKOUT CAMERA K 4B
MONITOR M 4D
MONITOR ARM [ 5B
MONITOR DISARM ] 5D
NEXT CAMERA + 2B
NO LOCKOUT J 4A
PAN LEFT L 4C
PAN RIGHT R 52
PROGRAM P 50
RUN SEQ S 53
SALVO $ 24
SET SHOT ^ 5E
TILT DOWN D 44
TILT UP U 55
ZERO 0 30
ONE 1 31
TWO 2 32
THREE 3 33
FOUR 4 34
FIVE 5 35
SIX 6 36
SEVEN 7 37
EIGHT 8 38
NINE 9 39
F1 % 25
F2 ` 60
ASCII/HEX Codes for Command Terminators
Function ASCII HEX
KBD a a 61
KBD b b 62
KBD c c 63
KBD d d 64
cr 0D
APPENDIX AD1024
A-10
Comentarios a estos manuales