Error messages during the transfer of data, 3 line feeding, 4 reading out the counter identification – Baumer BE134 Benutzerhandbuch

Seite 12

Advertising
background image

BE134

12 www.baumer.com

5.3 Line feeding

The statement allows the feeding of the display to the next line. The function is possible both in the RUN and in
the PGM mode. The data of the current line (after the feeding) are sent back as acknowledgment.
Example: Address=35, mode=RUN mode, feeding from line 1 to line 2

Statement:

<STX>35<LF><ETX> <LF> = 10Hex

Acknowledgment: <STX>3502R000100<ETX><CR>

5.4 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=BE134, program number=01
Statement:

<STX>35IT<ETX>

Acknowledgment:

<STX>35BE134 01<ETX><CR>


Reading out date and release number:

Address=35, date=25.09.98, release number=1
Statement:

<STX>35ID<ETX>

Acknowledgment:

<STX>35250998 1<ETX><CR>


6. 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 counter will no longer be ready to receive, with the result that no
acknowledgment can be sent back to the PC.
If no acknowledgment, and thus 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 counter 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>

When the error message is returned, the two positions "line" und "mode" are dropped

Detailed error description:

Error 1 :

Format error (<ETX> is not positioned correctly). This error occurs

e.g. if the data format is not observed during the programming (e.g.:

when programming the preselection value, only 5 data positions are

transmitted instead of 6)

Error 2 :

Line (position) does not exist or separation line


Error 3 :

Parameter error (invalid values in the protocol). That means, for

example, that the preselection value does not only consist

of numerals but also of other invalid signs or that a given value

is not within a permissible range.

Advertising