Olivetti PR 45 SFP Emulation

Olivetti PR 45 SFP Command Index (by function)

When parameter EMULATION: PR45SFP is selected through the setup, the printer recognizes all the following commands, grouped according to their function:

Standard commands
Print Margins
Line Feed
Print Pitches
Graphics
Positioning
Printer Control
Device selection
Load/eject documents

Standard Commands

LF : Line Feed...... 5-4
FF : Form Feed...... 5-4
CR : Carriage Return...... 5-4
VT : Receipt cut...... 5-4
SO : Force bit 7 to 1...... 5-9
SI : Force bit 7 to 0...... 5-9

HT : Print journal...... 5-10

Print Margins

ESC J nnn : Left Margin...... 5-4

Printing Line Feed

ESC & nn : Line feed setting...... 5-5

Print Pitches

ESC = : Horizontal spacing 12 cpi...... 5-5

ESC > : Horizontal spacing 17.1 cpi...... 5-5

ESC ? : Horizontal spacing 15 cpi...... 5-6

ESC 3 : Double width characters...... 5-5

ESC 4 : Cancel double width...... 5-5

Positioning

ESC 7 : Backward line feed...... 5-6

ESC I nnn : Relative vertical positioning...... 5-6

Graphics

ESC % A nnn : BIM graphics selection...... 5-7

Printer Control

ESC j : Status request...... 5-7

ESC r x : Printer status...... 5-8

ESC l : Reset failure...... 5-9

ESC 0 : General reset...... 5-9

Device selection

ESC S n : Select machine devices...... 5-10

Document loading/ejecting

Document loading type must be selected using the commands:

- ESC S 4 (top feeding)

- ESC S 5 (front feeding).

After loading type has been selected, the printer is ready for feeding of the document. Presence of a document is signalled by the appropriate photosensor. The system checks that the document is fed with a status request to the printer.

Note: Do NOT use commands ESC I nn, LF or ESC 7 to load or eject documents. Use the following commands:

ESC O : Eject document...... 5-10

HT : Print Journal...... 5-10

ESC N n : Modes and controls...... 5-11

Olivetti PR 45 SFP Command Index (by code)

When parameter EMULATION: PR 45 SFP, is selected through the setup, the printer recognizes all the following commands, grouped by their codes:

HT

/

09

/

Align journal

/

5-10

LF

/

0A

/

Line Feed

/

5-4

FF

/

0C

/

Form Feed

/

5-4

CR

/

0D

/

Carriage Return

/

5-4

SO

/

0E

/

Force bit 7 to 1

/

5-9

SI

/

0F

/

Force bit 7 to 0

/

5-9

ESC % A nnn

/

1B 25 41 nn

/

Select BIM graphics

/

5-9

ESC & nn

/

1B 26 nn

/

Line feed setting

/

5-9

ESC 0

/

1B 30

/

General reset

/

5-9

ESC 3

/

1B 33

/

Double width characters

/

5-5

ESC 4

/

1B 34

/

Cancel double width

/

5-5

ESC 7

/

1B 37

/

Backward line feed

/

5-5

ESC =

/

1B 3D

/

Horizontal spacing 12 cpi

/

5-5

ESC >

/

1B 3E

/

Horizontal spacing 17.1 cpi

/

5-5

ESC ?

/

1B 3F

/

Horizontal spacing 15 cpi

/

5-5

ESC I nnn

/

1B 49 nnn

/

Relative vertical spacing

/

5-5

ESC J nnn

/

1B 4A nnn

/

Left margin

/

5-5

ESC N n

/

1B 4E

/

Modes and controls

/

5-11

ESC O

/

1B 4F

/

Eject document

/

5-10

ESC S n

/

1B 53 n

/

Select printer devices

/

5-10

ESC j

/

1B 6A

/

Status request

/

5-7

ESC l

/

1B 6C

/

Reset failure

/

5-9

ESC r x

/

1B 7C x

/

Printer status

/

5-8

LF

Line feed forward

Hexadecimal code: 0A

Prints the data in the buffer, performs a forward line feed by the spacing selected and sets printing position on the left margin.

VT

Execute receipt cut

Hexadecimal code: 0B

Prints the data in the buffer, performs a forward line feed by the spacing selected and sets printing position on the left margin.

FF

FORM FEED

Hexadecimal code: 0C

Prints the data in the buffer, performs a forward line feed by the spacing selected and sets printing position on the left margin.

CR

Carriage return

Hexadecimal code: 0D

Prints contents of the buffer and brings printing position back to the left margin.

ESC J nnn

Define left margin

Hexadecimal code: 1B - 4A - 3x - 3x - 3x

Establishes current position of the left margin of the line with respect to the physical margin. This position is in relation to the type of horizontal spacing selected (double width is considered as normal spacing).

