public class DataForSendToPrinterPos76
extends java.lang.Object
Constructor and Description |
---|
DataForSendToPrinterPos76() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
allowOrForbidPressButton(int n)
allow or forbid press button
ESC c 5 n
|
static byte[] |
cancelChineseCharModel()
select Or Cancel Chinese Char UnderLine Model
FS .
|
static byte[] |
cancelUserDefinedCharacters(int n)
cancel user defined characters
ESC ? n
Cancel the user-defined characters in the code for the n character
|
static byte[] |
cancelUserDefinedChineseChar(int c2)
cancel User Defined ChineseChar
FS ? c1 c2
|
static byte[] |
creatCashboxContorlPulse(int m,
int t1,
int t2)
creat cashbox contorl pulse
ESC p m t1 t2
|
static byte[] |
definedUserDefinedChineseChar(int c2,
byte[] b)
defined User Defined ChineseChar
FS 2 c1 c2 d1...dk
|
static byte[] |
defineuserDefinedCharacters(int c1,
int c2,
byte[] b)
User defined character
ESC $ Y c1 c2 [x1 d1...d(x1*y)]...[xk d1...d(y*xk)]
|
static byte[] |
executePrintDataSaveByTransformToHex()
execute printdata save by transform to hex
GS ( A pL pH n m
|
static byte[] |
feedBlackPaperToPrintPosition()
feed black paper to print position
GS FF
|
static byte[] |
feedpaperToOrderEnd()
feed paper to order end
ESC DEL
|
static byte[] |
horizontalPositioning()
Horizontal positioning instruction;
HT
|
static byte[] |
initializePrinter()
Initialize printer
ESC @
|
static byte[] |
openOrCloseAutoReturnPrintState(int n)
open or close auto return print state
GS a n
|
static byte[] |
printAndBackFeed(int n)
print and back feed
ESC K n
|
static byte[] |
PrintAndCarriageReturn()
Print and carriage return
CR
|
static byte[] |
printAndFeed(int n)
print and feed
ESC J n
|
static byte[] |
printAndFeedForward(int n)
print and feed forward
ESC d n
|
static byte[] |
printAndFeedLine()
print and feed Line
LF
|
static byte[] |
printAndFeedUnidirection(int n)
print and feed backward
ESC d n
|
static byte[] |
printHeaderRecordAndFeedToPrintStartPosition()
print head record and feed to print start position
GS <
The printer receives the order after the first print head reset, then go to the starting position of black label printing paper¡£
|
static byte[] |
printHeadReplaceEnter()
print head replace enter
Move the print head to the standby position
ESC <
|
static byte[] |
requestRealtimeForPrint(int n)
request real time for print
DLE ENQ n
|
static byte[] |
returnState(int n)
returnState
GS r n
|
static byte[] |
selectAlignment(int n)
Select alignment
ESC a n
|
static byte[] |
selectBmpModel(int m,
int nL,
int nH,
byte[] b)
Select the bitmap mode
ESC * m nL nH d1 d2...dk
|
static byte[] |
selectCharacterCodePage(int n)
select character codepage
ESC t n
|
static byte[] |
selectChineseCharModel()
set Chinese Character Model
FS &
|
static byte[] |
selectCutPagerModerAndCutPager(int m)
select Cut Pager Moder And CutPager
GS V m
|
static byte[] |
selectCutPagerModerAndCutPager(int m,
int n)
select Cut Pager Moder And CutPager
GS V m n
|
static byte[] |
selectFont(int n)
Select Font
ESC M n
|
static byte[] |
selectInternationalCharacterSets(int n)
select international character set
ESC R n
|
static byte[] |
selectOrCancelBoldModel(int n)
Select or cancel the bold model
ESC E n
|
static byte[] |
selectOrCancelChineseCharDoubleWH(int n)
select or cancel chineseChar double width and height
FS W n
|
static byte[] |
selectOrCancelChineseCharUnderLineModel(int n)
select Or Cancel Chinese Char UnderLine Model
FS - n
|
static byte[] |
selectOrCancelConvertPrintModel(int n)
select or cancel convert print model
ESC { n
|
static byte[] |
selectOrCancelDoubelPrintModel(int n)
Select or cancel double print mode
ESC G n
|
static byte[] |
selectOrCancelUnderlineModel(int n)
Select or cancel underline mode
ESC-n
|
static byte[] |
selectOrCancelUnidirectionPrint(int n)
select or cancel unidirection print
ESC U n
|
static byte[] |
selectOrCancleCustomChar(int n)
select or cancle custom char
ESC % n
|
static byte[] |
selectPrintColor(int n)
select print color
ESC t n
|
static byte[] |
selectPrintModel(int n)
select print mode
ESC £¡n
|
static byte[] |
selectPrintTransducerOutPutPageOutSignal(int n)
select printer transducer output page out Signal
ESC c 3 n
|
static byte[] |
selectPrintTransducerStopPrint(int n)
select printer transducer stop print
ESC c 4 n
|
static byte[] |
sendRealtimestatus(int n)
send real time status
DLE EOT n
|
static byte[] |
setBlackPositionRecord(int a,
int m,
int nL,
int nH)
set black position record
GS ( F pL pH a m nL nH
|
static byte[] |
setCharRightSpace(int n)
set char right space
|
static byte[] |
setChineseCharacterModel(int n)
set Chinese Character Model
FS ! n
|
static byte[] |
setChineseCharLeftAndRightSpace(int n1,
int n2)
Set the spacing Chinese characters characters.
|
static byte[] |
setConnectWaitTime(int t1,
int t2)
set the reconnect time
GS z 0 t1 t2
|
static byte[] |
setDefultLineSpacing()
Set the default line spacing
ESC 2
About 3.75mm
|
static byte[] |
setHorizontalmovementPosition(byte[] b)
set horizontal movement position
ESC D n1...nk NUL;
|
static byte[] |
setLineSpaceing(int n)
line-height
ESC 3 n
|
static byte[] |
setOrderLength(int nL,
int nH)
set Order Length
ESC ~ nL nH
|
static byte[] |
setRollBackLength(int n)
set roll back length
length= n¡Á0.1764 mm
ESC ^ n
|
static byte[] |
strTobytes(java.lang.String str)
string to byte[]
|
public static byte[] horizontalPositioning()
public static byte[] printAndFeedLine()
public static byte[] PrintAndCarriageReturn()
public static byte[] sendRealtimestatus(int n)
n,1<=n<=4;
- public static byte[] requestRealtimeForPrint(int n)
n,1<=n<=2
- public static byte[] setCharRightSpace(int n)
n,On
- behalf of the size of the variable spacing£¬ranges0-255£»public static byte[] selectPrintModel(int n)
n
- On behalf of the print mode variable£¬ranges:0-255public static byte[] selectOrCancleCustomChar(int n)
n£¬0-255£¬The
- lowest is 1,use;the lowest is 0, do not use.public static byte[] defineuserDefinedCharacters(int c1, int c2, byte[] b)
c1£¬c2£¬c1
- is the initial character code£¬c2 is the termination of the character code£¬ranges32<=c1<=c2<=127;b£¬The
- format for the byte[]:[x1 d1...d(x1*y)]...[xk d1...d(y*xk)]£¬Set B for download character character data.
Custom character rules for details, please refer to the manual programming£»public static byte[] selectBmpModel(int m, int nL, int nH, byte[] b)
m£º0,1,32£¬33,represents
- different point densitynL£º0-255
- nH£º0-3
- b£¬b={d1
- d2...dk}£¬m=0 or 1,k=nL+nH*256;m=32 or 33,k=(nL+nH*256)*3;0<=d<=255;
Please refer to the instruction manual programmingpublic static byte[] selectOrCancelUnderlineModel(int n)
n:0,48.1,49
- (remove underlining use underscores 1 points wide); 2,50 (2 bit wide) underline;public static byte[] setDefultLineSpacing()
public static byte[] setLineSpaceing(int n)
n£º0-255
- public static byte[] printHeadReplaceEnter()
public static byte[] cancelUserDefinedCharacters(int n)
n:32-127
- public static byte[] initializePrinter()
public static byte[] setHorizontalmovementPosition(byte[] b)
b={n1...nk};k<=32;movement
- position=width of character * n£»public static byte[] selectOrCancelBoldModel(int n)
n£¬0-255£¬The
- lowest is 1, bold; 0, cancel.public static byte[] selectOrCancelDoubelPrintModel(int n)
n£¬0-255£¬The
- lowest is 1, double choose print; the lowest is 0, cancel the double printpublic static byte[] printAndFeed(int n)
n
- £º0-255public static byte[] printAndBackFeed(int n)
public static byte[] selectFont(int n)
n
- ranges£º0£¬1£¬48£¬49£»0£¬48 standard font ;1,49 Font compressionpublic static byte[] selectInternationalCharacterSets(int n)
n£º0-15£»A
- representative of an international character setpublic static byte[] selectOrCancelUnidirectionPrint(int n)
n
- The lowest is 1, chooes; 0, cancel£»public static byte[] selectAlignment(int n)
n:0-2or48-50£»Respectively:
- left aligned, centered, right alignedpublic static byte[] selectPrintTransducerOutPutPageOutSignal(int n)
n£º0-255
- public static byte[] selectPrintTransducerStopPrint(int n)
n:0-255
- public static byte[] allowOrForbidPressButton(int n)
n£º0-255£¬The
- lowest is 1, chooes; 0, cancel£»public static byte[] printAndFeedForward(int n)
n:0-255£»
- public static byte[] printAndFeedUnidirection(int n)
n:0-255£»
- public static byte[] creatCashboxContorlPulse(int m, int t1, int t2)
m
- £ºConnecting pin£¬ranges£º0,1,48,49£»t1,t2£º0-255
- public static byte[] selectPrintColor(int n)
n:0,1,48,49;
- define:n=0public static byte[] selectCharacterCodePage(int n)
n£º0<=n<=10,16<=n<=19;
- public static byte[] selectOrCancelConvertPrintModel(int n)
n£ºThe
- lowest is 1, chooes; 0, cancel. ranges£º0-255£»public static byte[] executePrintDataSaveByTransformToHex()
public static byte[] selectCutPagerModerAndCutPager(int m)
m£º0£¬48£¬full
- cut£»1,49£¬half cutpublic static byte[] selectCutPagerModerAndCutPager(int m, int n)
m£º66
- n:
- feed forword n£¬public static byte[] openOrCloseAutoReturnPrintState(int n)
n£¬0-255£¬
- public static byte[] returnState(int n)
n£¬ranges£º1,2,49,50£»
- 1,49Returns the sensor status
2,50Return to the state of the cashboxpublic static byte[] setConnectWaitTime(int t1, int t2)
t1,t2,ranges£º0-255;
- define:t1=t2=0;public static byte[] setChineseCharacterModel(int n)
n
- ranges:0-255public static byte[] selectChineseCharModel()
public static byte[] selectOrCancelChineseCharUnderLineModel(int n)
n£º0-2or48-50£»
- public static byte[] cancelChineseCharModel()
public static byte[] definedUserDefinedChineseChar(int c2, byte[] b)
c2:A1H<=c2<=FEH
- b,size:72£¬On
- behalf of the definition of Chinese characters datapublic static byte[] cancelUserDefinedChineseChar(int c2)
The
- C2 command to cancel Chinese characters character code definition
specified by C1 and C2 in the cancellation of custom print blank characters Chinese characters characterspublic static byte[] setChineseCharLeftAndRightSpace(int n1, int n2)
n1,Set
- left side distance£¬0-255£»n2,Set
- right side distance£¬0-255£»public static byte[] selectOrCancelChineseCharDoubleWH(int n)
n£º0-255£»The
- lowest is 1, chooes; 0, cancel.public static byte[] setBlackPositionRecord(int a, int m, int nL, int nH)
pL+(pH¡Á256)¡Ô4
- is pL=4£¬pH=0
a=1£¬2£»m=0£¬48 or 1£¬49
0¡Ü(nL+nH¡Á256)<1700public static byte[] feedBlackPaperToPrintPosition()
public static byte[] setRollBackLength(int n)
n,0-255;
- public static byte[] setOrderLength(int nL, int nH)
nL,nH,
- This command is used to set the length (nL+nH x 256 x 0.1764 mm)£¬public static byte[] feedpaperToOrderEnd()
public static byte[] printHeaderRecordAndFeedToPrintStartPosition()
public static byte[] strTobytes(java.lang.String str)