Microcom 814M Programming Manual User Manual

Page 81

Advertising
background image

77

(The following hex string will print “

Select underline print mode

“)

53 65 6C 65 63 74 20 75 6E 64 65 72 6C 69 6E 65 20 70 72 69 6E 74 20 6D 6F 64 65

1B 2D 02

(turn underline mode on)

(The following hex string will print “

Now it works! Select Print mode

“)

4E 6F 77 20 69 74 20 77 6F 72 6B 73 21 20 53 65 6C 65 63 74 20 50 72 69 6E 74 20 6D 6F 64 65

1B 21 01

(select print mode)

33 33 33 33 33 33 33

1B 21 00

(select print mode)

(The following hex string will print “

Open inverse print mode

“)

4F 70 65 6E 20 69 6E 76 65 72 73 65 20 70 72 69 6E 74 20 6D 6F 64 65

0A

(print)

1B 7B 01

(turn upside-down printing mode on)

(The following hex string will print “

OK!

“)

4F 4B 21

0A

(print)

1B 7B 00

(turn upside-down printing mode off)

(The following hex string will print “

OK! Now I'll show you zoom mode

“)

4F 4B 21 20 4E 6F 77 20 49 27 6C 6C 20 73 68 6F 77 20 79 6F 75 20 7A 6F 6F 6D 20 6D 6F 64 65

0A

(print)

1D 21 33

(select character size)

(The following hex string will print “

OK! It works!

“)

4F 4B 21 20 49 74 20 77 6F 72 6B 73 21

0A

(print)

1D 21 00

(select character size)

1D 42 01

(turn white/black reverse printing mode on)

33 33 33 33 33 33 33

1D 42 00

(turn white/black reverse printing mode off)

33 33 33 33 33

0A

print)

1D 56 00

(cut paper)

3) Print character/barcode/bit image

a) Print characters

To print ASCII characters, send ASCII codes of characters to printer.

Examples

1B 40

(initialize printer)

4D 69 63 72 6F 63 6F 6D 20 43 6F 72 70 6F 72 61 74 69 6F 6E

0A

(print)

1D 56 00

(cut paper)

Printout:“Microcom Corporation”

b) Print barcode (Refer to command set for detailed information)

Advertising