Reading of storage locations, Programming of storage locations, Examples for reading storage locations – Baumer N 214 Benutzerhandbuch

Seite 9

Advertising
background image

N 214

www.baumer.com

9

3. Reading of storage locations

All storage locations provided with a line number in the programming scheme (apart from the separation lines
that are marked with dashes) can be read out.
The protocol: <STX> address line <ETX> [<CR>] is applicable to every line.
The counter’s acknowledgment may, however, vary from line to line as regards the protocol length.
This depends on the data length of the respective storage location.
The N 214 can be read out both in the RUN mode and in the PGM mode. The only difference is that upon the
counter’s acknowledgment, the mode parameter sends back an "R" or a "P" as detailed below.

Acknowledgment to a read statement (general):

<STX> address line mode [SIGN] data <ETX> <CR>

Mode

P=N 214 is in the programming mode

R=N 214 is in the RUN mode
SIGN

Sign. Is only sent in case of a negative sign

Data

max. number of digits, with high-order zeros without decimal pt

exception: line 23 – there with decimal point)

3.1. Examples for reading storage locations

The following setting applies to the subsequent examples:
Device address = 35; mode of counter = R (RUN mode)

Reading out the main counter XP (line=01, display value=1500)
Enquiry:

<STX>3501<ETX>

Acknowledgment: <STX>3501R001500<ETX><CR>

Reading out of the counting mode (line=25, setting=Pos. 3)
Enquiry:

<STX>3525<ETX>

Acknowledgment: <STX>3525R3<ETX><CR>

(3 corresponds to track A90ºB

single analysis)

Reading out the scaling factor SF (line=23, setting=01,0000)
Enquiry:

<STX>3523<ETX>

Acknowledgment: <STX>3523R01.0000<ETX><CR>

Reading out the device address (line=54, device address=35)
Enquiry:

<STX>3554<ETX>

Acknowledgment: <STX>3554R35<ETX><CR>

4. Programming of storage locations

All storage locations provided with a line number in the programming scheme, with the exception of the
separation lines (marked with dashes) and the lines 1, 5 and 6 can be programmed.
The protocol: <STX> address line P [SIGN] data <ETX> [<CR>] is applicable to every line.
The counter’s acknowledgment, which is sent back after each programming, is the same as when reading out
the line. All storage locations can be programmed both in the RUN mode and in the programming mode.

Programming in the RUN mode:
The data in the lines 22,23,25-29,31,41/3,51-54 and 62-66 are not taken over internally until a change
from the PGM mode to the RUN mode has been effected.
For changing over to the PGM mode see

5.1.1.

The remaining lines are active immediately after the programming.
All data programmed in the RUN mode are not taken over to the nonvolatile memory until a change
from the PGM mode to the RUN mode has been effected. If there is no PGM/RUN change, the old data
will be valid again after a mains failure.

Note: Those max. number of memory cycles of the non volatile memory amounts to 1.000.000

Write statement (general):

<STX> address line P [SIGN] data <ETX> [<CR>]

Advertising