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

Seite 10

Advertising
background image

NE214

10 www.baumer.com

3. Reading of storage locations

All storage locations that are indexed with a line number in the programming scheme can be read out (except
the separating lines that are indexed by dashes).
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 NE214 can aso 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=NE214 is in Programming mode
R=NE214 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
(Exception: Line 23 – has a 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 principal counter XP (Line=01, Count=1500)
Request: <STX>3501<ETX>
Answer: <STX>3501R001500<ETX><CR>

Readout of type of counting (Line=25, Setting=Pos. 3)
Request: <STX>3525<ETX>
Answer: <STX>3525R3<ETX><CR>

(3 corresponds to track A90ºB single evaluation)


Readout of scaling factor SF (Line=23, Setting=01,0000)
Request: <STX>3523<ETX>
Answer: <STX>3523R01.0000<ETX><CR>

Readout of counter address (Line=54, Counter address=35)
Request: <STX>3554<ETX>
Answer: <STX>3554R35<ETX><CR>

4. Programming of storage locations

All storage locations that are indexed with a line number in the programming plan may be programmed, except
for the separating lines (that are indexed by dashes) and the lines 1, 5, and 6.
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 be programmed during the RUN-mode as well as the programming mode

Programming in RUN-Mode:
The data in lines 22,23,25-29,31,41/3,51-54 and 62-66 will only be accepted internally after switching from
PGM-mode to RUN-mode.
For switching to PGM-Mode. The other lines are immediately active after
programming.
All data programmed in the RUN-Mode will only be accepted in the permanent memory after switching
from PGM-mode to RUN-mode. If there is no PGM/RUN switching, then the old data will remain valid
after a power failure.

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

Write-command (general):

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

Advertising