Select your printer model

Parameters are refined by the selected printer.
  • EU-m30
  • TM-J2000
  • TM-J2100
  • TM-L90
  • TM-L90 LFC
  • TM-L100
  • TM-m10
  • TM-m30
  • TM-m30II
  • TM-m30II-H
  • TM-m30III
  • TM-m30III-H
  • TM-m30II-NT
  • TM-m30II-S
  • TM-m30II-SL
  • TM-m50
  • TM-m50II
  • TM-m50II-H
  • TM-P20
  • TM-P20II
  • TM-P60
  • TM-P60II
  • TM-P80
  • TM-P80II
  • TM-T20
  • TM-T20II
  • TM-T20III
  • TM-T20IIIL
  • TM-T20IV-L
  • TM-T20X
  • TM-T20X-II
  • TM-T70
  • TM-T70II
  • TM-T81III
  • TM-T82II
  • TM-T82III
  • TM-T82IIIL
  • TM-T82IV-L
  • TM-T82X
  • TM-T82X-II
  • TM-T83III
  • TM-T83IV
  • TM-T88IV
  • TM-T88V
  • TM-T88VI
  • TM-T88VII
  • TM-T90
  • TM-T100
  • TM-U220
  • TM-U220II
  • TM-U230

GS ( P   <Function 48>


[Name]

Set the printable area in Page mode

[Format]

ASCII
   
GS
  
(
  
P
  
pL
  
pH
  
fn
  
wxL
  
wxH
  
wyL
  
wyH
  
oxL
  
oxH
  
c
Hex
1D
28
50
08
00
30
wxL
wxH
wyL
wyH
oxL
oxH
c
Decimal
29
40
80
8
0
48
wxL
wxH
wyL
wyH
oxL
oxH
c

[Range]

(pL + pH × 256) = 8
fn = 48
(wxL + wxH × 256) = 65535
(oxL + oxH × 256) = 0
c = 1
wyL, wyH: different depending on the printers

[Default]

(wxL + wxH × 256) = 65535
(oxL + oxH × 256) = 0
c = 1
wyL, wyH: different depending on the printers

[Description]

Sets the printable area when Page mode is selected.
  • Sets the horizontal size to [(wxL + wxH × 256) × horizontal motion units] from the horizontal offset.
  • Sets the vertical size to [(wyL + wyH × 256) × vertical motion units] from the absolute origin.
  • Sets the horizontal offset to the [(oxL + oxH × 256) × horizontal motion units] position.

[Notes]

  • Use this function when the Standard mode is selected.
  • In this function, horizontal indicates "perpendicular to the feed direction," while vertical indicates "the feed direction."
  • A horizontal size or vertical size of 0 cannot be set.
  • The horizontal motion unit is used to calculate the horizontal size and horizontal offset.
  • The vertical motion unit is used to calculate the vertical size.
  • If the maximum settable area is exceeded, the following corrective action is taken.
    • If the specified horizontal size exceeds the maximum settable area [horizontal size = maximum value for the printable area] is set.
    • If the specified (horizontal offset + horizontal size) exceeds the maximum settable area [horizontal offset = (maximum value for the printable area − horizontal size)] is set.
    • If the specified vertical size exceeds 1,016 mm {40 inches}, [vertical size = 1,016 mm {40 inches}] is set.
    • If the maximum value for the area size specified by the model is exceeded, the corrective action specified by the model is executed.
  • If the horizontal and vertical motion units are changed after the printable area is set, the printable area set does not change.
  • When using the Page mode with models that support this command, the following rules apply.
    • The printable area set with this function is the maximum value for the area that can be specified with ESC W.
    • The top left of the printable area set with this function is treated as the absolute origin of ESC W.
    • If the printable area is changed with this function, set the printing area with ESC W after the printable area change.
  • The setting value of this function is valid until ESC @, reset, or power off are executed.
  • Settings of this function do not affect printing in Standard mode.
 

Quick Access

  • [Name]
  • [Format]
  • [Range]
  • [Description]
  • [Notes]

ESC/POS® includes patented or patent pending commands. The contents must not be disclosed to third parties.


ESC/POS® Command Reference for TM Printers

Jump to the top