PinCmd

Superclass:
Declared In:

Introduction

针打的命令类 pincmd command class



Methods

-GetAbsolutePrintPositionCmd:
-GetFontStyle836sCmd:
-GetIsDualPrintCmd:
-GetJumpingRow180thCmd:n:
-GetPageLengthCmd:ipageLen:
-GetPrintDirectionCmd:
-GetPrintEndCmd
-GetRowSpaceingCmd:n:

GetAbsolutePrintPositionCmd:


-(NSData *)GetAbsolutePrintPositionCmd:(NSInteger)n; 
Parameters
n

≤636

Return Value

NSData

Discussion

绝对定点位置定位 以当前左边限为基准,右移打印头n/60 英寸。若该距离超越右边限,此 设定无效。最大设置距离为 10.6 英寸。

Absolute fixed position positioning With the current left margin as a reference, move the printhead n / 60 inches to the right. If the distance is beyond the right limit, this Setting is invalid. The maximum setting distance is 10.6 inches.


GetFontStyle836sCmd:


-(NSData *)GetFontStyle836sCmd:(FontStyle836)FontStyle836; 
Parameters
FontStyle836

字体风格 font style

Return Value

<#return value description#>

Discussion

设置字体风格 Set font style


GetIsDualPrintCmd:


-(NSData *)GetIsDualPrintCmd:(SettingMode)isDoublePrint; 
Parameters
isDoublePrint

是否双重打印 Whether double printing

Discussion

双重打印 Double printing 首先正常地完成一行的打印,接着稍下移再打印,以产生加重的效果 First of all, the normal completion of a line of printing, then slightly lower and then print, in order to produce aggravate effect


GetJumpingRow180thCmd:n:


-(NSData *)GetJumpingRow180thCmd:(JumpMode)jumpMode n:(NSInteger)n; 
Parameters
jumpMode

跳行模式 Jump mode

n

跳行单位 n/180

Return Value

NSData

Discussion

实现单次 n/180 跳行 Single n / 180 skip


GetPageLengthCmd:ipageLen:


-(NSData *)GetPageLengthCmd:(PageUnit)ipageunit ipageLen:(NSInteger)ipageLen; 
Parameters
ipageunit

页长单位 Page long unit,PageUnit_Row:单位为行(Row) PageUnit_inch:单位为英寸(inch)

ipageLen

Row1≤ipageLen≤127

Return Value

页长指令

Discussion

设定页长度为 n 行/英寸。打印机根据当前的行距设定,将行数演算为英寸储存。随后的新行距 设定亦不会改变此页长值。当前的行位置 以后将作为页首位置,而底栏空则被撤消

Set the page length to n lines / inch. Printer based on the current line spacing settings, the number of lines calculated as inches. Followed by the new line spacing   Settings will not change the page long value. The current line location   The future will be the top position, while the bottom bar is empty


GetPrintDirectionCmd:


-(NSData *)GetPrintDirectionCmd:(PrintDirectionMode)printdirectionmode; 
Parameters
printdirectionmode

打印方向

Return Value

NSData

Discussion

设定打印方向 若设定 EDS 开关图象方向 项为双向,此命令设定无效。 Set the printing direction


GetPrintEndCmd


-(NSData *)GetPrintEndCmd; 
Return Value

NSData

Discussion

打印结束,退纸 End of printing, rewinding


GetRowSpaceingCmd:n:


-(NSData *)GetRowSpaceingCmd:(RowSpacingMode)spacingmode n:(NSInteger)n; 
Parameters
spacingmode

行距模式 Row spacing mode

n

0≤n≤255

Return Value

NSData

Discussion

获取行距的命令 Get line spacing command