Omega Engineering CYD201 and CYD208 manual Serial Interface Operation, Sample Basic Program

Page 31

OMEGA Model CYD201/CYD208 User’s Manual

4.1.2Serial Interface Operation

Remotely control all thermometer functions, except SoftCal™ compensations from a computer with communications software and modem. Located on the rear panel is a RJ-11 modular socket designated J2 SERIAL I/O for host computer connection. Accessories CYD200-J10 (RS-232C phone cord) and CYD200-D (RJ-11 to DB-25 adapter), as well as a null modem adapter may be required to link the serial port of the host computer directly to the thermometer. When programming a Model CYD201/CYD208 from the serial interface, consider the following:

Type commands in all CAPS.

The term free field indicates a floating decimal point placed any appropriate place in the string of digits.

[term] in examples indicates terminating characters placed by the user or where they appear on a returning character string from the unit.

Leading zeros and zeros following a decimal point are not needed in a command string, but they are sent in response to a query.

Enter temperature to 0.1 degrees. Greater precision truncates. Temperature is limited from 0 to 475 K.

Place no space between commands and the variable being sent.

4.1.3Sample Basic Program

10 OPEN “COM1:300,O,7,1,RS” AS #1

11 PRINT “TYPE ‘QUIT’ TO EXIT”

12 PRINT

20INPUT “ENTER COMMAND”;A$

21IF A$ = “QUIT” THEN GOTO 100

30A$ = A$ +CHR$(13)+CHR$(10)

40PRINT #1,A$;

45R = INSTR(A$,”W”)

46IF R = 0 THEN GOTO 90

50FOR Z = 1 TO 500: NEXT Z

60LINE INPUT#1,B$

70PRINT B$;

90GOTO 11

100CLOSE #1

101END

‘Open COM port ‘Print QUIT message ‘Print blank line ‘Get command to send ‘Look for QUIT then quit ‘Adding CR and LF ‘Sending command string ‘Scan CMD for W/QUERRY ‘If not a QUERRY skip PRINT ‘Short delay

‘Read back CYD201/CYD208 response ‘PRINT instrument response

‘Jump back to the beginning ‘Close COM port

‘End program

Remote Operation

4-3

Image 31
Contents M789-038A June Return Requests / Inquiries WarrantyTable of Contents Table of Contents List of Illustrations This Page Intentionally Left Blank Table of Contents General Chapter IntroductionModel CYD201/CYD208 General Description Resolution Model CYD201/CYD208 SpecificationsHandling Cryogenic Storage Dewars LHe and LN2 Safety PrecautionsHandling Liquid Helium and Liquid Nitrogen Electrostatic Discharge Recommended First AidGround The Instrument Safety SummaryIdentifying Esds Components Handling Esds ComponentsDo Not Substitute Parts Or Modify Instrument Safety SymbolsDo Not Operate In An Explosive Atmosphere Keep Away From Live CircuitsInspection and Unpacking Chapter InstallationRepackaging for Shipment Sensor Installation Recommendations Power and Ground RequirementsTwo-Lead Measurement Two-Lead Vs Four-Lead MeasurementsFour-Lead Measurement Sensor Mounting Connecting Leads To The SensorMeasurement Errors Due To AC Noise J1 Input Sensor Input ConnectionsTerminal Description Rack Mounting Sensor Curve DefinitionModel CYD208-DIN Rack Mounting Hole SizesPower UP Errors Initial Power UP SequenceThis Page Intentionally Left Blank Installation Units KEY Chapter OperationAlarm Operation Alarm SetpointScan Mode Model CYD208 Only Setting Dwell Times Model CYD208 OnlyAlarm Fix Function Model CYD208 Only Latched And Unlatched AlarmsSoftcal Compensations SoftCal Calibration Procedure Erasing SoftCal Compensations Verifying SoftCal OperationOperation Serial Interface Connections Chapter Remote OperationSerial Interface J2 Serial I/O Serial I/O RJ-11 Connector Pin DefinitionsSample Basic Program Serial Interface OperationReturned Serial Interface Command SummarySample Quick Basic 4.0 Program InputInput R Returned Nothing Input F0x Returned NothingInput Hxxx.x Returned Nothing Input Lxxx.x Returned NothingEnd Scanning Model CYD208 Only Switch ID and Alarm DataHigh or Low Parameter H = high alarm, L = low alarm Input YCx Returned NothingCurrent channel,sign,sensor reading,units, alarm statusCRLF Sign,sensor reading,units,alarm status CrlfScan Status Model CYD208 Only This Page Intentionally Left Blank Remote Operation Model CYD201 Rear Panel Connections Chapter ServiceModel CYD208 Rear Panel Connections Model CYD208 Rear Panel ConnectionsGeneral Maintenance Error Code TroubleshootingLine Voltage Configuration Fuse ReplacementRecalibration Current Source CalibrationModel CYD201 Model CYD208 Serial Interface Cable and Adapters 2 A/D Converter CalibrationModel CYD200-B RJ-11 to DE-9 Adapter Wiring Details Page Accessories Model Description of Accessory Chapter Options and AccessoriesModel CYD201/CYD208 Wires Lsci P/N Description of Cable Model Description of AccessoryDIN Series CY-7 Model CYD201/CYD208 Sensors Sensor no Description of SensorSeries DT-420 Series DT-450Options and Accessories A1.0 General Appendix a Curve TablesTable 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 PRESSURE/STRAIN TemperatureFlow