Omega OSP SERIES manual Example B, 9Ø Chksum = DATA1 + DATA2 + DATA3 + DATA4 and &H7F

Page 51

28Ø PRINT "VALUE: " ; VALUE / 1Ø 29Ø END

Example B:

1Ø CHAR = Ø

2Ø IDNAME = 1

3Ø INSTRUCTION = &H80 4Ø VALUE = 80

5Ø VALUE$ = HEX$ (VALUE/100)

55WHILE LEN (VALUE$)<4: VALUE$ ="Ø"+VALUE$: WEND 6Ø IF LEN (VALUE$) > 4 THEN VALUE$ =RIGHT$ (VALUE$,4)

65DATA1 = VAL ("&H" + LEFT$ (VALUE$, 2)) 7Ø DATA2 = VAL ("&H" +RIGHT$ (VALUE$, 2))

75DATA3 = Ø 8Ø DATA4 = Ø

9Ø CHKSUM = (DATA1 + DATA2 + DATA3 + DATA4) AND &H7F

1ØØ REM MEMORY RELEASE PREVIOUS 4.xx1 (Example 4.ØØØ, 4.2ØØ) MUST USE 11Ø REM NEXT LINE INSTEAD LINE 9Ø OR PROGRAM DOES'NT WORK

12Ø REM CHKSUM =(DATA1 + DATA2 + DATA3 + DATA4) AND &HFF 13Ø OPEN "COM1: 96ØØ,N,8,1,CD,CS,DS,RS" FOR RANDOM AS #1 14Ø PRINT #1, CHR$ (IDNAME) ; : REM TRANSMIT IDNAME TO OSP

15Ø WHILE LOC (1) = Ø: WEND: REM WAIT RECEIVING IDNAME FROM OSP

16Ø IDNAME = ASC (INPUT$ (1 , 1)): REM READ RECEIVED IDNAME FROM OSP 17Ø PRINT #1, CHR$ (INSTRUCTION) ;

18Ø WHILE LOC (1) = Ø : WEND

19Ø INSTRUCTION = ASC (INPUT$ (1 , 1)) 2ØØ PRINT #1, CHR$ (DATA1) ;

21Ø WHILE LOC (1) = Ø : WEND 22Ø CHAR = ASC (INPUT$ (1 , 1)) 23Ø PRINT #1, CHR$ (DATA2) ; 24Ø WHILE LOC (1) = Ø : WEND 25Ø CHAR = ASC (INPUT$ (1 , 1)) 26Ø PRINT #1, CHR$ (DATA3) ; 27Ø WHILE LOC (1) = Ø : WEND 28Ø CHAR = ASC (INPUT$ (1 , 1)) 29Ø PRINT #1, CHR$ (DATA4) ; 3ØØ WHILE LOC (1) = Ø : WEND 31Ø CHAR = ASC (INPUT$ (1 , 1)) 32Ø PRINT #1, CHR$ (CHKSUM) ; 33Ø WHILE LOC (1) = Ø : WEND 34Ø CHAR = ASC (INPUT$ (1 , 1)) 35Ø PRINT "Transmitted."

39Ø END

51

Image 51
Contents OSP Series Portable IR thermometers OMEGAnetSM On-Line Service Internet e-mail Info@omega.com Introductory Note Table of Contents Data Acquisition Operative Mode General features General DescriptionInnovative design Instrument codes Thermocouple measuring ranges SpecificationsTarget pinpointing General FeaturesGeneral Optical SystemSelf calibration KeyboardDisplay Digital InterfaceLogging Data Manager Logging ModeCalculated Measurements CasePhysical Description Functional Description Power supplyBattery charger MicrocontrollerFirmware Unpacking ΛEM = 10.6 ∝M PRE-OPERATIONAL CheckPower supply from main line AC Power SupplyHow to maximize the life span of the battery Power supply with alkaline batteriesAnalogue input Laser SightPage Trigger * MEM SEL Enter How to Operate the instrumentOperations Quick StartLaser sighting HoldWorking band Weight Unstable temperature measurementAlarm settings HAL Minimum, maximum, average and difference indication Automatic Emissivity Setting Technical Unit selection ConfigurationThermocouple input enabled Temperature Scale selectionAcquisition settings Date & Real Time clock settingActual Target Emissivity Ambient Temp Indicated Temp TAM Ambient Temperature Compensation TAMBuzzer On/Off OSP 500/800 decimal point selectionInstrument serial number Firmware revision numberBattery level of charge Data Acquisition Operative Mode How to operate in data acquisition modeAcquisition by dedicated Tags Log Recall stored data Installation Logging Data ManagerProgram Architecture Edit FileHelp DataToolbars Move into an open file Quick startingCopy into an open file Move into a new filePress the or key to select the Tag a identification code Log Page Options & Accessories Printer operationsSighting telescope system Part n Description Filter installationInstallation of the sighting device Red Point pinpointing systemPage Emissivity Application NotesInfrared energy ApplicationsDigital output wiring practice Digital InterfaceTTL to RS 232 adapter Communication protocol Computer data request from OSP to PCComputer Reading values $00 Pyrometer measureWriting values Computer data setting from PC to OSPExample a Communication programsExample a Data transfer from OSP to PC Example B PC instructions to OSP9Ø Chksum = DATA1 + DATA2 + DATA3 + DATA4 and &H7F Example BErr MaintenanceFaulty operating conditions StorageAppendix A1.1 Typical Emissivity Values A1 How to determine an object emissivity14 µm A1.2 Metals Typical Emissivity ValuesA1.3 Non-metals Typical Emissivity Values Index Weight Working band WARRANTY/DISCLAIMER Temperature