background image

Programming Instructions

For the XP2i Digital Test Gauge

Содержание XP2i

Страница 1: ...Programming Instructions For the XP2i Digital Test Gauge ...

Страница 2: ...tion Format 2 Query Instructions 2 Commands 5 General Commands 5 Acknowledgment of a Command 7 Support 8 Troubleshooting the Digital Interface 8 Effects of Password Protection on Commands 9 Programming Tips 9 Bootloader Signature 10 Contact Us 10 ...

Страница 3: ...y of water factor 4 C 60 F or 68 F Store a 12 digit ID or tag number in non volatile memory Adjust calibration values We hope your XP2i meets your expectations and we re interested in any comments or suggestions you may have You can send us a note at crystal ametek com Many features in this and our other products are a direct result of your comments The XP2i can be connected to a personal computer...

Страница 4: ...mark Any pressure values returned are split across two lines the first contains a floating point value and the second contains the name of the measurement unit Each line is right justified in a fixed width 10 character field Since each line is terminated with a CR LF pair this means the total length of the response to a measurement query is 24 bytes A decimal point will always be included with the...

Страница 5: ...e pressure units currently being displayed 10 7 mmH2O Range RNG Range returns the pressure range of the gauge It is returned in two 10 character lines The first line is the value the second line is the pressure unit For example a 100 PSI XP2i would return 100 00 PSI Return Average Pressure P A Using the same format as the P U command the average pressure is returned If averaging is disabled X 0 is...

Страница 6: ...use only Example version number R0101 Water Density H2O Applies only to models that include inches of water Water density returns the current setting for the density of water in terms of temperature with one of three values possible _4C 60F 68F Zero Check Z U Zero Check reveals how much was subtracted from the reading to zero the gauge in the pressure units currently being displayed When batteries...

Страница 7: ... PKS Enables peak button operation default Message Store MSGx Up to 12 characters usually tag or ID can be stored in EEPROM Set the message with MSGx where x is the message Next Pressure Unit I P This command is acknowledged with a simple A Ø To check which units were selected send the command P U to return the pressure value and the current pressure units No Auto Off NAO Prevents automatic shutdo...

Страница 8: ... technical support Set the Average Window Size AVS x Sets the number of pressure reading to be averaged The valid range is from 1 through 10 i e AVS 5 CR or AVS 10 CR If an invalid size is entered or averaging is disabled X 0 is returned Averaging is enabled with ConfigXP only Streaming Data On Off SP1 Displayed pressure is sent out of the serial port after each new reading at a rate of approximat...

Страница 9: ...derstood the command and acted on it N The XP2i did not understand the command due to either syntax or reception errors X The command was understood but is not implemented or supported at this time Following an A N or X the single digits mean the following Ø There were no reception errors 2 Buffer overflow 4 Framing error 6 There were both buffer overflow and framing errors Example acknowledgment ...

Страница 10: ... X X Possible reason Not enough time allowed between commands Check the communication parameters N 4 Framing error Bytes were lost Therefore the command could not be matched A framing error can sometimes occur after power on after reset or when the batteries are changed see the Programming Tips on page 9 for suggestions on handling this X X Possible reasons Noise on the line either created a false...

Страница 11: ... by sending the RST command 2 Wait 15 seconds 3 Read the Bootloader Signature even if you ignore it to clear it from the PC s input buffer see below for more details 4 Send a carriage return to clear any noise in the XP2i s input buffer 5 An error code either N Ø or N 4 will be returned this is normal you have sent an empty command read it to clear it The buffers are now reset 6 Use the P U and I ...

Страница 12: ...e You can use this behavior to detect a battery change or a problem with the XP2i Some commands may take up to 500 milliseconds to return a reply You should always wait at least 50 milliseconds after each reply is received before sending the next command After a reset command it may take up to 15 seconds before the gauge resumes normal operation Data transmitted from the XP2i will always be 7 bit ...

Страница 13: ... 2013 Crystal Engineering Corporation 708 Fiero Lane Suite 9 San Luis Obispo California 93401 8701 3984 E ...

Отзывы: