beautypg.com

Initialization, 1 status polling (command byte 23h) – EUCHNER HBAS User Manual

Page 19

background image

EUCHNER

Hand-Held Pendant Station

9. Initialization


To enable the communication interface, the hand-held pendant station must be initialized.
The initialization is performed either by polling the current states of the keys with the
"Status polling" ("Statusabfrage") function (section 9.1) and the transfer of parameters
(section 9.2), or by sending another valid command byte (section 10.3 Overview of
commands).
The baud rate is also set on initialization (see section 5).

9.1 Status polling (command byte 23H)


The state of the keys and the error byte can be polled by the control system at any time
using the command byte 23H.
The error byte remains set until a status poll has been performed or a further error-free
transfer is made.
After the status polling the error byte is reset to 31H (no error).
It is recommended to perform a status poll for initialization after the reception of a NAK
character, as in this way the HBAS is reset.


The control system requests the current status from the HBAS

HBAS

Control

system


Byte 1

STX

(02H)

Byte 1

DLE

Byte 2

STATUS WORD

(23H)

Byte 3

DLE

(10H)

Byte 4

ETX

(03H)

Byte 5

BCC

Byte 2

DLE




The HBAS sends its current status to the control system

Control system

HBAS


Byte 1

STX

(02H)

Byte 1

DLE

Byte 2

KEY BYTE

(see section 7)

Byte 3

ERROR BYTE

(see section 9)

Byte 4

DLE

(10H)

Byte 5

ETX

(03H)

Byte 6

BCC

Byte 2

DLE




The control system is only allowed to continue the transfer of data when the HBAS has
completed the transfer of the status.

092491-07-01/09

Subject to technical modifications

Page 19 / 34