back to main menu

COMMON ESC/P2 COMMANDS - EPSON

COMMANDASCIIHEXDECIMAL
intialize printerESC @1B 4027 64
select condensedESC SI1B 0F27 15
cancel condensedDC21218
select italicESC 41B 3427 52
cancel italicESC 51B 3527 53
select boldESC E1B 4527 60
cancel boldESC F1B 4627 70
select 10 CPIESC P1B 5027 80
select 12 CPIESC M1B 4D27 77
select 15 CPIESC g1B 6727 103
form feedFF0C12
1 select colourESC r n1B 72 n27 114 n
2 set bottom marginESC N n1B 4E n27 78 n
cancel bottom marginESC O1B 4F27 79
3 set right marginESC Q n1B 51 n27 81 n
4 set left marginESC 1 n1B 6C n27 108 n
5 select point sizeESC X nl nh1B 58 nl nh27 88 nl nh
1 where n is in the range 0-6 ,0 black ,1 magenta , 2 cyan , 3 violet , 4 yellow , 5 red , 6 green ( only applies to colour printers !)
2 where n is in the range 0-127
3 where n is in the range 0-255
4 where n is in the range 0-255
5 m = 0 no change in pitch , m=1 selects proportional spacing , m>5 selects fixed pitch equal to 360/m CPI . Point size = (( nh*256)+nl)/2
E.g. using QBASIC type ''LPRINT CHRS$(27);CHR$(88);CHR$(1);CHR$(0.2);" following this command the ptinter will print in point size 26
1 point equals 1/72 inch
please note the Stylus color 300, stylus color 400, stylus color 640 , stylus photo EX , stylus photo 750 , stylus photo 1200 , and the stlus photo 700 are not ESC/P2 compliant and hence the above commands wil NOT work
( this is a typed in version of a fax i got from epson and not tested )

back to main menu