OMEGA Model CYD201/CYD208 User’s Manual
4.1.4Sample 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.2SERIAL 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.
Brief Description of Function
Command Name
Syntax of user input. | R | Alarm Reset. |
Input: |
| |
| R | |
Information returned in | Returned: | Nothing |
response to query. | Remarks: | Used to reset |
| ||
Explanation of |
| the alarm. |
returned data. |
|
|
Remote Operation |