Error messages during data transfer, Chart of control signs applied, Readout of counter identification – Baumer NE134 Benutzerhandbuch

Seite 12

Advertising
background image

NE134

12 www.baumer.com

5.4. Readout of Counter Identification

Identification data are read only. The address is followed by two parameters. Command parameter „I“ (for
identification) and selective parameters „T“ (type and program number) or „D“ (date and hardware version) for
the several identification data.

Readout of device type and program number:

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

Readout of date and version number:

Address=35, Date=25.09.98, Version number=1
Command: <STX>35ID<ETX>
Reply: <STX> 35250998 1 <ETX><CR>

6. Error Messages During Data Transfer

Should the counter receive a wrong data protocol by the PC (for example: not existing line or letters instead of
numbers) the counter will reply by a corresponding error message, provided it still remains in responsive status.
In order to receive an error message in case of error, at least the control sign <STX> and address have to be
correct. If not, the counter is no longer capable of responding and thus will not return any reply to the PC.
If there is no reply obtained upon request by PC, neither any error message, the error is a fatal one. This might
happen as already mentioned above if the control sign <STX> or address are missing and as soon as the
interface parameters of PC and counter are not compatible. In case these are correct, however, the error is
resulting from the hardware or data line.

General structure of error messages:

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

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

In the error message both „line“ and „status“ are being omitted.

Error description in detail:

Error 1 : Format error (incorrect location of <ETX>). This error appears in

case the data format was not kept during programmation (example:
During programmation of the preset value only 5 data digits instead
of 6 are being transferred).


Error 2 : Line (position) not existing or separating line only

Error 3 : Parameter error (void value in the protocol). Example: The preset value

does not consist of numbers but also of other void signs or is not
within the permitted range

7. Chart of Control Signs Applied

Control Sign

Hex

Decimal

<STX> 02

02

<ETX> 03

03

<LF> 0A

10

<CR> 0D

13

<DC1> 11

17

<CAN> 18

24

<DEL> 7F

127

Advertising