Omega Engineering CYD201 and CYD208 Thermometer User Manual


 
OMEGA Model CYD201/CYD208 User’s Manual
4-4 Remote Operation
4.1.4 Sample Quick Basic 4.0 Program
STARTUP: OPEN “COM1:300,O,7,1,RS” FOR RANDOM AS #1
‘open the serial port
PRINT “TYPE ‘QUIT’ TO EXIT” ‘print ‘QUIT’ message
RESTART: PRINT ‘print blank line
INPUT “ENTER COMMAND”; A$ ‘get command to send
IF A$ = “QUIT” THEN GOTO FINISH ‘check for quit request
A$ = A$ + CHR$(13) + CHR$(10) ‘adding CR and LF
PRINT #1, A$; ‘sending command string
R = INSTR(A$, “W”) ‘scan for W/query
IF R = 0 THEN GOTO REJUMP ‘if not query skip print
FOR Z = 1 TO 500: NEXT Z ‘short delay
LINE INPUT #1, B$ ‘read back CYD201/CYD208 response
PRINT B$; ‘print instrument response
REJUMP: GOTO RESTART ‘jump back to beginning
FINISH: CLOSE #1 ‘close serial port
END ‘end/exit program
4.2 SERIAL INTERFACE COMMAND SUMMARY
Command Function Command Function
F0 Sensor Units for Setpoint Y Scan Dwell Time *
H High Alarm Setpoint YC Scanner Channel Selection *
L Low Alarm Setpoint YH Scan Disable *
R Reset Alarm YS Scan Enable *
WA Switch ID & Alarm Data Query WY Scan and Dwell Query *
WS Sensor Reading & Alarm Status Query
* Model CYD208 Only.
Below is an explanation of the command list structure.
Command Name
Brief Description of Function
Syntax of user input.
R
Input:
Returned:
Remarks:
Alarm Reset.
R
Nothing
Used to reset
the alarm.
Information returned in
response to query.
Explanation of
returned data.