7197 Series II Owner’s Guide
Chapter 6: Commands
August
2011
96
Set Relative Print Position
ASCII:
ESC \
n1 n2
Hexadecimal:
1B 5C
n1 n2
Decimal:
27 92
n1 n2
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 13 (standard pitch) or 10 (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
n1
= 236
n2
= 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 (standard pitch) or 8 (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 right of the current position)
20/256 = 0, remainder of 20
n1
= 20
n
2 = 0
Example:
MSComm1.Output = Chr$(&H1B) & Chr$(&H5C) & Chr$(n1) & Chr$(n2)
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
Summary of Contents for 7197 II SERIES
Page 5: ...v EMC 100 240 1 5 0 8 50 60 24 2 3 3 125 NCR NCR EMC 360 NCR EMC A A...
Page 7: ...vii A NCR NCR NCR A...
Page 35: ...7197 Series II Owner s Manual Chapter 2 Setting Up and Using the Printer 21 September 2011...
Page 37: ...7197 Series II Owner s Manual Chapter 2 Setting Up and Using the Printer 23 September 2011...
Page 38: ...7197 Series II Owner s Manual Chapter 2 Setting Up and Using the Printer 24 September 2011...
Page 253: ...7197 Series II Owner s Guide Appendix B Print Characteristics 228 Februrary 2012 Code Page 932...
Page 272: ...7197 Series II Owner s Guide Appendix B Print Characteristics 247 Februrary 2012...