The following information is provided as is, and the authors take no responsibility for the correctness.

EJL - Epson Job Language

The Epson Job Language is an original Epson Language. It can perform the following operations on the printer:

EJL can switch the printer emulation with a mono-directional interface, but a bi-directional interface is required for the computer to receive system information from the printer.

Reference

Some official (and rather uncomplete) reference documentation can be found in the “EPSON EPL-N1200 Reference Guide”:
epln1200ug_e.pdf

NOTE: The following reference is NOT an official EPSON Reference Guide!

This reference is compilet from various EPSON Reference Guide and sources on the web. Please feel free to add informations!

EJL Command Syntax and Format

This part explains the conventions used to describe EJL command syntax. It also describes the different formats a EJL command may take.

Syntax Conventions

The conventions listed in the table bellow are used to describe the EJL commands in this document:

Convention Description
COMMAND Words in uppercase indicate EJL commands and words that you type verbatim
[ ] Brackets indicate optional parameters. Do not include the barackets themselves.
< > Idicates control characters like <LF> for the line feed character
~ The tilde character indicates that the current line continues in the next line.
“This example belongs on ~
the same line”
/ A slash indicates there are more then one optional parameters

The following control codes and special identifiers are used in this document:

Code Description
<NUL> Null character (ASCII 0)
<SOH> Start Of Heading character (ASCII 1)
<HT> Horizontal Tab character (ASCII 9).
<LF> Line Feed character (ASCII 10).
<FF> Form Feed character (ASCII 12).
<CR> Carriage Return character (ASCII 13).
<ESC> Escape character (ASCII 27).
<SP> Space character (ASCII 32).
<WS> White Space, a result of one or more <SP> or <HT> characters.

EJL command formats

Any EJL command must follow one of the following syntax formats:

Command Format 1

<ESC><SOH>

The Epson UEL Command (Universal Exit Language) is the only command using this format.

Command Format 2

@EJL<SP>COMMAND[<SP><words>][<CR>]<LF>

The COMMENT command is the only command using this format.

Command Format 3

@EJL<SP>COMMAND[<SP>option name[=value]][<CR>]<LF>

As an example, the ENTER language and INQUIRE commands use this format.

The option parameter [<SP>option name[=value]] specifies an option or sets a command option to a certain value.

An example would be ”@EJL ENTER LANGUAGE=personality”.

EJL syntax rules

The following rules apply to the EJL commands:

  • The EJL command prefix ”@EJL” must always be in uppercase. Other identifiers which are shown in uppercase in this document, should also always be in uppercase.
  • The placement of white spaces in EJL commands depend on their position within the EJL command:
    • The @EJL prefix must always be followed by white space
    • Command names and modifiers are always delimited by a white space character.
    • If no white space character is shown in this document, no white space character is allowed at that position.

Variable types

Alpanumeric

Any combination of digits and letters. The first character must be a letter.

Letters consist of the characters ASCII (65 through 90) and (97 through 122).

Digits consist of the characters 0-9 ASCII (48 through 57).

test123 Valid
test123test Valid
123test Invalid
test 123 Invalid

Numeric

Any number consists of digits with ONE optional decimal point (.) placed somewhere after the first digit and an optional + or - sign preceding the first digit.

1.234567 Valid
-1.234567 Valid
+1.234567 Valid
1234567 Valid
1234567. Valid
.1234567 Invalid
1.234.567 Invalid
1,234567 Invalid

Strings

Strings are enclosed in quotation marks. They can consist of any combination of characters from ASCII 32 through 255, including ASCII 9 (Horizontal Tab) and excluding ASCII 34 (Quotation marks).

"A valid<HT>string" Valid
" testing 1234.9" Valid
"An invalid<CR>string" Invalid
"Do not include " quotation marks" Invalid

Kernel Commands

  • UEL (Epson Universal Exit Language) command exits the current printer emulation.
  • ENTER command switches the printer emulation.
  • COMMENT command enables embeding of comments in to the data stream.

UEL Command

The Epson UEL (Universal Exit Language) command exits the current printer emulation and enters EJL mode.

Syntax:

<ESC><SOH>

NOTE: This is not the same command as the HP PJL - HP Printer Job Language UEL command!

NOTE: You can not use this command from with the Epson GL emulation

Enter IEEE 1284.4 Command

This command specifically takes the printer out of the Epson packet mode communication protocol (whatever that is) and enables IEEE 1284.4 communications mode.

Syntax:

@EJL<SP>1284.4<LF>~
@EJL<SP><SP><SP><SP><SP><LF>

ENTER Command

The ENTER command switches into the specified printer emulation.

Syntax:

@EJL ENTER LANGUAGE=value<LF> 

The following example enters the PJL - HP Printer Job Language emulation:

@EJL ENTER LANGUAGE=PJL<LF>

The following table list the known valid language identifiers:

Language
Personality
Description
PJL PJL - HP Printer Job Language
PS PostScript
LJ-2P Hewlett-Packard LaserJet 2
LJ4 Hewlett-Packard LaserJet 4 (PCL5e)
ESCP Epson ESC/P
ESCP2 Epson ESC/P2
3/P/Si
LQ
FX Epson FX-870/1170, FX-880, or LX-100 (9-pin)
Epson GL Epson GL
Epson GL2 Epson GL2
I239X IBM I239X

COMMENT Command

The COMMENT command enables embeding of comments in to the data stream.

Syntax:

 @EJL COMMENT some comment string[<CR>]<LF>

Example:

@EJL COMMENT This is a debug comment<LF>

Environment Commands

SELECT Command

The SELECT LANGUAGE command selects the personality to be used by the environment commands.

