beautypg.com

WIKA CPG2500 User Manual

Page 38

background image

38

Mensor/WIKA Operating Instructions Series CPG 2500

Digital Pressure Gauge
SERIES CPG 2500

7.1.3.2 Command and Query Format

Commands must be sent in ASCII format and terminated with either a carriage return
(), linefeed (), or both. Commands are not case sensitive. Each query returns a
response. If an error is detected the response will include an error flag.

Command or Query field: Unless otherwise specified, commands are typically con-
verted to queries by appending a question mark to the command. Table 7.1.3.5 lists all
of the CPG 2500 command or query keywords.

Data field: The data field is either in ASCII {string} or numeric {value} form. In the case
of multiple data fields, commas are required to separate the fields. Queries do not have
a data field. String (text) or value (numeric) data are acceptable in any of the following
formats:

Examples of {string} data:

ON, OFF, mBar, inHg

Examples of {value} data:

1, 1.0, -5.678, 25.68324e-5

7.1.3.3 Command Set Definitions

In this manual a data entry made up of alpha characters is defined as a string, as op-
posed to data containing only numbers, such as “Enter 1 for ON or 0 for OFF” where 1
and 0 are defined as values.

Command: Any command or query listed in Table 7.1.3.5. For commands that take
boolean data the following strings are acceptable:

0

1

False True
No

Yes

Off On

Separator: Space (SP).

Data: ASCII representations of numbers, {value}, or alpha characters, {string}, data as
defined above. When sending code a literal variable replaces the brackets and the en-
closed character(s) shown in the following examples.

Termination: Linefeed (LF) or carriage return (CR) is used to signal the end of a com-
mand statement. For IEEE-488.2 operation “EOI” is an acceptable alternative.

Always send commands in one of the following formats:
1. [Command] [Termination];
2. [Command] [Separator] [Data] [Termination];