Home > Copy Paste, Kerjaan, Programming, Tips Tutorial > Daftar ESC Command versi byrzl

Daftar ESC Command versi byrzl


Berikut daftar ESC Command yang saya kumpulkan dan gunakan untuk membuat report pada printer Epson LX300+II. Untuk cara membuat report dan mencetak pada printer dot matrix secara otomatis di linux anda bisa melihat post saya sebelumnya.

$initialized = chr(27).chr(64);
$condensed1 = chr(15);
$condensed0 = chr(18);
$elongated1 = chr(27).chr(87).chr(1);
$elongated0 = chr(27).chr(87).chr(0);
$draftmode = chr(27).chr(120).chr(0);
$lqmode = chr(27).chr(120).chr(1);
$doublestrike1 = chr(27).chr(71);
$doublestrike0 = chr(27).chr(72);
$italic1 = chr(27).chr(52);
$italic0 = chr(27).chr(53);
$doubleheight1 = chr(27).chr(119).chr(1);
$doubleheight0 = chr(27).chr(119).chr(0);
$print10cpi = chr(27).chr(80);
$print12cpi = chr(27).chr(77);
$elongatedline1 = chr(14);
$elongatedline0 = chr(20);
$changefont1 = chr(27).chr(120).chr(49);
$changefont0 = chr(27).chr(120).chr(48);
$roman = chr(27).chr(107).chr(48);
$sans = chr(27).chr(107).chr(49);
$draftmode = chr(27).chr(120).chr(48);
$underline1 = chr(27).chr(45).chr(49);
$underline0 =chr(27).chr(45).chr(48);
$small =chr(27).chr(33).chr(5);
$newpage = chr(12);
$movetoleft = chr(13);
$linefeed = chr(10);
$sizekwt = chr(27)."1".chr(27).chr(67)."9";
$sizerek = chr(27)."2".chr(27).chr(67)."66";

Untuk hasilnya bagaimana, silahkan anda coba sendiri ya…

Catatan: angka 1 dan 0 menunjukan start dan end.

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: