Specifications
1-44 Command Descriptions Rev. A
Miscellaneous Function Commands
The TM-U950/U950P supports the following miscellaneous function commands.
Command Name
GS P Set horizontal and vertical motion units
ESC @ Initialize printer
GS E Select print speed and head energizing time
GS I Transmit printer ID
ESC p Generate pulse
ESC = Select peripheral device status
DLE ENQ Real-time request to printer
GS P x y
[Name] Set horizontal and vertical motion units
[Format] ASCII GS P xy
Hex 1D 50 xy
Decimal 29 80 xy
[Range] 0 ≤
x
≤ 255
0 ≤
y
≤ 255
GS P x y sets the horizontal and vertical motion units to 1/x and 1/y inches, respectively. The
horizontal and vertical motion units indicate the minimum pitch used for calculating the values of
related commands (shown below). The default values are x=150 and y=144. The calculated result
when using this command and the line spacing command is truncated to the minimum value of the
mechanical pitch (1/150 inch horizontal and 1/144 inch vertical) or an exact multiple of that
minimum value. The horizontal value 1/150 inch and the vertical value 1/144 inch each correspond
to a half-dot pitch.
Commands used with the horizontal motion unit (1/x): ESC SP, ESC $, ESC \
Commands used with the vertical motion unit (1/y ): ESC 3, ESC J, ESC K
Program Example Print Sample
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(180); AAAAA
PRINT #1, CHR$(&H1B);"3";CHR$(30);
←
Set line spacing
BBBBB
PRINT #1, "AAAAA"; CHR$(&HA); CCCCC
PRINT #1, "BBBBB"; CHR$(&HA);
PRINT #1, CHR$(&H1D);"P";CHR$(180);CHR$(90); DDDDD
PRINT #1, CHR$(&H1B);"3";CHR$(30);
←
Set line spacing
PRINT #1, "CCCCC"; CHR$(&HA); EEEEE
PRINT #1, "DDDDD"; CHR$(&HA);
PRINT #1, "EEEEE"; CHR$(&HA);
30/180-inch line spacing
30/90-inch line spacing