Cognitive Solutions A776 All in One Printer User Manual


 
Appendix C: Electronic Journal
176
A776 (B780) Programming Guide A776-PG00001 C 12/09
Journal RAM buer
Journal data is temporarily buered in RAM until the printer is triggered to write it to ash. 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 buer.
Triggers that cause the journal data in RAM to be written to ash 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 lled before one of these other triggers occurs.•
The printer goes busy at the communication interface while writing to the journal ash buer.
Journal Flash buer
A portion of ash memory is available for the journal ash buer. 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 ash buer.
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 ash buer. If all available sectors are allocated for
logos and user storage, there is no ash available for the journal.
The rmware 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 ash allocation and ash usage information is available via commands
described below, and is printed on the diagnostics form.
Before erasing ash, check to see if there is journal data stored, and print it out if necessary.
Triggers that cause the journal ash buer to be cleared are:
Clear Journal command (described below)•
Flash Memory User Sectors Allocation• command (0x1D 0x22 0x 55 n1 n2) reallocates ash
memory.
New Flash rmware is downloaded to the printer•
Exception Conditions in Auto Journal Mode
When there isn’t enough memory available in the journal ash buer, the printer beeps at each receipt to signal the
ash full condition. The printer will print a duplicate receipt and cut after it, instead of writing it to ash, and clear
out the RAM buer. When the trigger for writing to ash is a knife cut (which would be the usual case in Auto Journal
Mode) the customer receipt is easily detached from the duplicate receipt by the operator.
If a receipt is over 4Kbytes in size, and there are less than 4Kbytes available in the journal ash buer, the printer will
not print a portion of the duplicate receipt in the middle of the original receipt. This portion of the duplicate receipt is
lost.