beautypg.com

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

Page 84

background image

76

Appendices

Example 5

How to create this screen:

COMMAND or data string

COMMENT

0x43 0x72

Show Image 2

*1

(=Special Offer

screen) and

don’t erase it when text is printed

0x3D 0x31 0x30 0x30 0x30

Set fontsize to small, inverted off,

italic off, don’t save

0x27 0x30 0x30

Set cursor to 0,0

"Mineral Water"

Print text

0x27 0x30 0x31

Set cursor to 0,1

"1 Ltr."

Print text

0x3D 0x32 0x30 0x30 0x30

Set fontsize to medium, inverted off,

italic off, don’t save

0x27 0x41 0x30

Set cursor to 17,0

0x80

Print the Euro sign

"0.98"

Print text

0x3D 0x32 0x30 0x31 0x30

Set fontsize to small, inverted off,

italic on, don’t save

0x27 0x30 0x35

Set cursor to 0,5

"Second bottle"

Print text

0x27 0x30 0x36

Set cursor to 0,6

"half price"

Print text