The decimal value "nnn"defines, in absolute terms, position of the left margin which will be the first printing position of each line. This position is assigned value 001 and becomes the reference point for all horizontal positioning commands.

If "nnn" assumes a value 000, the left margin assumes the value of the physical margin.

The command is accepted only if the front or top paper feeder is selected.

The command is not accepted (command specification error) if:

1.

/

the value of "nnn" is greater than line capacity, which is as follows: - 65 characters at 12 cpi (front insertion)- 82 characters at 15 cpi (front insertion)- 94 characters at 17.1 cpi (front insertion)- 55 characters at 12 cpi (top insertion)- 70 characters at 15 cpi (top insertion)- 80 characters at 17.1 cpi (top insertion)

2.

/

The sum of "nnn" and the number of characters on the print line is greater than line physical capacity.

3.

/

It is sent inside a printing field.

4.

/

The parameter "n" is less than 48D and greater than 57D.

ESC & nn

Elementary vertical spacing

Hexadecimal code: 1B - 26 - 3x - 3x

Defines the new line feed value, expressed in "nn" elementary steps.

The value of the elementary step is expressed in n/72".

When "nn" is equal to 00, the default value (1/6") is set.

The value of "n" must be between 0 (48D) and 9 (57D).

The command is not accepted (command specification error) if it is sent inside a printing field.

ESC =

Horizontal spacing 12 cpi

Hexadecimal code: 1B - 3D

Sets spacing at 12 cpi starting from the current position.

This is not a printing command and can be inserted in a printing field.

cpi = characters per inch

ESC >

Horizontal spacing 17.1 cpi

Hexadecimal code: 1B - 3E

Sets spacing at 17.1 cpi starting from the current position.

This is not a printing command and can be inserted in a printing field.

ESC ?

Horizontal spacing 15 cpi

Hexadecimal code: 1B - 3F

Sets spacing at 15 cpi starting from the current position.

This is not a printing command and can be inserted in a printing field.

ESC 3

Double width

Hexadecimal code: 1B - 33

Sets printing of characters in double-width characters starting from the current position. Each character is printed twice its normal width so it occupies two printing positions (the number of characters on each printing line is halved).

This setting remains active until the relevant cancellation command is received.

ESC 4

Cancel double width

Hexadecimal code: 1B - 34

Cancels the double-width printing setting starting from the current position.

ESC 7

Line feed backward

Hexadecimal code: 1B - 37

Commands printing of the current line and performs a backward line feed by the value of the spacing selected, setting printing position on the left margin.

The value of the paper movement depends on the selected device: horizontal feed in, vertical feed in or receipt mode.

ESC I nnn

Relative vertical positioning

Hexadecimal code: 1B - 49 - 3x - 3x - 3x

Commands printing of the current line and advances the form by "nnn" line feeds; effective value of the advance motion depends on the spacing seleceted.

Sets printing position on the left margin.

The decimal value of "nnn" defines, as a number of line feeds, the vertical increment required to reach the new current position.

If the "nnn" parameter has a value 000, printing is performed but the paper is not moved.

The value of "n" must be between 0 (48D) and 9 (57D).

ESC % A nnn

Select Bit Image Mode graphics

Hexadecimal code: 1B 25 41 nnn

Selects BIM (Bit Image Mode) dot/bit map graphics.

Parameter "nnn" defines the number of bytes that will be sent by the system and which the printer will interpret as the bit map to be printed.

Note / Inside the number of bytes "nnn", even the commands (including ESC 0 - General Reset) are not interpreted as such but as dots to be printed.

Parameter "nnn" may have the following values:

- less than 399, for documents inserted from the front

- less than 341, for documents inserted from the top

- less than 183, for receipt and journal rolls.

The printer uses only 8 of its 9 needles, where bits and needles correspond as follows:

bit

/

needle

/

Bitmap

0

/

1

/

o o o o

1

/

2

/

o o o o

2

/

3

/

o o o o

3

/

4

/

o o o o

4

/

5

/

o o o o

5

/

6

/

o o o o

6

/

7

/

o o o o

7

/

8

/

o o o o

-

/

9

/

(not used)

The maximum density (horizontal and vertical) allowed for the bit map is 72 dots per inch.

Graphic printing is one-way, guaranteeing good vertical alignment.

ESC j

Status request

Hexadecimal code: 1B - 6A

This command requests the printer to give its synchronous status.

The command creates a command specification error (though the request is satisfied) if sent inside a printing field.

ESC r x

Standard machine synchronous status

Hexadecimal code: 1B - 72 - xx

Answer sent by the printer on receiving command ESC j.

The bits of parameter "x" provide the printer status, which may be WARNING or FAILURE.

A WARNING status indicates that the operation has been executed correctly.

A FAILURE status indicates that the operation has not been executed or has been executed incorrectly.

The bits of parameter "x" may have the following meanings:

WARNING

Byte x:
bit 8: = 0 permanently
bit 7: = 1 permanently
bit 6: = 0 permanently
bit 5: = 1 document present in bottom of form position (as established
with command ESC N n)
bit 4: = 1 Journal roll almost finished
bit 3: = 1 Cover open (with print buffer empty)
bit 2: = 1 Receipt roll almost finished
bit 1: = 1 Document inserted (for printing or MICR reading)

FAILURES

The following parameter “x” values (in ASCII code) indicate some of the errors blocking the printer:

x = a line error
x = b paper jam in front feeder
x = c MICR read error
x = d cover open (one or both - with print buffer pending)
x = h command specification error
x = k MICR reader HW error
x = n mechanical failure
x = o cutter mechanical error.

NOTES:

When the machine goes into failure status, it stays that way until the failure reset (ESC l ) or general reset (ESC 0) is received.

During the time in failure status, the machine rejects all data and/or commands sent to it, with the exception of status requests.

In the case of a paper jam error, as well as the reset failure, an eject command and a status request, to check the presence of the document, must be sent (ESC l, ESC O, ESC j).

The general reset command cancels all types of failure.

ESC l

Hexadecimal code: 1B - 6C

Cancels the printer failure status.

ESC 0

General reset

Hexadecimal code: 1B - 30

Generates a general printer FW and HW reset.

The command is recognized at line level (as soon as it is received, its rejects pending data and commands and goes into execution).

If the command is received with the COVER open, it performs FW reset only, the HW reset being executed when the cover is closed.

The general reset results in the following action being taken:

- / Resetting of the mechanics (as at power-on).
- / Resetting of line and print buffer contents.
- / Resetting of all presettings made through the line (spacing,attributes,etc.).
- / Switches off all console signallings activated by line commands.
- / Restores the default values, i.e. the parameters set by Set Up.

SO

Force bit 7 to 1

Hexadecimal code: 0E

Allows selection and use of the second part of the character table. Significant only if 7-bit codes are used.

Can be selected from the printer setup.

SI

Force bit 7 to 0

Hexadecimal code: 0E

Allows selection and use of the first part of the character table. If 7-bit codes are used, the printer recognizes the shift status as the default value.

Can be selected from the printer setup.

ESC S n

Select print device

Hexadecimal code: 1B - 53 - n

Selects the print device defined by the "n" parameter, which may have the following values:

- 1 = receipt roll

- 2 = journal roll

- 4 = document inserted from top

- 5 = document inserted by front feeder

- 9 = receipt and journal rolls together

Note: For the MICR reader, see the command ESC S }.

