Chapter 5: Programming commands
40
A776 (B780) Programming Guide
A776-PG00001 D 07/13
Set relative print position
ASCII
ESC \
n
1
n
2
Hexadecimal
1B 5C
n
1
n
2
Decimal
27 92
n
1
n
2
Value of
n:
To move the relative starting position right of the current position by
n
dots:
n
1 = Remainder after dividing
n
by 256
n
2 = Integer after dividing
n
by 256
The values for
n
1 and
n
2 are two bytes in low byte, high byte word orientation.
To move the relative starting position left of the current position by
n
dots:
n
1 = Remainder after dividing (65,536–
n
) by 256
n
2 = Integer after dividing (65,536–
n
) by 256
The values for
n
1 and
n
2 are two bytes in low byte, high byte word orientation.
Moves the print starting position the specified number of dots either right (up to the right margin) or left (up to the left
margin) of the current position. The print starting position is reset to the first column after each line.
Formulas
To move to the left:
Determine the value of
n
by multiplying the number of columns to move left of the current position by 10 (slip
or receipt standard pitch) or 8 (receipt compressed pitch). The example shows how to set the relative position two
columns in standard pitch (10 dots per column) to the left of the current position.
2 x 10 =
20 dots (two columns to be moved left of the current position)
65,536–20 =
65516
65,516/256 = 255, remainder of 236
n
1 = 236,
n
2 = 255
To move to the right:
Determine the value of
n
by multiplying the number of columns to move right of the current position by 10 (slip
or receipt standard pitch) or 8 (receipt compressed pitch). The example shows how to set the relative position two
columns in standard pitch (10 dots per column) to the right of the current position.
2 x 10 =
20 dots (two columns to be moved left of the current position)
20/256 =
0, remainder of 20
n
1 =
20,
n2
= 0
Related information
If the set horizontal and vertical minimum motion units command (1D 50) is used to change the horizontal and vertical
minimum motion unit, the parameters of this command (set relative print position) will be interpreted accordingly. For
more information, see the description of the set horizontal and vertical minimum motion units command (1D 50) in
this document.
Содержание A776 ColorPOS
Страница 12: ...Contents x A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 14: ...Chapter 1 About this Guide 2 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 160: ...Appendix B Resident Character Sets 148 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 737 Greek...
Страница 161: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 149 Code page 850 Multilingual...
Страница 162: ...Appendix B Resident Character Sets 150 A776 B780 Programming Guide A776 PG00001 D 07 13 Code Page 852 Slavic...
Страница 163: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 151 Code Page 857 Turkish...
Страница 164: ...Appendix B Resident Character Sets 152 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 858 with Eurosymbol...
Страница 165: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 153 Code page 860 Portugese...
Страница 166: ...Appendix B Resident Character Sets 154 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 862 Hebrew...
Страница 167: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 155 Code page 863 French Canadian...
Страница 168: ...Appendix B Resident Character Sets 156 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 865 Nordic...
Страница 169: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 157 Code page 866 Cyrillic...
Страница 170: ...Appendix B Resident Character Sets 158 A776 B780 Programming Guide A776 PG00001 D 07 13 Code page 1251 Cyrillic...
Страница 171: ...Appendix B Resident Character Sets A776 PG00001 D 07 13 A776 B780 Programming Guide 159 Code page 1252 Windows Latin 1...
Страница 172: ...Code page 1255 Hebrew...
Страница 173: ...Code page KZ_1048 Kazakh Code Page KZ_1048 Kazakh...
Страница 174: ...Appendix C Electronic Journal 162 A776 B780 Programming Guide A776 PG00001 D 07 13...
Страница 179: ......
Страница 180: ...A776 PG00001 Rev D 07 2013...