Syntax:

@EJL SELECT LANGUAGE=value[<CR>]<LF>

Values: LJ4, ESCP2, FX, I239X

SET Command

Syntax:

@EJL SET variable=value[<CR>]<LF>

For a list known valid variables and values, see the Environment Variables section.

DEFAULT Command

Syntax:

@EJL DEFAULT variable=value[<CR>]<LF>

For a list known valid variables and values, see the Environment Variables section.

Status Readback Commands

These commands can only be used, if bidirectional interface is used between the printer and computer.

  • INQUIRE command requests the current value of a specified printer variable.
  • ID command requests the IEEE 1284 Printer ID.

ID Command

The ID command is used to requests the IEEE 1284 Printer ID.

Syntax:

@EJL ID[<CR>]<LF> 

Response:

@EJL ID<CR>IEEE 1284 Printer ID<FF> 

Example:

@EJL ID<CR>MFG:EPSON;CMD:ESCPL2,BDC;MDL:[printer model];CLS:PRINTER;DES:EPSON [printer model];<FF>

INQUIRE Command

The INQUIRE command is used to requests the current value of a specified printer variable.

Syntax:

@EJL INQUIRE variable[<CR>]<LF> 

Response:

@EJL ANSWER variable=value<CR><LF> 

To request the printer name the command string would be

@EJL INQUIRE NAME<LF>

and the response would be

@EJL ANSWER NAME=printer name<CR><LF>

The following list shows known valid variables

Variable Description Sample Value
or Range
Supported Models
NAME Printer name unknown unknown

Environment Variables

The following list shows known valid variables

Variable Personality Sample Value
or Range
Known Supported Models
TOPOFFSET -9 to 99.0 EPSON EPL-N1200
LEFTOFFSET -9 to 99.0 EPSON EPL-N1200
PAGESIZE LT
LGL
A4
EXE
MON
C5
DL
A5
B5
HLT
GLT
GLG
F4
C6
COM10
IB5
CTM
EPSON EPL-N1200
PRINTERMODE LJ4
EPSONGL2
AUTO
PS*
I239X
ESCP2
FX
EPSON EPL-N1200
AUTOCONTINUE ON or OFF EPSON EPL-N1200
PANELLOCK ON or OFF EPSON EPL-N1200
PAPERUNIT 1 to 15
AUTO
EPSON EPL-N1200
SIZEIGNORE ON or OFF EPSON EPL-N1200
STANDBY ENABLE or DISABLE EPSON EPL-5500
DESTSYMSET LJ4 0 to 3199 EPSON EPL-N1200
SRCSYMSET LJ4 0 to 3199 EPSON EPL-N1200
AUTOCR ESCP2
FX
ON or OFF EPSON EPL-N1200
AUTOLF ESCP2
FX
ON or OFF EPSON EPL-N1200
BITIMAGE ESCP2
FX
BCODE
DARK
LIGHT
EPSON EPL-N1200
CGTABLE ESCP2
FX
BPABICOMP
BPBRASCII
BULGARIAN*
CODEMJK*
HEBREW7*
HEBREW8*
ISO8859-7*
ISO8859-9*
ITALIC
MAZOWIA*
PCAR864*
PCCANF
PCCY855*
PCCY866*
PCEEUROPE
PCGK437*
PCGK851*
PCGK869*
PCHE862*
PCICELANDIC*
PCMULT
PCNORD
PCPORT
PCSL427*
PCTURKISH1*
PCTURKISH2
PCUSA
EPSON EPL-N1200
CONDENSED ESCP2
FX
ON or OFF EPSON EPL-N1200
COUNTRY ESCP2
FX
DENMARK
DENMARK2
FRANCE
GERMANY
ITALY
JAPAN
KOREA
LANTINAMERIC
LEGAL
NORWAY
SPAIN1
SPAIN2
SWEDEN
UK
USA
EPSON EPL-N1200
FONT ESCP2
FX
COURIER
OCRB
ORATORS
PRESTIGE
ROMAN
ROMAN-T
SANS
SANS-H
SCRIPT
EPSON EPL-N1200
PITCH ESCP2
FX
10, 12, 15
PROP
EPSON EPL-N1200
TEXT ESCP2
FX
1 to 81 EPSON EPL-N1200
TMARGIN ESCP2
FX
0.4
0.4 to 1.5
EPSON EPL-N1200
ZERO ESCP2
FX
NORMAL, SLASHEDZERO EPSON EPL-N1200
ALTGRAPHICS I239X OFF EPSON EPL-N1200
AUTOCR I239X ON or OFF EPSON EPL-N1200
AUTOLF I239X ON or OFF EPSON EPL-N1200
BITIMAGE I239X DARK
LIGHT
EPSON EPL-N1200
CODEPAGE I239X 437, 850, 860, 863, 865 EPSON EPL-N1200
FONT I239X COURIER
GOTHIC
ORATOR
PRESENTOR
PRESTIGE
SANS
SCRIPT
EPSON EPL-N1200
PITCH I239X 10, 12, 15, 17, 20, 24
PROP
EPSON EPL-N1200
TEXT I239X 1 to 81 EPSON EPL-N1200
TMARGIN I239X 0.3
0.35 to 1.5
EPSON EPL-N1200
ZERO I239X NORMAL
SLASHEDZERO
EPSON EPL-N1200

* Available only in ESC/P2 mode.

 
formats/printer_control_languages/ejl.txt · Last modified: 2008/09/08 18:35 (external edit)
 

All text is available under the terms of the GNU Free Documentation License (see Copyrights for details). Disclaimers

Recent changes RSS feed Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki