14 TM-1010 RS-232C CONTROL
The TM-1010 can be controlled its built-in
microcomputer chip (CPU) by external RS-232C
interface. The internal CPU controls TM-1010
operation mode and DSP parameter changes.
(Contact PULNiX for the TM-1040 software disket)
14-1. RS-232C communication default condition
Parity : None
Data : 8 bit
STOP : 2 bit
Baud rate : 9600 bps
( If other communication condition is required, please
contact PULNiX.)
14-2. RS-232C command
The TM-1010 command packet starts with STX (Start
of Text = 02H) and then followed by Command Code
(C.C. ....one alphabet) , Command option parameter
and ETX (End of Text = 03H) to end.
One packet is 8 bit ASCII code.
When a packet is received by TM-1010 ( ETX:03H is
detected), it reads internal packet of the receiver buffer.
If it is the correct packet then it processes the
parameters based on the command. When the process
is completed, it sends a completion signal (AK packet).
If an error is detected, No-go signal (NK packet) is sent
back and disregards the packet signal in the buffer.
When NK packet is sent from TM-1010, the host must
correct the error and resend the packet.
Example: Executing shutter control
In order to set EE mode, The C.C. packet is sent as
follows,
STX, “S”, “E”, ETX
02H,53H,45H,03H
where “S”.....Shutter control command mode
“E”.....EE (auto-shutter) mode
The TM-1040 will send back
STX,ACK,ETX or STX,NAK,ETX
02H,06H,03H 02H,15H,03H
14.3 Command S
Function: Shutter control command
Shutter mode selection and shutter speed setting.
14-3-1 Manual shutter mode
STX,”SM”, ”0” -”9” or “S”, ETX
02H,53H,4DH, 30H - 39H or 53H,03H
It enables manual shutter operation. Select “0” - “9”
shutter speed. It over-rules the back panel setting.
When “S” code is selected, the back panel shutter
switch is activated for the speed selection.
14-4-2 Async shutter mode
STX, “SA”,”0” - “9” or “S”,ETX
02H, 53H,41H, 30H - 39H, or 53H ,03H
It enables async shutter mode.
14-3-3 Direct shutter mode
STX, “SX”, “1A0”, ETX
02H, 53H, 58H, 31H,41H,30H, 03H
It selects a mode for external shutter speed control.
Hexadecimal shutter number (3 digit) follows “SX”
command. (eg. “1A0” = 416H, shutter speed = (1050-
416) = 634H = 20 msec...1/50 sec). It moves shutter
discharge pulse at every 1H (32 µsec.) period
from 0 (no shutter) to 1049 H (=1/32,000 sec.).
14-4 Command M
Function: Changes memory mode between
Freeze and free -run mode
Freeze mode: STX, “M”, “0”, ETX
02H,4DH, 30H, 03H
Free-run mode: STX, “M”, “1”, ETX
02H, 4DH, 31H, 03H
14-5. Command G
Function: A/D pre-amp gain control
First value next to “G” command is A channel, second
value is B channel.
STX, “G”, “FF”, “FF”, ETX
FFH = gain 255
02H, 47H, 46H,46H, 46H,46H, 03H
STX, “G’, “12”, “10”, ETX
02H, 47H, 31H, 32H, 31H, 30H, 03H
Channel A = gain control value 18
Channel B = gain control value 16
It changes the gain by hexadecimal 2 digit.
VO = 2/255 X SET VALUE + 2.0 V
Value : 0 to 255
VO = D/A output voltage
(Vo min = 2.0 V...8 dB, V0 max = 4.0V...28 dB)
14-6. Command V
Function: A/D reference voltage control
First value next to “v” command is Vref top, second
value is Vref bottom.
STX, “V”, “7E”, “64”, ETX
7EH = Vref top: 126
64H = Vref bottom: 100
02H, 56H, 37H,45H, 36H,34H, 03H
14