Reading of data storing lines, Programming of data storing lines, Examples for readout of data stored – Baumer NE134 Benutzerhandbuch

Seite 10

Advertising
background image

NE134

10 www.baumer.com

3. Reading of data storing lines

All data storage places provided with a line number in the programming plan (except the separating lines which
are marked by dashes) allow read out.
The protocol:<STX> address line <ETX>[<CR>] may be applied to each line.
However, the counter‘s reply may differ in length of the protocol from line to line depending on the data volume
of the respective data storage place.
The counter allows data readout both in RUN and PGM mode. The only difference lies in mode parameter „R“ or
„P“, that is replied by the counter as described in the following.

Answer to a Read command (general):

<STX> address line mode

[VZ]

data <ETX> <CR>


Mode P = counter is in programming mode
R = counter is in RUN mode

VZ presign, only transferred if negative (minus sign)

Data max. digit number, with preceding zero digits, w/o decimal point
(Exception: line 7 – there with decimal point)

3.1. Examples for readout of data stored

For the example below he following settings do apply:
Device address = 35; counter mode = R (RUN mode)

Readout of current value (line =01, value displayed =1500)
Inquiry: <STX>3501<ETX>
Reply: <STX>3501R001500<ETX><CR>

Readout of counter value (line=01, value displayed =1500)

Inquiry : <STX>3501<ETX>
Reply :

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

Readout of scaling factor SF (line=07, setting=1,0000)
Inquiry: <STX>3507<ETX>
Reply: <STX>3507R01.0000<ETX><CR>

Readout of basic display (line=27, setting =Pos. 2)
Inquiry: <STX>3527<ETX>
Reply:

<STX>3527R2<ETX><CR>

(2 corresponds to: P2-preset value)

Readout of device address(line=54, device address=35)
Inquiry: <STX>3554<ETX>
Reply: <STX>3554R35<ETX><CR>

4. Programming of data storing lines

All data storage lines provided with a number in the programming plan allow programmation, except for the
separating lines (marked by dashes) and lines 1..4.
The protocol: <STX> address line P

[VZ]

data <ETX> [<CR>) may be applied to each line.

The reply returned by the counter after each individual programming process is the same as for readout of the
respective line.
All data storing lines can be programmed both in RUN and PGM mode.

Programmation in RUN mode:
The parameters of lines 21, 22, 23, 30, 31, 32, 33, 35 and 51-54 are not stored internally until the PGM mode is
switched to RUN mode. For switching to PGM mode please see chapter 5.2. All parameters of the remaining
lines become active immediately after programmation.
All data programmed in RUN mode are only stored in the non-volatile memory after PGM mode has been
switched to RUN mode. If there is no switchover PGM/RUN, the preceding parameters become active anew in
case of power loss.

Write Command (standard):

<STX> adress line P

[VZ]

data <ETX> [<CR>]

Advertising