HEIDENHAIN ND 281 B v.2 User Manual
Page 50

50
RS-232-C/V.24 Data Interface (X31)
Propagation times for measured value output after “Ctrl B”
BASIC program for measured value output with “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)
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 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 transferred over the TXD line.
The measured values can be received and saved using a
terminal program (e.g. HyperTerminal, which is a component
of Windows
®
).
The basic program at the upper right 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
These times are prolonged if functions are active
(for example, series of measurements with DIFF
value display).
Duration of measured value transfer
t
D
=
[s]
baud rate