Special commands – Baumer NE218 Benutzerhandbuch

Seite 11

Advertising
background image

NE218

www.baumer.com

11

5. Special commands

Except the command „clear current counter value“, special commands do not relate to a specific memory loca-
tion (line number in the parameterization plan).

5.1 Clear current counter value

Clearing of the current counter value XP (line 1) is by the special command described in the following. It is a line
disabled for parameterization. All remaining lines in the parameterization plan (except separating lines) are de-
leted by entering 0 (as described in chapter 4). The deletion command equals a reset b the C pushbutton. The
counter response to the deletion operation is the same as for a read command related to the respective line.

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

Example : Delete current value XP
address=35, line=01, status=RUN-mode
command: <STX>3501<DEL><ETX> <DEL> = 7FHex
response: <STX>3501R000000<ETX><CR>

5.2 Switching the counter to PGM or RUN mode

This command is used to make the counter switch to and fro from PGM to RUN upon every request. Replied is
the current line, similar to a line-related read command.

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

Example : Address=35, Status=RUN mode, current line = 1, value displayed =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>

5.3 Read out counter identification data

Identification data are read only. The address is followed by two parameters: Command parameter “I” (identify)
and selection parameter “T” (type and software version), or “D” (date and hardware version).

Read out device type and software version:
address=35, type=NE218, software version=01
Command: <STX>35IT<ETX>
Response: <STX>35NE218 01<ETX><CR>

Read out date and hardware version:
address=35, date=05.05.97, hardware version=1
Command: <STX>35ID<ETX>
Response: <STX>35050597 1<ETX><CR>

5.4 Read out error message

In case of an error message (display: „Error“ followed by a number) during NE218 operation, the mode byte
(usually „R“ or „P“) implies the ASCII sign „E“ in data transfer, thus informing the PC of an error having occurred.
Functionality only for “Err07”, any other error is fatal and means that the interface functionality is no longer op-
erational.
Error number readout is by special command „E“.

General: <STX> address E <ETX>

Example: address=35, status=Error mode, Error=7
Command: <STX>35E<ETX>
Response: <STX>35E7<ETX><CR>

Advertising