Epson U230 Printer User Manual


 
Programming Samples 4-9
TM-U230 Developers Guide
Confidential
Be sure to consider the BinaryConversion property when transmit the data over 80h.
Chr(&H1B)+"(" + "A" + Chr(&H5) + Chr(&H0) + Chr(&H61) + Chr(&H64) + Chr(&H5) +
Chr(&H0A) + Chr(&H0A) is the printer command that controls the internal buzzer. The internal
buzzer beeps five times at intervals of one second. Format of the ESC(A command is as follows.
[Format] ASCII ESC ( A pL pH fn n c t1 t2
Hex 1B 28 41 05 00 61 64 c t1 t2
c: specifies the number of times for beeps
t1: specifies the length of time to be ON
t2: specifies the length of time to be OFF
Refer to the TM-U230 series specification for more details of ESC(A command.
Refer to OPOS manuals for the programming using OPOS.
The following explanations are the details about programming samples using Control-A font in
EPSON Advanced Windows Driver.
Edit the TMCTRLA.INI as follows so that the buzzer control command ESC(A is assigned to
A(code41) of control-A font.
[TM-U230]
41=1B284105006164050A0A
41=1B284105006164050A0A in the description above assigns the buzzer control command
ESC(A to A(code41) of control-A font. This data specifies the internal buzzer to beep five
times at intervals of one second.
Save the TMCTRLA.INI under the following system folder.
Windows 95/98 :\windows\system
Windows NT :\winnt\system32\spool\Prcpocs\W32x86
Then describe as follows in your program.
Printer.DeviceName = "EPSON TM-U230 Receipt"
Printer.font.Name = " FontA"
Printer.Print "TM-U230"
Printer.Print "Buzzer Test"