
27
Instruction Manual C100
Example : PC Programme ( DOS, BASIC )
100 REM DATA REQUEST WITH DTR-LINE
110 OPEN "COM1,4800,E,7,2" FOR RANDOM AS #1
... open COM device
120 OUT &H03FC,&H000A
... reset DTR line
( COM1=3FC / COM2=2FC /
COM3=3EC / COM4=2EC )
130 DELAY 0.1
... 100 msec wait time
140 OUT &H03FC,&H000B
... set DTR line
150 INPUT #1,A$
... input measurement value
160 PRINT A$
... display measurement value
170 CLOSE #1
... close COM device
180
END
2. Data request by Request String "?" <cr> ( Bi-directional Opto RS232 )
The external device ( PC, statistic printer, multiplexer... ) sends a "?" <cr> to the column gauge
to request data.
Example : PC-Programme ( DOS, BASIC )
100 REM REQUEST MEASUREMENT VALUE BY "?"
110 OPEN "COM1,4800,E,7,2" FOR RANDOM AS #1
... open COM device
120 PRINT#1, "?" +CHR$(13);
… request measurement value
130 INPUT #1,A$
… input measurement value
140 PRINT A$
... display measurement value
150 CLOSE #1
… close COM device
160
END
5. 4 Transfer of measurement values
The
"SetUP"
menu
"Serial data output"
allows 2 different settings for data transfer.
1. Data transfer can be triggered by pressing either the foot or the hand switch or via an external
contact.
2. Continuous data transfer from the column gauge.
Refer to chapter 3.5
Column gauge : RS232
External gauge
RxD
□
□
TxD
TxD
□
□
RxD
Gnd
□
□
Gnd
2
3
5