- Andere Unternehmen von Fluke:
- Fluke
- Fluke Biomedical
- Fluke Networks
- Fluke Process Instruments
A Procedure for Converting Hex to Decimal
MET/CAL procedure
=============================================================================
INSTRUMENT: hex to decimal convertor
DATE: 2002-09-05
AUTHOR: William J. Spath
REVISION:
ADJUSTMENT THRESHOLD: 70%
NUMBER OF TESTS: 1
NUMBER OF LINES: 56
=============================================================================
STEP FSC RANGE NOMINAL TOLERANCE MOD1 MOD2 3 4 CON
1.001 LABEL Start
# Enter the 4 digit hexadecimal number
1.002 MEM2 Enter a 4 digit hexadecimal number (0-9,A-F)
# Store a comparision string in S[1]
1.003 MATH S[1] = "0123456789ABCDEF"
# Check for Errors in Data Entry
1.004 LABEL Check_for_Errors
1.005 JMPL Not_ok LEN(MEM2) > 4
1.006 JMPL Not_ok LEN(MEM2) < 4
1.007 JMPL Not_ok FINDI(S[1],SUB(MEM2,1,1),1) < 1
1.008 JMPL Not_ok FINDI(S[1],SUB(MEM2,2,1),1) < 1
1.009 JMPL Not_ok FINDI(S[1],SUB(MEM2,3,1),1) < 1
1.010 JMPL Not_ok FINDI(S[1],SUB(MEM2,4,1),1) < 1
# convert Hexadecimal number to Decimal
# LSD is the right most digit
# MSD is the left most digit
1.011 MATH MEM = (FINDI(S[1], SUB(MEM2,4,1),1) - 1)*16^0
1.012 MATH MEM = MEM+(((FINDI(S[1],SUB(MEM2,3,1),1) - 1)*16^1))
1.013 MATH MEM = MEM+(((FINDI(S[1],SUB(MEM2,2,1),1) - 1)*16^2))
1.014 MATH MEM = MEM+(((FINDI(S[1],SUB(MEM2,1,1),1) - 1)*16^3))
# Disp entered value (hexadecimal) and converted value (decimal)
1.015 DISP [MEM2]
1.015 DISP converted to decimal is
1.015 DISP [MEM]
# End program
1.016 END
# Message for Error on Data Entry
1.017 LABEL Not_ok
1.018 DISP You entered " [MEM2] "
1.018 DISP This is NOT a valid 4 digit Hexadecimal entry!
1.018 DISP Please try again.
# Allow reentry of data, jump to start of program
1.019 JMPL Start
- Startseite
- Produkte
- Neue Produkte
- Elektrische Kalibrierung
- HF-Kalibrierung
- Datenerfassung und Testgeräte
- Temperaturkalibrierung
- Feuchtekalibrierung
- Druckkalibrierung
- Kolbenmessgeräte
- Controller/Kalibratoren
- Druckmonitore
- Druckwaagen
- Manuelle Kalibratoren und Monitore
- Handheld Pressure Calibrators
- Luftdaten-Kalibrierung
- Messgeräte zur Überwachung der Umgebungsbedingungen
- Druckkalibrierungszubehör
- Benutzerdefinierte Druckkalibriersysteme
- Software zur Druckkalibrierung
- Durchflusskalibrierung
- Prozesskalibratoren
- Kalibriersoftware
- Service und Support
- Alle Kalibriergeräte
- Hand-Messgeräte
- Kaufinfo
- Aktuelles
- Schulung/Veranstaltungen
- Literatur/Ausbildung
- Service/Unterstützung
- Service Request (RMA)
- Serviceprogramme
- Technischer Support
- Wissensbasis
- Akkreditierung
- Autorisierte Servicezentren
- Calibration Certificates
- Community Forum
- My MET/SUPPORT
- Produkthandbücher (Bedienungsanleitungen)
- Sicherheitsdatenblätter (SDS)
- Recyclingprogramm
- Safety, Service, and Product Notices
- Gewährleistungen
- Software-Downloads
- Über uns