P 190
34
The command “ESC” r makes it possible to read in a location of the non volatile memory (EEPROM). This
command can only be used with the serial port as it is bi-directional. The communication protocol is defined
by the dip-switches on the serial interface. There are 256 legible locations, starting from the $00 location
up to the $FF location. The address of the location to be read must be defined before the “ESC” r command
is transmitted, i.e. if we wish to read address $01, we have to transmit in ASCII:
0 1 “ESC” r or $30 $31 $1B $72
In reply to this reading, the printer tranmits the data of address $01. The reply also is given in ASCII;
thus if, for example, address $01 contains $A5, we will receive:
A 5 or $ 41 $35
The entire memory bank contains the value $20 by default. Since it is a non volatile memory, the user
can save the data without losing it when the power is switched off.
ASCII: (aadd) ESC w Hex: (aadd) $1B $77
Writes a piece of data (dd) in an address (aa)
The command “ESC” w makes it possible to save a piece of data in a non volatile memory. There are
256 locations in which to write, starting from $00 to $FF. The pieces of data too cannot exceed $FF
(255)and both the addresses and the data must be expressed in ASCII on two bytes. To save a piece
of data, first transmit the address, then the data followed by the command “ESC” w. If, for example, you
wish to save the data $A5 in address $01, you will transmit:
0 1 A 5 “ ESC” w or $30 $31 $41 $35 $1B $77
The entire memory bank contains the value $20 by default. Since it is a non volatile memory, the user
can save the data without losing it when the power is switched off.
ASCII: (dd) ESC G Hex: (dd) $1B $47
Writes value (dd) in option register
By means of the command “ESC” G the printer configuration can be manipulated. To do so, a byte in
ASCII containing the configuration must be transmitted to the printer, followed by “ESC” G. The setting
byte contains the following bits:
d7 d6 d5 d4 d3 d2 d1 d0
where:
• d0 is used to enable the setting of the Real Time Clock using the keys on the front of the printer.
If this bit is 0, it disables setting; if it is 1 it enables it. If the user disables this function the clock will not
be affected by variations made either accidentally or deliberately by persons not qualified to do so.
• d1 is used for setting the printing mode: normal or reverse. If this bit is 0 printing is in normal mode; if it
is 1 it is in reverse mode.
• d2 is used in parallel communication and enables the 7 or 8 data bit protocol. If this bit is 0 the parallel
PRINTER FUNCTIONS