Example 5 – SCANTECH ID (Champtek company) Discovery SG-20 User Manual

Page 84

Advertising
background image

76

Appendices

Example 5

How to create this screen:

COMMAND or data string

COMMENT

<ESC> 0x43 0x72

Show Image 2

*1

(=Special Offer

screen) and

don’t erase it when text is printed

<ESC> 0x3D 0x31 0x30 0x30 0x30

Set fontsize to small, inverted off,

italic off, don’t save

<ESC> 0x27 0x30 0x30

Set cursor to 0,0

"Mineral Water"

Print text

<ESC> 0x27 0x30 0x31

Set cursor to 0,1

"1 Ltr."

Print text

<ESC> 0x3D 0x32 0x30 0x30 0x30

Set fontsize to medium, inverted off,

italic off, don’t save

<ESC> 0x27 0x41 0x30

Set cursor to 17,0

0x80

Print the Euro sign

"0.98"

Print text

<ESC> 0x3D 0x32 0x30 0x31 0x30

Set fontsize to small, inverted off,

italic on, don’t save

<ESC> 0x27 0x30 0x35

Set cursor to 0,5

"Second bottle"

Print text

<ESC> 0x27 0x30 0x36

Set cursor to 0,6

"half price"

Print text

Advertising