Special statements, Examples for programming storage locations, Deletion of the counter count – Baumer N 214 Benutzerhandbuch

Seite 10: Switching the counter to pgm mode or run mode

Advertising
background image

N 214

10 www.baumer.com

4.1. Examples for programming storage locations

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

Programming of the start value SC (line=21, SC=360)

Statement:

<STX>3521P000360<ETX>

Acknowledgment:

<STX>3521R000360<ETX><CR>


Programming of the scaling factor SF (line=23, setting=01,0000)
Statement:

<STX>3523P01.0000<ETX>

Acknowledgment:

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


Programming of the counting mode (line=25, counting mode=1)
Statement:

<STX>3525P1<ETX>

Acknowledgment:

<STX>3525R1<ETX><CR>


Programming of the device address (line=54, device address=27)
Statement:

<STX>3554P27<ETX>

Acknowledgment:

<STX>3554R27<ETX><CR>


Deletion of the start value SC (line=21)
Statement:

<STX>3521P000000<ETX>

Acknowledgment:

<STX>3521R000000<ETX><CR>


5. Special statements

With the exception of the statement "Delete counter count", the special statements are statements that do not
refer to a line number (storage location in the operating scheme).

5.1. Deletion of the counter count

The counter count XP (line 1) can be deleted via the following special statement. This is a line that cannot be
programmed. All remaining lines in the programming scheme (apart from the separation lines) are deleted by
programming the value NULL (as explained under point 4.).
The delete statement corresponds to a reset via the key C. The acknowledgment (reply) of the counter upon
deletion is the same as in case of the read statement of the respective line.

General: <STX> address line <DEL> <ETX>

Example: Deletion of the counter count XP
Address=35, line=01, mode=RUN mode
Statement:

<STX>3501<DEL><ETX> <DEL> = 7FHex

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

5.1.1. Switching the counter to PGM mode or RUN mode


This statement allows the switching of the counter between the PGM mode and the RUN mode with each
enquiry. As acknowledgment the current line, as is the case with the read statement, is sent back.

General: <STX> address <DC1> <ETX>

Example: Address=35, mode=RUN mode, current line= 1, display value=15
Statement:

<STX>35<DC1><ETX> <DC1> = 11Hex

Acknowledgment: <STX>35P<ETX><CR>

Repeating the statement reactivates the RUN mode
Statement: <STX>35<DC1><ETX>
Acknowledgment: <STX>35R<ETX><CR>

Advertising