Special statements, 1 examples for programming storage locations, 1 deletion of the counter counts – Baumer BE134 Benutzerhandbuch

Seite 11: 2 switching the counter to pgm mode or run mode

Advertising
background image

BE134

www.baumer.com

11

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 preselection value P1 (line=02, preselection value=3600)
Statement:

<STX>3502P003600<ETX>

Acknowledgment:

<STX>3502R003600<ETX><CR>


Programming of batch counter mode (line=16, setting=2)
Statement:

<STX>3516P2<ETX>

Acknowledgment:

<STX>3516R2<ETX><CR>


Programming of the lower display (line=27, preselection value P1=1)
Statement:

<STX>3527P1<ETX>

Acknowledgment:

<STX>3527R1<ETX><CR>


Programming of the pulse signal duration P1 (line=41, permanent signal= Latch)
Statement:

<STX>3541PL<ETX>

Acknowledgment:

<STX>3541RL<ETX><CR>


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

<STX>3554P27<ETX>

Acknowledgment:

<STX>3554R27<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 counts

The main counter (line 1), the totalizer (line 5) or the batch counter (line 6) can be deleted via the following
special statement. These are lines that cannot be programmed. All remaining lines in the programming
scheme (apart from the separation lines) are deleted by programming the value 0 (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: Deleting the batch counter b
Address=35, line=06, mode=RUN mode
Statement:

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

Acknowledgment:

<STX>3506R000000<ETX><CR>

5.2 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 address and the current mode are sent back after the execution of the
statement.

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