36
Subject to change without notice
RS-232 Interface – Remote Control
The following commands are executed only if „kl1“ has been
sent before, so that REMOTE is on.
#tg0(E) = tracking generator off
#tg1(E) = tracking generator on
#vf0(E) = video fi lter off
#vf1(E) = video fi lter on
#tl+01.0(E) = tracking generator level of +1.0 dBm
#tl-50.0(E) = up to -50.0 dBm in 0.2 dB steps
#rl-30.0(E) = reference level of -30.0 dBm
#rl-99.6(E) = up to -99.6 dBm, in 0.2dB steps
#at0(E) = attenuator 0 (10, 20, 30, 40) dB
#bw1000(E) = bandwidth 1000 (120, 9) kHz
#sp1000(E) = Span 1000 MHz, selectable between
1000MHz and 1MHz in 1-2-5 sequence
#sp0(E) = zero span
#db5(E) = 5 dB/Div. scaling
#db10(E) = 10 dB/Div. scaling
#cf0500.000(E) = center frequency in xxxx.xxx MHz
#dm0(E) = detect mode off (average, max. hld)
#dm1(E) = detect mode on (average, max. hld)
#sa(E) = stores signal A in memory B
#vm0(E) = display signal A
#vm1(E) = display signal B (stored signal)
#vm2(E) = display A – B (A (actual) minus B
(stored signal))
#vm3(E) = display average mode detected signal
#vm4(E) = display max. hold mode detected signal
#br4800(E) = baud rate 4800 (9600, 38400, 115200) Baud
#bm1(E) = signal data transfer in 2048 byte block,
2001 signal byte, 3 check sum byte and
hex: 0x0d
#rc0(E) = recall (0 to 9) saved instrument settings
#sv0(E) = save (0 to 9) instrument settings
Special commands for emc measurement (only possible in
combination with zero span):
#es0(E) = „1 second measurement“ off
#es1(E) = prepares for a „1 second measurement“
(1second measuring time; zero span
activated and suitable resolution band
width selected)
#ss1(E) = starts a „1 second measurement“ at cur-
rent center frequency and transfers data of
the previous measurement.
Note: After a command has been received and executed the
spectrum analyser returns „RD“ (CR).
Example (emc measurement):
#es1(CR) (prepares for „1 second measurement), #cfxxxx.
xxx(CR), #ss1(CR) (1. measurement, data invalid), #cfxxxx.
xxx(CR), #ss1(CR) (2. measurement, transfer of 1. measure-
ment data), #cfxxxx.xxx(CR), #ss1(CR), .... , #es0(CR) (1 se-
cond measurement off).
Parameter Query (list of query commands):
The following queries are always answered even if the instru-
ment is not in remote condition (Remote Off; KL0).
Syntax:
#xx(E) = transfer parameter (xx = tg, tl, rl, vf, at, bw,
sp, cf, db, kl, hm, vn, vm, dm, uc)
Note: With the exception of
#hm(E) = query for instrument type
#vn(E) = query for fi rmware version
#uc(E) = query for measurement condition
(uncalibrated, calibrated)
other commands have been listed under „Setting Commands“.
1
st
Example:
„#uc(E) (uncalibrated)“: PC transmits #uc(CR). Instrument reply:
UC0(CR) (calibrated) or UC1(CR) (uncalibrated)
2
nd
Example:
„#tl(E)“, PC query for tracking generator level: PC transmits
#tl(CR). Instrument reply: e.g. TL-12.4 (CR)
3
rd
Example:
„#vn(E)“, PC query for fi rmware version: PC transmits #vn(CR).
Instrument reply: x.xx(CR) (e.g. x.xx = 1.23)
4
th
Example:
„#hm(E)“, PC query for instrument type: PC transmits #hm(CR).
Instrument replies with:
5014-2 (CR) or 5012-2
5
th
Example:
PC transmits a command sequence to the analyzer:
#kl1(E) = switch „Remote“ on
#cf0752.000(E) = sets center frequency to 752 MHz
#sp2(E) = sets a span of 2 MHz
#bw120(E) = selects a resolution bandwidth of 120 kHz
#kl0(E) = switches from remote to manual operation
Unknown or unrecognised commands do not cause a response
to the PC.
Detailed description of #bm1 command
#BM1(CR) = block mode (transfers 2048 data byte via
RS-232 interface)
The transfer data consist of 2048 byte: trans_byte [0] up to
trans_byte [2047]
The 2048 data byte contain 2001 signal byte, the center frequency
parameter and a check sum for the signal byte.
The signal data allocate the following transfer data byte.
trans_byte[n] = sig_data[n] ( n = 0 bis n = 2000):
trans_byte[0] = sig_data[0]
trans_byte [2000] = sig_data[2000]
The check sum is a 24 bit value ( = 3 Bytes ) and generated as
follows:
Checksum = sig_data[0] +sig_data[1] + ... sig_data[1999] + sig_
data[2000] (sum of all signal data)
The 24 bit check sum allocates the following transfer data
byte:
trans_byte[2044] = 1.Byte of checksum [MSB]
trans_byte[2045] = 2.Byte of checksum
trans_byte[2046] = 3.Byte of check sum [LSB]
The center frequency parameter is allocated to the following
transfer data byte:
trans_byte [2016] = ‘C’; trans_byte [2017] = ‘F’; trans_byte [2018]
= ‘x’;
trans _byte [2019] = ‘x’; trans_by te [2020] = ‘x’; trans_by te [2021]
= ‘x’;
trans_byte [2022] = ‘.’; trans_byte [2023] = ‘x’; trans_byte [2024]
= ‘x’;
trans_byte [2025] = ‘x’; (x= ‘0’ to ‘9’) Example: CF0623.450
(These bytes are not being used for check sum calculation)
The last sign is always CR ( Carriage Return)
trans_byte[2047] = 0D hex (Carriage Return)
All unused bytes are set to „00 hex“.
Reference between signal data and screen display
The signal data are the result of 2001 analog/digital conver-si-
ons during one sweep.
X-Position: The analog value of the fi rst byte „sig_data[0]“ is
displayed at the trace start position (left). The following values
are displayed linearly until sig_dat[2000] is reached, which is