beautypg.com

HEIDENHAIN ND 720 v.3 User Manual

Page 52

background image

52

Delay times for data output

Storage delay

t

1

£ 0.5 ms

Data output follows t

2

t

2

£ 30 ms

Regeneration time after data output

t

3

³ 0 ms

Duration of data output in seconds:

187 • number of axes + 11 • number of line feeds

t

D

=

Baud rate

t2

t3

tD

CTRLB

CTRLB

t1

Measured value output with CTRL B
If the control character STX (CTRL B) is received over the RS-232-C

interface, the measured value referenced to this time point will be

sent over the interface. CTRL B is received over the RXD line and the

measured values are output over the TXD line.

The measured values can be received and stored using a terminal

program (e.g. Hyper Terminal, included with Windows® ).

The basic program at the upper right illustrates the basic structure of a

program for measured-value output.

Next possible signal for measured value output: t

E

= t

1

+t

2

+ t

D

+ t

3

[s]

Measured

V

alue

O

utput

BASIC program for measured value output:

10

L%=48

20

CLS

30

PRINT "RS232/V.24"

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

* 1.08

Bateil2.pm6

27.03.2002, 12:09

52

This manual is related to the following products: