5 special commands, 1 examples for programming storage locations, 1 resetting counter (statuses) – Baumer NE213 Benutzerhandbuch

Seite 11: 2 switching counters to pgm or run mode

Advertising
background image

NE212 / NE213

www.baumer.com

11

4.1 Examples for programming storage locations

For the examples below, the following statement applies:
Counter address = 35, Counter mode = R (RUN mode)

Programming of preselection P1 (line=02, preselection = 12.5)
Request: <STX>3502P000125<ETX>
Response: <STX>3502R000125<ETX><CR>

Programming of preselection P2 (line=03, preselection = -5000)
Request: <STX>3503P-005000<ETX>
Response: <STX>3503R-005000<ETX><CR>

Programming of decimal point (line=28, 2 digits after the dec. point)
Request: <STX>3528P2<ETX>
Response: <STX>3528R2<ETX><CR>

Programming the output time P3 (line=33, time=0.30 s)
Request: <STX>3533P0030<ETX>
Response: <STX>3533R0030<ETX><CR>

Delet start value SC (line=04)
Request: <STX>3504P000000<ETX>
Response: <STX>3504R000000<ETX><CR>

5 Special commands

With the exception of the command „Reset counters“, special commands are instructions which do not relate to
a line number (storage location in operator plan).

5.1 Resetting counter (statuses)

The counter statuses XP (line 1), summator (line 5), batch counter (line 6) and hours-run counter (line 8) can all
be reset to zero using this special command. These are all lines which cannot be programmed. All other lines,
such as preselection, can be deleted by programming the value Zero (as described under point 4). The delete
command corresponds to a reset process using the C key or an external reset where there is a reset input
provided. The feedback (response) of the counter following a reset is the same as that for a read-out command
for the respective line.

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

Example: Reset of the preselection counter XP
Address=35 line=01, status=RUN mode; <DEL> = 7FHex
Command <STX>3501<DEL><ETX>
Response <STX>3501R000000<ETX><CR>

5.2 Switching counters to PGM or RUN mode

Using this command, the counter can be switched backward and forwards between the PGM and the RUN mode
every time it is accessed. As for the read command, the current line is supplied as a response.

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

Example: Address=35 status=RUN mode; current line=1, counter status=15
Command <STX>35<DC1><ETX> <DC1> = 11Hex
Response <STX>3501P000015<ETX><CR>

Repetition of the command switches back to the RUN mode
Command <STX>35<DC1><ETX>
Response <STX>3501R000000<ETX><CR>

Advertising
Dieses Handbuch ist für die folgenden Produkte bezogen werden: