Reading out the counter identification, Reading out error messages, Deletion of error messages – Baumer N 214 Benutzerhandbuch

Seite 11: Error messages during the transfer of data

Advertising
background image

N 214

www.baumer.com

11

5.2. Reading out the counter identification

The identification data can only be read. The address is followed by two parameters. The statement parameter
"I" (for identification) and the selection parameter "T" (type and program number) or "D" (date and hardware
version) for the different identification data.

Reading out type of device and program number:

Address=35, type=N 214, program number=01
Statement:

<STX>35IT<ETX>

Acknowledgment:

<STX>35N 214 01<ETX><CR>


Reading out date and release number:

Address=35, date=15.09.94, release number=01
Statement:

<STX>35ID<ETX>

Acknowledgment:

<STX>35150994 1<ETX><CR>

5.3. Reading out error messages

If an error message is displayed while operating the N 214 (the display shows "Error" and a number), the mode
byte (usually "R" or "P") has the ASCII character "E" in case of each data transmission, thus signalizing to the
PC that an error has occurred at the counter. Function only in case of error message
"Err 07". The remaining errors are fatal errors in case of which the interface function is no longer possible. The
error number can be read out as follows via the special statement "E".

General: <STX> address E <ETX>

Example: Address=35, mode=error mode, error=7
Statement: <STX>35E<ETX>
Acknowledgment: <STX>35E7<ETX><CR>

5.4. Deletion of error messages

Using this statement, you can delete error messages indicated on the display of the N 214. It is only possible to
delete those error messages that can be deleted via the key C at the device itself (e.g.: not error 1 or 2). The
data of the current line are sent back as acknowledgment.

Address=35, mode=error mode, error=7, line=01, counter count=2500

Statement:

<STX>35<ACK><ETX> <ACK> = 06H

Acknowledgment: <STX>3501R002500<ETX><CR>

Please note: If the counter is on a line that does not contain data (e.g. line 10), an error message
"<CAN><NUL>" will be sent back.

5.5. Error messages during the transfer of data

If the PC sends a wrong data protocol to the counter (e.g.: not existing line or letters instead of numerals), a
respective error message will be sent back by the counter, provided that the counter is still ready to receive. In
order to receive an error message in case of an error, at least the control character <STX> and the address
must be correct. If this is not the case, the N214 will no longer be ready to receive, with the result that no
acknowledgment can be sent back to the PC.
If no acknowledgment or no error message is received in case of PC enquiry, a fatal error has occurred. This
can apply if the control character <STX> or the address is missing and if the interface parameters of the PC
and the N 214 do not correspond. If this is, however, correct, the reason can only be an error of the hardware
or of the data line.

General structure of the error messages:

<STX> address line mode <CAN> error number <ETX> <CR>

Example: Address=35, line=09 (invalid line), error number=2
<STX>3509R<CAN>2<ETX><CR>

Advertising