beautypg.com

Baumer NE216 User Manual

Instruction manual, General, Transmission protocol

background image

Baumer IVO GmbH & Co. KG

05.13 171.02.185/1

Dauchinger Strasse 58-62

DE-78056 Villingen-Schwenningen

Subject to modification

Phone +49 7720 942-0 Fax +49 7720 942-900

in technic and design.

www.baumer.com [email protected]

Instruction Manual

Interface instruction
NE216 progr. 01

1.1. General

The serial interface can accomplish the same functions as the display and the keyboard of the counter. It is
possible to call up data and to change the programming of parameters. In general, the counter is controlled
via a PC. However, it is also possible to use another device with similar features.

2. Transmission protocol

The transmission is effected character by character in ASCII code. Each character consists of 8 bits. The 8

th

bit is the parity bit, and in case of "no parity" it will always be sent as zero.
The counter responds to every request of the PC via the serial interface if the data has been correctly trans-
mitted.
Character transmission is introduced with the start-of-text character and closed by the end-of-text
character . In addition, the counter sends a (carriage return) after . This allows the input
of a complete data block by means of one command (in high-level languages such as BASIC).
After there will follow an address allotted to the counter, making it possible to specifically address the
counter within a serial network. After the address, please indicate the position that you wish to read out or to
program. In case of a programming command, you will need to enter a "P" (for programming) and the data
(parameters).

The protocol is classified into three groups as indicated below:

a) Read memory space (READ instruction):

identifier line []

b) Write memory location (WRITE instruction):

identifier line P data []

c) Special commands:

identifier parameters []

Start of Text (02Hex)

Address 00...99 (device identifier)

Line 01...XX (see operating chart)

P Programming command

Data Parameter data

Parameter Special commands

End of Text (03Hex)

0DHex (control token "carriage return")

"CR" is optional but ever replied by the counter.

Example:

Standard identifier line (identifier=35; line=02)

Ascii 3502

Hex 02H,33H,35H,30H,32H,03H

Important!
The blanks between the particular characters of the commands only serve the purpose of better

legibility. PC input must be without blanks. Control characters (less than 20Hex) are in "pointed"
brackets. Any incorrect protocol received from the PC will be replied by an error message, pro-
vided NE216 remains still

accessible. Please refer to chapter “Error messages” on page 4.