Omega Engineering CL521 Operator's Manual page 40

Temperature calibrator/thermometer
Table of Contents

Advertisement

**************************************************************************
This example program communicates with the CL521. It is made for an IBM PC
compatible microcomputer. The language is Microsoft GW-BASIC.
**************************************************************************
Open the RS232 line for both input and output as a file No. 1. The baud rate is set to
600 bit/s, no parity bit (N), the data format is eight data bits (8), and one stop bit (1).
'
the device timeout is not checked (CSO, DSO, CDO)
10
OPEN "COM1: 600,N,8,1,CSO,DSO,CDO,BIN" FOR RANDOM AS #1
Fills input buffer with spaces
15
L$ = SPACE$(20)
Send "PI" message to the CL521. PI causes output of one message and disables
the automatic output. The input line should be cleared before continuing the
program execution. If there is extra characters on the line, it would disturb the
'
program execution later.
20
PRINT #1, "PI"
25
WHILE LOC{1) > 0
28
L$ = INPUT$(1, #1)
30
WEND
The thermocouple measurement with TC-type K is selected and one output
message requested. The keypad operations are allowed.
40
PRINT #1, "FIT6P1F0"
Wait until the entire message is on the line
45
WHILE LOC(1) <20
48
WEND
'
Read the message from the line
50
L$ = INPUT$(20, #1)
Check of M/C-switch position.
60
IF LEFT$(L$, 1) = "M" THEN 90
70
INPUT "Turn the M/C-switch to MEASUREMENT and press RETURN"; A$
80
CLS ; GOTO 40
'
Check of meas. unit.
90
IF MID$(L$, 18, 1) = "C" THEN 120
100 INPUT "Select Celsius as the meas. unit and press RETURN"; A$:
110 CLS; GOTO 40
Check of connections.
120 CLS : INPUT "Check the wiring and CJ-mode and press RETURN"; A$: CLS
Program heading on the screen
130 PRINT 'TRACKING OF TEMPERATURE CHANGES"
35.1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cl521dCl521-rs232cCl521-ma

Table of Contents