beautypg.com

2 lcd functions (identifier 6ch), 1 cursor functions, 2 character output – EUCHNER HBAS User Manual

Page 25

background image

EUCHNER

Hand-Held Pendant Station

092491-07-01/09

Subject to technical modifications

Page 25 / 34

10.2 LCD functions (identifier 6CH)




10.2.1 Cursor functions

The cursor is controlled by sending a command byte and, if necessary, by sending
additional parameters.

Command

byte

Description Parameters

21H

Cursor to the next character

22H

Cursor to the previous character

23H

Cursor one line down

24H

Cursor one line up

25H

Cursor at the start of the display

26H

Cursor at the start of the line

27H

Cursor at a specific position

Small font:
line (

30H...37H

), column (

30H...3FH

)

Large font:
line (

30H...33H

), column (

30H...37H

)



Example: Cursor is first placed at the start of the display and then at line 2, column 3

Control system

STX

6CH

25H

27H

32H 33H

ETX BCC

HBAS

DLE

DLE





10.2.2 Character output

To output a character at the current position of the cursor, it is sufficient to write this
character to the data block. The cursor is then moved forward one position (except at the
end of the display). At the end of the line a LF is performed. On the last line at the last
position, the cursor remains stationary and writes the remaining text at this position.

Example: The text "

Euchner

" is output at the current cursor position

Control
system

STX

6CH

A5H

D5H

C3H C8H CEH C5H D2H

ETX BCC

HBAS

DLE

DLE