CAB A+ Series Programming Manual page 69

Hide thumbs Also See for A+ Series:
Table of Contents

Advertisement

69
d - download data (pictures, fonts etc...)
DOWNLOAD ASCII graphics
ASCII-Graphic format
The stucture is similar to the IMG format, but uses only ASCII characters, to enable a easy usage for
host devices or ERP systems.
Following rules are used:
• all data are hex bytes, i.e. 0-9 and a-f or A-F
• The printer waits as long for data until the defined picture size is received.
• Spaces and carriage returns can be added on different locations. It is required that a carriage
return is sent at the end of the picture data.
• The image data can be compressed with a simple algorithm which is black/white optimized.
• The image data are transmitted from top to bottom, each time from left to right. A value byte
80 stands left of 01.
• The first line describes the width and the height of a picture. Width and height are 16 bit values
each in the Big-Endian format.
• Also if the width is not devidable by 8it is required that the missing pixel must be transmitted
Each line will be transmitted with following values:
• 1. Optional repetition factor, caused by 00 00 FF xx, whereby xx describes the amount of
copies of the actual line.
• Picture data - whereby different descriptions are optional possible.
a: Zerobytes are displayed through the amount of bytes.Valid input: 00 to FF.
b: Blackbytes (FF) can also be described through the amount of bytes, beginning from 81
(81 means 1 time FF, - valid values are 81 to FF .
c: A directly encoded number of bytes starts with 80 - followed by the amount of data, i.e.
80 03 123456. The amout of transmitted bytes can be between 01 and 7F.
d: A repeated pattern of arbitrary bytes can be initiated with a sequence 00 nn xx, which
means that xx bytes will be inserted nn times.
Example: 00 04 AA generates AAAAAAAA.
cab Produkttechnik GmbH & Co KG
69
69

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mach 4PxXd4

Table of Contents