Reading of storage locations, Programming of storage locations – Baumer NE215 Benutzerhandbuch

Seite 12

Advertising
background image

NE215

12 www.baumer.com

3. Reading of storage locations


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 NE215 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=NE215 is in Programming mode

R=NE215 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


3.1. Examples for the reading of storage locations


The following rule is valid for all subsequent examples:
Counter address = 35; Counter mode = R (RUN mode)

Readout of preselection counter XP (Line=01, Count=-15.00)
Request: <STX>3501<ETX>
Answer: <STX>3501R-00001500<ETX><CR>

Readout of operating mode (Line=21, Setting=Pos. 1)
Request: <STX>3521<ETX>
Answer: <STX>3521R1<ETX><CR>

(1 corresponds to P1 trailing preselection)


Readout of output time P1 (Line=31, Setting=0,25s)
Request: <STX>3531<ETX>
Answer: <STX>3531R0025<ETX><CR>

Readout of address (Line=45, Address=35)
Request: <STX>3545<ETX>
Answer: <STX>3545R35<ETX><CR>


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.
The protocol: <STX> Address line P [VZ] data <ETX> [<CR>] can be used for each line.
The answer of the counter that is returned after every programming step is the same as for the readout of the
line.
All storage locations may, principally, be programmed during the RUN mode in the programming mode.
Please refer to page 4 to find out how to switch to the PGM mode.

Programming command (general):

<STX> Address line P [VZ] Data <ETX> [<CR>]

Advertising