Errors numbered -100 to -199 also generate a command error (CME) in the
Event Status Register (see Section 6.5.10.4). Errors numbered -200 to -299 also
generate an execution error (EXE) in the Event Status Register. Errors num-
bered -300 to -399 also generate a device-dependent error (DDE) in the Event
Status Register. Errors numbered -400 to -499 also generate a query error
(QYE) in the Event Status Register (see Section 6.5.10.4) .
6.6
Programming Example
Following on page 111 in Figure 12 is a listing of a sample BASIC program
that can be used to operate the 1560 remotely with a computer. This program
runs with QBASIC or GWBASIC on a PC-compatible computer. The program
uses the COM2 RS-232 port of the computer. For wiring of the interface cable
refer to Figure 11 in Section 6.2. The program requires the BAUD rate of the
1560 to be set to 2400, the DUPLEX to be HALF, and the LINEFEED to be
OFF. These parameters are set using the
SET UP DEVICE
function in the
MODULE
soft-key menu (see Section 5.4.2). Select the SER device. A win-
dow appears showing the setup parameters for the serial port. Set the parame-
ters as shown.
SET UP DEVICE: SER
BAUDRATE: 2400
DUPLEX: HALF
LINEFEED: OFF
The program first resets all operating parameters of the 1560 to default settings.
Then it programs the 1560 to measure channel 1 continuously. It will periodi-
cally check the operational status register and when it finds that a new measure-
ment is available it will read the measurement and print it on the computer
screen. To exit the program press any key on the computer keyboard.
1560 Thermometer Readout
User’s Guide
110
Содержание 1560 Black Stack
Страница 1: ...1560 Black Stack Thermometer Readout User s Guide Rev 932001 Hart Scientific...
Страница 20: ...1560 Thermometer Readout User s Guide 8 Figure 2 System Diagram...
Страница 27: ...15 2 Introduction Data Processing Figure 5 Data Flow...
Страница 70: ...RESET SYSTEM PARAMETERS PRESS ENTER TO CONTINUE PRESS EXIT TO CANCEL 61 5 Soft Key Functions System Menu...