The command is not accepted (command specification error) if:

- it is sent inside a printing field.

- the "n" parameter has a value other than those specified above.

The receipt and journal devices cannot be used if the front feeder is selected. They are selected automatically when the front feeder is no longer used.

However, the journal printer can be selected together with a document inserted from the front, to allow simultaneous printing on the document and on the journal; see also code HT.

ESC O

Eject document

Hexadecimal code: 1B - 4F

Commands printing of the current line and ejects the document through the upper slot.

Brings printing position to the left margin.

If no document is inserted, an eject cycle is still executed without giving rise to a failure.

HT

Print journal

Hexadecimal code: 09

Moves the current position from receipt (or slip, horizontally fed in) to the journal, to print on it.

The command is not accepted if the receipt and journal devices have been selected separately (see ESC S n).

ESC N n

Select various modes and controls

Hexadecimal code: 1B - 4E - n

Permits the following selections:

1. / Control of front document loading.
The printer can compare position of the paper with the theoretical position caused by movement of the motor, thus allowing a different tracking error in function of the "n" parameter set:
n = 0 (48D) maximum allowed tolerance = 4 mm
n = 1 (49D) maximum allowed tolerance = 3 mm
n = 2 (50D) maximum allowed tolerance = 2 mm
n = 3 (51D) maximum allowed tolerance = 1 mm
After a general reset, the default value is n=1.
02.04.2001 / Carriage positioning during top document loading.
The carriage can be positioned in function of the width of the document to be inserted, according to the "n" parameter:
n = @ (64D) for documents of width 135-139 mm
n = A (65D) for documents of width 140-144 mm
n = B (66D) for documents of width 145-149 mm
n = C (67D) for documents of width 150-154 mm
n = D (68D) for documents of width 155-159 mm
n = D (69D) for documents of width 160-164 mm
n = F (70D) for documents of width > 165 mm
After a general reset, the default value is n=F.
3. / Selection of the photosensor.
The printer will respond to an eventual status request giving the the situation of the photosensor selected by the parameter n:
- lower, with n=SP (32D)
- upper, with n= ! (33D).
See also the commands ESC j and ESC r x.
Values of n other than those quoted above result in a command specification error.

Olivetti PR 45 SFP Emulation 5-1