Error messages during data transfer – Baumer NE214 Benutzerhandbuch

Seite 12

Advertising
background image

NE214

12 www.baumer.com

5.3. Readout of counter identification

It is only possible to read the identification data. Two parameters follow the address: the command parameter "I"
(for identification) and the selection parameter "T" (Type and program number) or "D" (date and hardware
version) for the different identification data.

Type of counter and Readout of program number:

Address=35, Type=NE214, Program number=01
Command: <STX>35IT<ETX>
Answer: <STX>35NE214 01<ETX><CR>

Readout of date and version number:
Address=35, Date=15.09.94, Version number=01
Command: <STX>35ID<ETX>
Answer: <STX>35150994 1<ETX><CR>

5.4. Readout of error message

If an error message occurs during operation of the NE214 ("Error" and a digit are displayed), the mode byte
(usually "R" or "P") will be indexed by the ASCII character "E", thus signalizing to the PC that an error has
occurred at the counter. Functions only in case of error message "Err 07". All other errors are fatal errors,
impeding any interface function.
The error number itself can now be read out via the special command "E".

General: <STX> Address E <ETX>

Example: Address=35, Status=Error Mode, Error=7
Command: <STX>35E<ETX>
Answer: <STX>35E7<ETX><CR>

5.5. Clearing the error message

This command allows to clear error messages appearing on the NE214 display. It is only possible to clear the
error messages that can be cleared via the C key on the device itself (e.g.: not Error 1 or 2). The contents of the
current line will be returned as an answer.

Address=35, Status=Error Mode, Error=7, Line=01, Count=2500
Command: <STX>35<ACK><ETX> <ACK> = 06H
Answer: <STX>3501R002500<ETX><CR>

Attention: If the counter is on a line not containing any data, (e.g. line 10), an error message "<CAN><NUL>" will
be returned.

6. Error messages during data transfer

If the PC sends a wrong data protocol to the NE214 (e.g.: line that does not exist or letter instead of digit), then
the counter will return a corresponding error message to the counter.
In order to still receive an error message after an error, the control character <STX> and the address must at
least be correct. If this is not the case, the NE214 can no longer be reached and will thus not be able to respond
to the PC.
If the PC does not receive a response after a request has been sent, i.e. not even an error message, then a fatal
error has occurred. This may be the case if the control character <STX> or the address are missing and if the
interface parameter of PC and NE214 are not congruent. Should these be correct, however, then it can only be a
matter of a failure of the hardware or of the data line.

General structure of the error messages:

<STX> Address Line Status <CAN> Error number <ETX> <CR>

Example: Address=35, Line=09 (non-valid line), Error number=2
<STX>3509R<CAN>2<ETX><CR>

In case of an error response, the two positions "Line" and "Status" will be left out.

Advertising