beautypg.com

HEIDENHAIN ND 231 B v.2 User Manual

Page 41

background image

41

Baud rate

Measured value output with CTRL B

If the display unit receives the control character STX (CTRL B)
over the RS-232-C/V.24 interface, it immediately transmits the
current measured value back over the interface. CTRL B is
received over the RXD line of the interface, and the measured
values are transmitted over the TXD line.

The measured value can be received and saved using a
terminal program (e.g. HyperTerminal, which is a component
of Windows®).

The basic program below shows the fundamental structure of
a program for measured value output.

Characteristic times for measured value output

Process

Time

Storage after

t

1

£ 1 ms

Measured value output after

t

2

£ 50 ms

Regeneration time

t

3

³ 0

If functions such as series of measurements with
DIFF value display are active, these times are
prolonged.

Duration of measured-value transfer

t

D

=

[s]

Signal transit times for measured value output after "Ctrl B"

BASIC program for measured value output over “Ctrl B”

10

L%=18

20

CLS

30

PRINT "V.24/RS-232-C"

40

OPEN "COM1:9600,E,7" AS#1

50

PRINT #1, CHR$ (2);

60

IF INKEY$<>""THEN 130

70

C%=LOC(1)

80

IF C%

90

X$=INPUT$(L%,#1)

100 LOCATE 9,1

110 PRINT X$;

120 GOTO 50

130 END

t

1

t

2

Ctrl B

t

D

t

3

Ctrl B

187 + (11 • number of blank lines)

RS-232-C/V.24 Data Interface (X31)