Bowers Group Sylvac D100S Readouts User Manual

Page 47

Advertising
background image

46

b/ remote command of D100S unit:

10 CLS
20 OPEN"COM1: 4800, E,7, 1, CS, DS, CD" AS#1
30 PRINT" Input command word"
40 INPUT B$

enters word for remote command of D100S (e.g. PRI for
transmitting a value)

50 PRINT#1, B$

outputs command word through RS232 port

60 IF LOC(1) > 1 THEN 100

waits for any response from D100S unit

70 K$ = INKEY$
80 IF K$ = CHR$(13) THEN 130

program stopped by pressing Enter key

90 IK K$ = "" THEN 60 ELSE 30

pressing another key allows output of a new command word

100 LINE INPUT#1, A$
110 PRINT A$

displays eventual response from D100S

120 GOTO 70

ready for new input

130 END

For transmission of long characters strings, e.g. for the transmission of memorized values (Store function), the compu-
ter can use the Xon/Xoff protocol to control transmission. If the RS232 buffer of the computer exceeds a given stated
limit, e.g. 200 bytes (capacity is 255 bytes), the computer stops transmission by sending Xoff (= ASCII code 19 =
CHR$(19)). When the computer is ready for a new input, it will transmit Xon (= ASCII code17 = CHR$(17)).

Pinout of RS232 and Centronics connectors: refer to Sections 1.8.1. and 1.8.4.

Various RS232 connection cables or D100S Centronics printer cable are available from Sylvac (refer to Section 1.14).

Advertising