TH320/TH420
Programmers Guide
127
Electronic Journal
The Electronic Journal feature is for use with an application connecting the printer to a legacy cash
register via a smart cable or some other interpretive device. In particular it is for use when replacing a
legacy printer which offered a journal print station.
There are two parts to the Electronic Journal feature, each with a set of commands. The main part is
the Electronic Journal Storage, which gets data into the journal flash buffer, provides status, prints out
the entire journal, and erases the electronic journal flash buffer. Second is the Print Journal Entry
Mode, which prints selected information from the electronic journal flash buffer.
Two modes are supported:
Auto Journal Mode
Most commands and data printed on the receipt are also saved in the journal flash buffer.
Logos and graphics printed on the receipt are
not
saved in the journal flash buffer.
Multiple line feeds are not saved in the journal flash buffer.
A knife cut sent to the receipt is saved in the journal flash buffer as two print commands:
0x0A 0x0A.
Direct Journal Mode
Application controls all commands and data saved in the journal flash buffer.
Commands and data saved while in Direct Journal Mode are
not
printed on the receipt or
slip.
Journal RAM buffer
Journal data is temporarily buffered in RAM until the printer is triggered to write it to flash. At power up
4K bytes of RAM will be dynamically allocated. In the unlikely event that 4K bytes are not available, 2K
will be allocated. If for some reason 2K bytes are not available, the electronic journal feature cannot be
used. Allocation success or failure information is available to the interface via commands described
below.
Loss of power results in loss of any data currently in the journal RAM buffer.
Triggers that cause the journal data in RAM to be written to flash are:
Knife Cut command
Write Journal RAM Data to Flash command (described below)
Printer is idle for 10 seconds
Reset Printer command (0x1D 0xFF)
Print To Journal command (described below)
RAM becomes filled before one of these other triggers occurs.
The printer goes busy at the communication interface while writing to the journal flash buffer.
Journal Flash buffer
A portion of flash memory is available for the journal flash buffer. By using the Flash Memory User Sectors
Allocation command (0x1D 0x22 0x 55 n1 n2),
the user can allocate the number of 64Kbyte sectors
used for logos, user storage, and journal flash buffer.
If there are X sectors available, the Flash Memory User Sectors Allocation command will allocate n1
sectors to logos, n2 sectors to user storage, and (X – n1 – n2) sectors for the journal flash buffer. If all
available sectors are allocated for logos and user storage, there is no flash available for the journal.
With TH420 flash releases v1.23 and v1.24, there is no command available to return the total number
of sectors available. The firmware default allocation is 1 sector for logos, 1 sector for user storage, and
the rest for journal, but this may be changed at printer build time. Journal flash allocation and flash
usage information is available via commands described below, and is printed on the diagnostics form.
Before erasing flash, check to see if there is journal data stored, and print it out if necessary.
Summary of Contents for TH320
Page 1: ...TH320 TH420 Two Color Thermal Impact Hybrid Printer Programmers Guide ...
Page 75: ...TH320 TH420 Programmers Guide 67 ...
Page 121: ...TH320 TH420 Programmers Guide 113 Character Sets Character code 437 USA Standard Europe ...
Page 122: ...Programmers Guide TH320 420 114 Codepage 737 Greek ...
Page 123: ...TH320 TH420 Programmers Guide 115 Codepage 850 Multilingual ...
Page 124: ...Programmers Guide TH320 420 116 Codepage 852 Slavic ...
Page 125: ...TH320 TH420 Programmers Guide 117 Codepage 857 Turkish ...
Page 126: ...Programmers Guide TH320 420 118 Codepage 858 with Euro symbol ...
Page 127: ...TH320 TH420 Programmers Guide 119 Codepage 860 Portuguese ...
Page 128: ...Programmers Guide TH320 420 120 Codepage 862 Hebrew ...
Page 129: ...TH320 TH420 Programmers Guide 121 Codepage 863 French Canadian ...
Page 130: ...Programmers Guide TH320 420 122 Codepage 865 Nordic ...
Page 131: ...TH320 TH420 Programmers Guide 123 Codepage 866 Cyrillic ...
Page 132: ...Programmers Guide TH320 420 124 Codepage 1252 Windows Latin 1 ...
Page 134: ...Programmers Guide TH320 420 126 Codepage 1255 Hebrew ...
Page 142: ...Programmers Guide TH320 420 134 TH420 Additional Features ...
Page 156: ......
Page 157: ...TH320 TH420 Programmers Guide Wincor Nixdorf International GmbH D 33094 Paderborn ...