![Sylvac D 100S Instructions For Use Manual Download Page 49](http://html.mh-extra.com/html/sylvac/d-100s/d-100s_instructions-for-use-manual_1417043049.webp)
49
1.6.14.7 Programming on a PC
An application diskette for communication with PC can be obtained from a Sylvac agent. This diskette includes a
Demonstration program written in Pascal for data acquisition and remote command of
D100S
unit.
Basic (QBASIC), supplied with all PCs, is the most simple language to use. Below are 2 examples written in this
language found on the diskette.
a/ acquisition of one measured value :
For transmission of a long characters strings, e.g. for the transmission of memorized values (Store function), the
Computer can use the Xon/Xoff protocol to control transmission. If the RS 232 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 code 17=CHR$(17))
Pinout of RS232 and Centronics connectors :
refer to Sections 1.8.1 et 1.8.4
Various RS232 connection cables or D100S Centronics printer cable are available from Sylvac.
(
refer to section. 1.14
).
10 CLS
20 OPEN “COM1:4800,E,7,1,CS,DS,CD” AS#1
30 IF INKEY$ <> “” THEN 80
40 IF LOC(1) = 0 THEN 30
50 LINE INPUT#1, A$
60 PRINT A$
70 GOTO 30
80 END
b/ remote command of D100S unit :
10 CLS
20 OPEN “COM1:4800,E,7,1,CS,DS,CD” AS#1
30 PRINT “Donner le mot de commande”
40 INPUT B$
50 PRINT#1, B$
60 IF LOC(1) > 1 THEN 100
70 K$ = INKEY$
80 IF K$ = CHR$(13) THEN 130
90 IF K$ = “ ” THEN 60 ELSE 30
100 LINE INPUT#1,A$
110 PRINT A$
120 GOTO 70
130 END
Clear screen
Selects communication port 1 or computer and the following
transmission parameters : 4800 bauds, even paryty, 7 bits /car.
1 stop bit.
CS
inibits time-out control of
CTS
(Clear To Send),
DS
for
DSR
line (Data Set Ready) and
CD
for
CD line
(Carrier
Detect).
Programs stops if any key is pressed.
Wait if RS232 input buffer is empty.
Inputs one complete line up to CR.
Displays value transmitted by
D100S
Ready for new entry.
Enters word for remote command of
D100S
(e.g. PRI for
transmitting a value).
Outputs command word through RS232 port.
Wait for any response from
D100S
unit.
Program stopped by pressing by pressing
Enter
key.
Pressing another key allows output of a new command word
Displays eventual response from
D100S
Ready for new input.
Summary of Contents for D 100S
Page 2: ...2 ...
Page 76: ...76 Edition 2005 12 V1 4 SYL D100S E 681 038 110 ...