Reading of storage locations, Programming of storage locations, 1 examples for reading storage locations – Baumer BE134 Benutzerhandbuch
Seite 10

BE134
10 www.baumer.com
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 counter 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 data <ETX> <CR>
Mode P = Counter is in the programming mode
R = Counter is in the RUN mode
Data Max. number of digits, with high-order zeros, without 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 of the counter count (line=01, display value=1500)
Enquiry:
<STX>3501<ETX>
Acknowledgment:
<STX>3501R001500<ETX><CR>
Reading out of the totalizer (line=05, display value=12300)
Enquiry: <STX>3505<ETX>
Acknowledgment:
<STX>3505R00012300<ETX><CR>
Reading out of the batch counter (line=06, display value= 10)
Enquiry: <STX>3506<ETX>
Acknowledgment:
<STX>3506R000010<ETX><CR>
Reading out of the basic display (line=27, setting=pos. 2)
Enquiry: <STX>3527<ETX>
Acknowledgment:
<STX>3527R2<ETX><CR>
(2 corresponds to:
preselection value P2)
Reading out of 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 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 21, 22, 23, 24, 25, 30, 33, 35 and 51-54 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.2.
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.
Write statement (general):
<STX> address line P data <ETX> [<CR>]