R S - 2 3 2 I n t e r f a c e
RS-232 Interface: Reading measurement
results and remote control.
Attention:
All terminals of the RS-232 interface are galvanically
connected to the instrument chassis and hence also
to the safety ground (protective earth PE).
STOP
Elevated measurements, i.e. measurements where the input
and output terminals and hence also the instrument chassis
are connected to a high reference potential are not permitted
and endanger operator, instrument, interface and peripheral
devices! In case these warnings and the warnings given in the
section „Safety" are disregarded, HAMEG refuses any liability for
personal injury and/or damage to HAMEG or other equipment,
possible damages will not be repaired under the warranty
Description
The instrument features a RS-232 female 9-pin sub D con-
nector on its back panel. This bidirectional interface allows to
remotely control the instrument as well as the transmission of
parameters and measurement results to a PC.
RS-232 cables
The shielded cable must be
pinout is as follows:
Pin Signal
2
TX data (from the instrument to the external device)
3
RX data (from the external device to the instrument)
5
Ground (connected to the chassis and to safety ground PE)
9
+5 V
power supply for extermal devices (max. 400 mA)
DC
The maximum signal amplitude at pins 2 and 3 is ±12 V.
RS-232 protocol N – 8 –1 (no parity, 8 data bits, 1 stop bit)
Adjustment of Baud rate
After turn-on of the instrument, the Baud rate will be set to 9600.
It can be changed to 4800, 38400 or 115200 by a command.
Data communication
After turn-on (POWER), the instrument will automatically trans-
mit the message „HAMEG HM5530" at 9600 Baud.
The instrument is delivered with a CD-ROM containing a pro-
gram which will run under Windows Me, NT 4.0 (with service
pack), 2000 and XP. Updates are available on the HAMEG
homepage www.hameg.de.
Commands from the pc to the HM5530.
General structure of commands: Each command/request
must be preceded by # (23 hex = 35 dec), followed by 2. With
commands, the parameters must follow the characters. Each
command is terminated by „Enter" (hex 0x0d). No distinction
between lower and upper case. The unit is always the same
and is not included.
Listing of control commands
(E)
= Enter
(CR)
= Carriage return
46
Subject to change without notice
3 m and connected 1 : 1. The
<
#kl0(E)
= Key-lock off (remote control off, pushbutton
dark)
#kl1(E)
= Key-lock on (remote control active, pushbutton
lit)
The following commands are only executed when
remotely controlled: Remote On; kL 1):
Amplitude:
#rl-30.0(E) = Referenz level (Unit: dBm or dBmV, or dBμV)
#ra0(E)
= Ref level automatic OFF
#ra1(E)
= Ref level automatic ON
#at0(E)
= Attenuator 0 (10, 20, 30, 40, 50) dB
#db5(E)
= 5 dB/Div.
#db10(E)
= 10 dB/Div.
#du0(E)
= dB-Unit : dBm
#du1(E)
= dB-Unit : dBmV
#du2(E)
= dB-Unit : dBμV
Frequency:
#cf1500.000(E)
= Center frequency in xxxx.xxx MHz
#sp2200.000(E)
= Span frequency in xxxx.xxx MHz
#sr0100.000(E)
= Start frequenz in xxxx.xxx MHz
#st0500.000(E)
= Stop frequenz in xxxx.xxx MHz
Filter:
#bw1000(E)
=
Bandwidth RBW = 1000 kHz (120, 9 kHz)
#ba1(E)
= Bandwidth automatic ON (RBW Auto)
#ba0(E)
= Bandwidth automatic OFF (RBW Manual)
#vf0(E)
= Video fi lter off (VBW = 50 kHz)
#vf1(E)
= Video fi lter on (VBW = 4 kHz)
Marker:
#mf0500.000(E)
= Marker frequency in xxxx.xxx MHz
#df0100.000(E)
= Delta (Marker) frequency in xxxx.xxx MHz
#mk0(E)
= (all) Marker OFF
#mk1(E)
= Marker ON
#mk2(E)
= Delta Marker ON
Signal:
#vm0(E)
= Display: Signal A (WRITE A)
#vm1(E)
= Display: Signal B (VIEW B) )
#vm2(E)
= Display: Signal A-B (CALC A-B)
#vm3(E)
= Display: Average (AVG)
#vm4(E)
= Display: Maximum Hold (MAX HOLD)
#sa(E)
= stored Signal A to memory B
#bm1(E)
= Signaltransfer im Block (2048 Byte)
2044 Signalbytes,
3 checksumbytes + 0x0d
#et0(E)
= External trigger OFF
#et1(E)
= External trigger ON
Test signal:
#tg0(E)
= Test signal generator off
#tg1(E)
= Test signal generator on
#tl+00.0(E) = Test signal level (Unit: dBm or dBmV, or dBμV)
#tl-10.0(E) = –10.0 dBm to 0.0 dBm in 0.2 dB steps
#br38400(E) = Baudrate 38400 (4800, 9600, 19200, 115200)
Baud (This command sends no „RD(0x0D)"
EMV measurement:
#es0(E)
= switch OFF :"Single shot"
#es1(E)
= switch ON: "Single Shot"
#ss1(E)
= Starts a "Single Shot" (Sweep time: 1000ms)
After the reception and execution of a command,
the spectrum analyzer answers with: „RD" (CR).