Computer Control - American Dynamics AD2052 System Programming Manual

Megapower ii wip system
Table of Contents

Advertisement

APPENDIX

COMPUTER CONTROL

The eight 2052CPM 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 2052 control ports are programmed for type of use
and communication parameters via the on-screen Ports menu
(page 4-20). For computer control of the 2052, the port must
be set for "KEYBOARD" Port Use via this menu.
ASCII code is used for all system control commands to these
ports. The ASCII codes used to control the 2052 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 a 1981 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 2052 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.)
2052 setup programming commands are not provided via these
codes. The optional software package 2052SW15 is available
for external 2052 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
ACK
ALARM NEW
ALARM OLD
ALARM CLEAR
AUX ON
AUX OFF
CALL SHOT
CAMERA
CAMERA ARM
CAMERA HOLD
CAMERA DISARM
FOCUS FAR
FOCUS NEAR
IRIS CLOSE
IRIS OPEN
LENS TELE
LENS WIDE
LOCKOUT CAMERA
MONITOR
MONITOR ARM
MONITOR DISARM
NEXT CAMERA
NO LOCKOUT
PAN LEFT
PAN RIGHT
PROGRAM
RUN SEQ
SALVO
SET SHOT
TILT DOWN
TILT UP
ZERO
ONE
TWO
THREE
FOUR
FIVE
SIX
SEVEN
EIGHT
NINE
F1
F2
ASCII/HEX Codes for Command Terminators
Function
KBD a
KBD b
KBD c
KBD d
A-10
ASCII
HEX
_
5F
E
45
G
47
I
49
A
41
B
42
\
5C
#
23
(
28
H
48
)
29
F
46
N
4E
C
43
O
4F
T
54
W
57
K
4B
M
4D
[
5B
]
5D
+
2B
J
4A
L
4C
R
52
P
50
S
53
$
24
^
5E
D
44
U
55
0
30
1
31
2
32
3
33
4
34
5
35
6
36
7
37
8
38
9
39
%
25
`
60
ASCII
HEX
a
61
b
62
c
63
d
64
cr
0D

Advertisement

Table of Contents
loading

This manual is also suitable for:

2052

Table of Contents