POS Technical Documents
How can ESC/POS commands be transmitted ? For example, how about the cut sheet wait time command ESC f m n ?
Following, are a couple of examples to send the commands.When using BASIC, an example would be as follows (m = 1, n = 1):
PRINT #1, CHR$(&H1B); CHR$(&H66); CHR$(11); CHR$(1);
or
PRINT #1, CHR$(&H1B); "f"; CHR$(11); CHR$(1);
In Visual Basic, using the MSComm Control:
MSComm1.CommPort = 1 'Select Com1
MSComm1.PortOpen = True 'Open Port
MSComm1.Settings = "9600,N,8,1" 'Initialize port
MSComm1.Output = Chr(&H1B) + "f" + Chr(11) + Chr(1) 'Cut sheet wait time command, f m n
MSComm1.PortOpen = False 'Close Port
End Sub