Herunterladen Inhalt Inhalt Diese Seite drucken

Consort R311 Handbuch Seite 15

Inhaltsverzeichnis
Verfügbare Sprachen

Verfügbare Sprachen

This example makes the computer press SET on controller #7, in the
sophisticated mode:
10 OPEN "COM1:2400,N,8,2" AS #1 'prepares communication port
20 PRINT #1,"#007";
30 PRINT #1,"C1";
40 PRINT #1,CHR$(10);
Input of a value: the direct input of values ("V" command) is only possible
when the instrument is running a routine where also a manual input of
these values could be made. If not, it will ignore any "V" command from
the computer!
Examples of allowed routines are:
∗ temperature input (e.g. manual temperature compensation).
∗ control parameter input such as Low, High, ...
∗ time settings.
∗ input of manual buffer values.
Examples of NOT allowed routines are:
∗ during measurements or controls.
∗ when values have to be selected rather than changed (e.g. buffer
values in memory).
∗ while an electrode is being calibrated.
A 16-bit value (2's complement) should be transmitted in the following
sequence:
1st character =
2nd character =
3rd character =
4th character =
5th character =
When a correct checksum has been received, the instrument will send a
confirmation character "!" to the computer. If not, a question mark "?" is
sent. Both are eventually preceded by the identification number.
This example makes the computer to enter the value "1000" on controller
#7, in the sophisticated mode:
1000 = (H-byte 3)(x 256) + (L-byte 232)
10 OPEN "COM1:2400,N,8,2" AS #1
20 PRINT #1,"#007";
30 PRINT #1,"V";
40 PRINT #1,CHR$(3);
50 PRINT #1,CHR$(232);
60 PRINT #1,CHR$(235);
70 PRINT #1,CHR$(10);
'identification number 7
'SET key pressed
'LF, command closed
"V" (start a value input)
highest byte of the value in ASCII
lowest byte of the value in ASCII
checksum of 2nd and 3rd character in ASCII
LF, linefeed (ASCII-10)
'prepares communication port
'identification number 7
'start a value input
'highest byte of value
'lowest byte of value
'checksum of both bytes
'LF, closes command
12
Inhaltsverzeichnis
loading

Inhaltsverzeichnis