beautypg.com

4 clear commands, 5 text commands – EUCHNER HBAS User Manual

Page 27

background image

EUCHNER

Hand-Held Pendant Station

092491-07-01/09

Subject to technical modifications

Page 27 / 34


10.2.4 Clear commands

Command

byte

Description Parameter:

28H

Clear the current cursor position

1)

29H

Clear to the end of the line

2)

2AH

Clear to the end of the display

3)

2BH

Clear the entire display

4)

2CH

Clear a display area

5)

(Independent of the font size, a basis
of 8 lines and 16 columns is always
used)

Start line (

30H...37H

),

Start column (

30H...3FH

),

End line (

30H...37H

),

End column (

30H...3FH

)

1)

After "Clear at the current cursor position", the cursor remains in the same position.

2)

After "Clear to the end of the line", the cursor remains at the end of the line.

3)

After "Clear to the end of the display", the cursor remains at the end of the display.

4)

After "Clear the entire display", the cursor is at the start of the display.

5)

After "Clear a display area", the cursor is at the bottom right of the area cleared.




Example: Clearing from the current position of the cursor to the end of the line

Control system

STX

6CH

29H

ETX BCC

HBAS

DLE

DLE



Example: Clearing from column 2, line 3 to column 12, line 6

Control system

STX

6CH

2CH

32H 33H 3CH 36H

ETX BCC

HBAS

DLE

DLE





10.2.5 Text commands

The user can define up to 200 different items of text and their position on the screen
and display the items of text using a short command. An item of text is allowed to be
a maximum of 30 characters long.
The text definitions can be made at any time. If an item of text already defined is re-defined,
the old item of text is erased. Within a defined item of text, other LCD commands are also
allowed, thus longer command sequences can also be opened using the short command
(macro function).

If an item of text that has not yet been defined is to be output, the error byte is set to 34H.
The error byte can be polled using the status polling (section 9.1).