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

Seite 9

Advertising
background image

PCD41

www.baumer.com

9


3. Reading of storage locations

All storage locations that are indexed with a line number in the programming scheme (except the separation
lines that are marked by dashes) can be read out.
The protocol: <STX> Address Line <ETX> [<CR>] can be applied to every line.
The tachometer response may, however, turn out to have different lengths of protocol from one line to the other.
This depends on the data length of the pertinent storage location.
The PCD41 can, if in the RUN mode or also in the PGM, be read out in the same way. The only difference is that
the mode parameter will return either an "R" or a "P" in the tachometer response, as described in the following.

Answer to a Read instruction (general):

<STX> Address Line Mode Data <ETX> <CR>


Mode P=PCD41 is in the programming mode
R=PCD41 is in the RUN mode

Data Max. number of digits with leading zeros, without decimal point

(Exception: Line 6 – with decimal point)

3.1. Examples of reading storage locations

The following statement applies for the subsequent examples:
Device address = 35; Tachometer mode = R (RUN mode)

Read-out of tachometer value (Line=01, Displayed value=1500)
Polling: <STX>3501<ETX>
Answer: <STX>3501R001500<ETX><CR>

Read-out of display adjustment bFuP (Line=04, Setting=1000)
Polling: <STX>3504<ETX>
Answer: <STX>3504R001000<ETX><CR>

Read-out of update time (Line=28, Setting=Pos. 2)
Polling: <STX>3528<ETX>
Answer: <STX>3528R2<ETX><CR>

(2 corresponds: 1 second)


Read-out of device address (Line=54, Device address=35)
Polling: <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 scheme, except the separation
lines (that are marked by dashes) and the lines 1 and 6, can be programmed.
The protocol: <STX> Address Line P [VZ] Data <ETX> [<CR>] can be applied to every line.
The tachometer response that is returned after each programming will be the same as when reading out the line.
Programming of all storage locations can be effected in the RUN as well as in the programming mode.
Programming in the RUN mode:
The data in the lines 23, 26, 28, 39, 51-54 and 56 will only be taken over internally after switching from
the PGM mode to the RUN mode.
For information on the switching to the PGM mode, please refer to 5.2. The
rest of the lines are immediately active after programming.
All data programmed in the RUN mode will only be taken over in permanent storage after switching from
the PGM mode to the RUN mode. If there is no PGM/RUN switch, the old data will again become valid
after a power failure.

Write instruction (general):

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

Advertising