Gb 7. interface protocol rs-232 – WIKA CTH6300 Benutzerhandbuch
Seite 34

34
WIKA operating instructions, models CTH6300 and CTH6500
2079988.04 07/2014 GB/D
GB
7. Interface protocol RS-232
CTH6500
Recognise MEASURED VALUE 1 + 2 automatically
FC (hex)
Enable keyboard
0 (hex)
Read version number of firmware
I (ASCII)
Read storage (only for instruments with data logger)
n (ASCII)
If data are read out from the instrument using the FC (hex) command, the
keyboard is locked. It can be enabled again using the 0 (hex) command.
The data are sent by the instrument in the following format.
Data type = String
The string length depends on whether it is a 1-channel or a 2-channel instrument.
Example: Turbo Pascal source code for interface initialisation
PROCEDURE V24open (com1, com2: Boolean);
{RS 232 initialisation}
VAR value: Byte;
BEGIN
IF com1
THEN BEGIN
{of COM 1 initialisation}
PORT
[$3FB]: =
128;
{Enable Baud entry}
PORT
[$3F8]: =
48;
{Baud rate - LSB, 2400 Baud}
PORT
[$3F9]: =
0;
{Baud rate - MSB}
PORT
[$3FB]: =
7;
{8 bits, No parity, 2 Stop}
PORT
[$3FC]: =
2;
{DTR = 0, RTS = 1}
Value:
= PORT
[$3F8]
{Clear receiving register}
END;
END;