Ne215 open interface description – Baumer NE215 User Manual

Page 25

Advertising
background image

25

NE215

Open interface description

Important

The blanks between the particular characters of the commands
only serve the purpose of better legibility. The input at the PC must
be effected without blanks. Control characters (less than 20Hex) are
set in „pointed“ brackets. If a false protocol has been sent by the
PC, the counter will return an error message. Please read the
paragraph regarding error messages on page 29 under 7.7.

7.3

Reading of storage location

All storage locations that are indexed with a line number in the
programming scheme (except the separating lines that are indexed
dashes) can be read out. The protocol: <STX> Address line <ETX>
[<CR>] can be used for each line. The return answer of the counter
may vary in the protocol length from one line to the other. This
depends on the data length of the individual storage locations.

The counter can also be read out if operated in the RUN mode as
well as in the PGM mode. The only difference is that the return
answer of the counter will contain an „R“ or a „P“ in the mode
parameter, as described in the following.

Answer to a Read instruction (general):

<STX> Address Line Mode VZ Data <ETX> <CR>

Mode

P = Counter is in Programming mode

R = Counter is in RUN mode

VZ

Plus/Minus sign, only indicated if value is negative

Data

Max. number of digits, with leading zeros w/o

decimal point.

7.3.1 Examples for the reading of storage locations

The following statement applies for the subsequent examples:
Counter address = 35; Counter mode = R (RUN mode)

Readout of preselection counter XP (Line=01, Count=-15.00)

Polling:

<STX>3501<ETX>

Answer:

<STX>3501R-00001500<ETX><CR>

Readout of operating mode (Line=21, Setting=Pos. 1)

Polling:

<STX>3521<ETX>

Answer:

<STX>3521R1<ETX><CR>

(1 corresponds to P1 trailing preselection)

Readout of output time P1 (Line=31, Setting=0,25s)

Polling:

<STX>3531<ETX>

Answer:

<STX>3531R0025<ETX><CR>

Readout of address (Line=45, Address=35)

Polling:

<STX>3545<ETX>

Answer:

<STX>3545R35<ETX><CR>

7.4

Programming of storage locations

All storage locations that are indexed with a line number according
to the programming plan, except for the separating lines (that are
indexed by dashes) and the lines 1, 5, 6 and 8, may be programmed.

Advertising