Sample Quickbasic 4.0 Program; Serial Interface Command Summary - Omega Engineering CYD201 Operator's Manual

Table of Contents

Advertisement

OMEGA Model CYD201/CYD208 User's Manual
4.1.4
Sample Quick Basic 4.0 Program
STARTUP: OPEN "COM1:300,O,7,1,RS" FOR RANDOM AS #1
PRINT "TYPE 'QUIT' TO EXIT"
RESTART: PRINT
INPUT "ENTER COMMAND"; A$
IF A$ = "QUIT" THEN GOTO FINISH 'check for quit request
A$ = A$ + CHR$(13) + CHR$(10)
PRINT #1, A$;
R = INSTR(A$, "W")
IF R = 0 THEN GOTO REJUMP
FOR Z = 1 TO 500: NEXT Z
LINE INPUT #1, B$
PRINT B$;
REJUMP:
GOTO RESTART
FINISH:
CLOSE #1
END
4.2

SERIAL INTERFACE COMMAND SUMMARY

Command Function
F0
Sensor Units for Setpoint
H
High Alarm Setpoint
L
Low Alarm Setpoint
R
Reset Alarm
WA
Switch ID & Alarm Data Query
WS
Sensor Reading & Alarm Status Query
* Model CYD208 Only.
Below is an explanation of the command list structure.
Command Name
Syntax of user input.
Information returned in
response to query.
4-4
Brief Description of Function
Explanation of
returned data.
'open the serial port
'print 'QUIT' message
'print blank line
'get command to send
'adding CR and LF
'sending command string
'scan for W/query
'if not query skip print
'short delay
'read back CYD201/CYD208 response
'print instrument response
'jump back to beginning
'close serial port
'end/exit program
Command Function
Y
YC
YH
YS
WY
R
Input:
Returned:
Remarks:
Scan Dwell Time *
Scanner Channel Selection *
Scan Disable *
Scan Enable *
Scan and Dwell Query *
Alarm Reset.
R
Nothing
Used to reset
the alarm.
Remote Operation

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cyd208

Table of Contents