beautypg.com

HEIDENHAIN ND 221 B v.2 User Manual

Page 31

background image

31

Operating parameters for measured value output

Parameter

Function

P50 RS232

Baud rate

P51 RS232

Number of additional blank lines for
measured value output

Duration of measured value transfer

t

D

=

[s]

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

187 + (11 • number of blank lines)

baud rate

Duration of storage and measured value transfer
The time required for data transfer depends on the selected
baud rate and the number of additional blank lines.

Latch signal

Storage

Data transfer

after

after

STX (CTRL B)

† 1 ms

† 37 ms

PRINT (MOD key)

† 18 ms

† 36 ms

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.

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

This manual is related to the following products: