Special commands – Baumer NE215 Benutzerhandbuch

Seite 13

Advertising
background image

NE215

www.baumer.com

13

4.1. Examples for the programming of storage locations


The following rule is valid for all subsequent examples:
Counter address = 35; Counter mode = R (RUN mode)

Programming of preselection P1 (Line=02, Preselection P1=12.50)
Command: <STX>3502P00001250<ETX>
Answer: <STX>3502R00001250<ETX><CR>

Programming of preselection P2 (Line=03, Preselection P2=50.00)
Command: <STX>3503P00005000<ETX>
Answer: <STX>3503R00005000<ETX><CR>

Programming of output time P3 (Line=33, Time=0.30s)
Command: <STX>3533P0030<ETX>
Answer: <STX>3533R0030<ETX><CR>


5. Special commands


In the case of special commands, we are talking about instructions that do not refer to any line number, with the
exception of the commands "Clear count" and "Output to printer".

5.1. Clear counts


The counts XP (line 1), totalizer (line 5), batch counter (line 6), and operating time meter (line 8) can be cleared
via this special command. It concerns all lines that cannot be programmed. All other lines, such as
preselections, are cleared by programming the value ZERO (as described under item 4).
The instruction to clear corresponds to a reset via the C key and/or to an external reset if a reset input is
available.
The response (answer) of the counter when clearing is the same as when reading the corresponding line.

General: <STX> Address Line <DEL> <ETX>

Example: Clearing of preselection counter XP
Address=35, Line=01, Status=RUN mode
Command: <STX>3501<DEL><ETX> <DEL> = 7FHex
Answer: <STX>3501R00000000<ETX><CR>

5.2. Switching the counter to PGM mode or to RUN mode


This command allows you to switch the counter upon every call between the PGM mode and the RUN mode.
The current line, as with the reading command on this line, will be returned as an answer.

General: <STX> Address <DC1> <ETX>

Example: Address=35, Status=RUN mode, Current line = 1, Count=0.15
Command: <STX>35<DC1><ETX> <DC1> = 11Hex
Answer: <STX>3501P00000015<ETX><CR>

Repeating the command switches back to the RUN mode
Command: <STX>35<DC1><ETX>

Answer: <STX>3501R00000015<ETX><CR>


Advertising