Special commands, Clear current count, Switching the counter to pgm or run mode – Baumer NE216 User Manual

Page 4: Reading out the counter identification

Advertising
background image

NE216

4

www.baumer.com

4. Special commands

In the case of special commands, we are talking about instructions that do not refer to any line number
(memory location on operator plan), with the exception of command "Clear current count".

4.1. Clear current count


The following special command will clear the current count PC (line 1). This line is disabled for parameteriza-
tion. The remaining lines of the programming chart (except separating lines) are cleared by entering parame-
ter 0 (as previously described in chapter 4).
The instruction to clear corresponds to a reset via C key. The counter response upon clearing is the same as
with reading of the corresponding line.

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

Example: Clear current count PC
Identifier =35, Line=01, Status=RUN mode
Command: <STX>3501<DEL><ETX> <DEL> = 7FHex
Response: <STX>3501R00000<ETX><CR>

4.2. Switching the counter to PGM or RUN mode

This command allows you to switch the counter to and fro between PGM and RUN mode upon every data
call. Both identifier and status are replied.

General: <STX> identifier <DC1> <ETX>

Example: Identifier=35, Status=RUN mode, current line = 1, displayed value =15
Command: <STX>35<DC1><ETX> <DC1> = 11Hex
Response: <STX>35P<ETX><CR>

Repeating the command will switch the counter back to RUN mode
Command: <STX>35<DC1><ETX>
Response: <STX>35R<ETX><CR>

4.3. Reading out the counter identification

Identification data are read only and will be followed by two parameters: Command parameter "I" (for identifi-
cation) or selection parameter "T" (type and software number) or "D" (date and hardware version) for the
several identification data.

Read out device type and software number:

Address=35, Type =NE216, software number =01
Command: <STX>35IT<ETX>
Response: <STX>35NE216 01<ETX><CR>

Read out date and version number:

Address=35, Datum=02.10.96, version number=01
Command: <STX>35ID<ETX>
Response: <STX>35021096 1<ETX><CR>




Advertising