HD52.3D
- 27 -
V1.11
8
PROPRIETARY RS485 MODE
In proprietary RS485 mode, the instrument sends the acquired measurements only if re-
quested by the PC.
To use this mode, you must connect to a RS485 or RS422 serial port. Communication parame-
ters should be set in the PC or data logger as follows:
•
Baud rate:
9600 to 115200 (same as the setting in the instrument)
•
Data bits:
8
•
Parity:
None
•
Stop bits: 2
The instrument is requested to send measurements by generating a
Break Signal
(*)
on the serial
line for at least 2
ms, and then sending the following command, consisting of 4 ASCII characters:
M<Address><x><x>
with <Address> = address of the instrument measurements are requested to
<x> = any ASCII character
E
XAMPLE
To ask the instrument with address 2 to send the acquired measurements, do the following:
1)
Break
Signal
for at least 2
ms;
2) Send command:
M2aa
.
The instrument answers with the following string:
IIIIM<Address>I&<M1><M2>….<Mn><SP>&AAAM<Address><CS><CR>
with <Address> = address of the instrument sending measurements
<M1><M2>….<Mn> = values of the first, second,…., nth measurement
<SP> = space
<CS> = checksum (hex value of the 8-bit checksum of all the preceding characters)
<CR> = ASCII character
Carriage Return
Fields <M1><M2>….<Mn> consist of 8 characters each. Measurement values are justified
right; spaces can be added to the left margin of the values to obtain the 8 character length re-
quested by the fields. The sequence of the measurement values <M1><M2>….<Mn> is con-
figurable (see chapter 6 “
CONFIGURATION”).
E
XAMPLE
Supposing that the instrument with address 2 measures the following values (the measuring
unit is not considered, being not output by the instrument): M1=2.23, M2=-28.34, M3=0.34,
M4=28.30, M5=359.3, M6=-1.3, the instrument reply takes the following form:
IIIIM2I& 2.23 -28.34 0.34 28.30 359.3 -1.3 &AAAM28C<CR>
A minimum time interval should elapse between two commands, depending on the Baud Rate
setting:
Baud Rate
Minimum interval between two commands
9600 200
ms
19200 100
ms
38400 70
ms
57600 40
ms
115200 25
ms
(*) Break
Signal
means
interruption of
the
serial communication
for a given time interval. It is used to
inform the devices connected to the network that a command is going to be sent.
Содержание HD52.3D... series
Страница 43: ......