Epson TM-U220 Guide for right side up printing - Page 15
The programming sample, These are printed
View all Epson TM-U220 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 15 highlights
Confidential 2.1.3 The programming sample The following sample program is written for Visual Basic. When using this program, turn off DIP switch 1-1. MSComm1.Output = Chr(27) & Chr(64) 'Sends "ESC" and "@" codes. This is "ESC @ command" 'Sends "GS (z 2 0 0S" code. This is "Start reverse block" command MSComm1.Output = Chr(29) & Chr(40) & Chr(122) & Chr(2) & Chr(0) & Chr(48) & Chr(83) MSComm1.Output = "---- These are printed with ----" MSComm1.Output = Chr(10) 'Sends "LF" code. This is "LF command" MSComm1.Output = "---- right side up printing mode. ----" MSComm1.Output = Chr(10) 'Sends "LF" code. This is "LF command" MSComm1.Output = "Test printing. ABC... 123..." & Chr(10) MSComm1.Output = "Test printing. ABC... 123..." & Chr(10) MSComm1.Output = "Test printing. ABC... 123..." & Chr(10) 'Sends "GS (z 2 0 0E" code. This is "End reverse block" command. MSComm1.Output = Chr(29) & Chr(40) & Chr(122) & Chr(2) & Chr(0) & Chr(48) & Chr(69) MSComm1.Output = Chr(29) & "V" & Chr(65) & Chr(0) 'Sends "GS V m n" command. (paper feed & cut) Note: the port open/close section and other part are omitted. This sample is just for explaining the flow. - - - - These are printed with - - - - - - - - right side up printing mode - - - - Test printing. ABC... 123... Test printing. ABC... 123... Test printing. ABC... 123... Print image Rev. A 7