Omega Engineering CYD201 and CYD208 Sample Quick Basic 4.0 Program, Input, Returned, Remarks

Page 32

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.

 

 

4-4

Remote Operation

Image 32
Contents M789-038A June Warranty Return Requests / InquiriesTable of Contents Table of Contents List of Illustrations This Page Intentionally Left Blank Table of Contents Model CYD201/CYD208 General Description Chapter IntroductionGeneral Model CYD201/CYD208 Specifications ResolutionHandling Liquid Helium and Liquid Nitrogen LHe and LN2 Safety PrecautionsHandling Cryogenic Storage Dewars Recommended First Aid Electrostatic DischargeSafety Summary Identifying Esds ComponentsHandling Esds Components Ground The InstrumentSafety Symbols Do Not Operate In An Explosive AtmosphereKeep Away From Live Circuits Do Not Substitute Parts Or Modify InstrumentRepackaging for Shipment Chapter InstallationInspection and Unpacking Power and Ground Requirements Sensor Installation RecommendationsFour-Lead Measurement Two-Lead Vs Four-Lead MeasurementsTwo-Lead Measurement Connecting Leads To The Sensor Sensor MountingMeasurement Errors Due To AC Noise Terminal Description Sensor Input ConnectionsJ1 Input Sensor Curve Definition Rack MountingHole Sizes Model CYD208-DIN Rack MountingInitial Power UP Sequence Power UP ErrorsThis Page Intentionally Left Blank Installation Chapter Operation Units KEYAlarm Setpoint Scan Mode Model CYD208 OnlySetting Dwell Times Model CYD208 Only Alarm OperationSoftcal Compensations Latched And Unlatched AlarmsAlarm Fix Function Model CYD208 Only SoftCal Calibration Procedure Verifying SoftCal Operation Erasing SoftCal CompensationsOperation Serial Interface Chapter Remote OperationSerial Interface Connections Serial I/O RJ-11 Connector Pin Definitions J2 Serial I/OSerial Interface Operation Sample Basic ProgramSerial Interface Command Summary Sample Quick Basic 4.0 ProgramInput ReturnedInput F0x Returned Nothing Input Hxxx.x Returned NothingInput Lxxx.x Returned Nothing Input R Returned NothingSwitch ID and Alarm Data High or Low Parameter H = high alarm, L = low alarmInput YCx Returned Nothing End Scanning Model CYD208 OnlyScan Status Model CYD208 Only Sign,sensor reading,units,alarm status CrlfCurrent channel,sign,sensor reading,units, alarm statusCRLF This Page Intentionally Left Blank Remote Operation Chapter Service Model CYD201 Rear Panel ConnectionsModel CYD208 Rear Panel Connections Model CYD208 Rear Panel ConnectionsError Code Troubleshooting General MaintenanceFuse Replacement Line Voltage ConfigurationModel CYD201 Model CYD208 Current Source CalibrationRecalibration 2 A/D Converter Calibration Serial Interface Cable and AdaptersModel CYD200-B RJ-11 to DE-9 Adapter Wiring Details Page Chapter Options and Accessories Accessories Model Description of AccessoryDIN Model Description of AccessoryModel CYD201/CYD208 Wires Lsci P/N Description of Cable Model CYD201/CYD208 Sensors Sensor no Description of Sensor Series DT-420Series DT-450 Series CY-7Options and Accessories Appendix a Curve Tables A1.0 GeneralTable A-2. Curve 1 DT-500DI-8A Voltage-Temp. Characteristics Table A-3. Curve 2 DT-500DRC-D Voltage-Temp. Characteristics 6591 18.0 Table A-5. Curve 4 CTI Diode Voltage-Temp. Characteristics Table A-6. Curve 5 DT-500DI-8C Voltage-Temp. Characteristics Table A-7. Curve 6 CY-7 Voltage-Temp. Characteristics 305.0 50689 Page Page Flow TemperaturePRESSURE/STRAIN