User-Defined Images And Graphics Commands - TransAct POSjet 1500 Programmer's Manual

Transact posjet 1500: software guide
Hide thumbs Also See for POSjet 1500:
Table of Contents

Advertisement

Programmer' s Guide
Function
Delete Start-Up Macro Definition
ASCII
GS _
Hexadecimal
1DH 5FH
Decimal
<29> <95>
Description
The GS _ command deletes a start-up macro definition previously created by the GS ^ command.
If a start-up macro was not previously defined, the command will be ignored.

User-defined Images and Graphics Commands

Function
Define user-defined bit image
ASCII
GS - <Name..> <0> x y d
Hexadecimal
1DH 2DH <Name..> <0> x y d
Decimal
<29> <45> <Name..> <0> x y d
1 ≤ x ≤ 255
Range
1 ≤ y ≤ 255
0 ≤ d ≤ 255
<Name> = a 15-byte maximum length name to identify the image
Description
GS - defines a bit-image for storage in the nonvolatile memory pool. The printer maintains an
area of flash memory specifically designated for multiple bit-image storage. The area can contain
as many bit-images as its size permits.
remaining can be obtained by performing a printer self test.) Each image is uniquely identified by
the name given to it by the <Name> parameter. The name of the bit-image can be from one to 15
bytes long and contain any alphanumeric characters as well as spaces. The format of the bit-image
is identical to that defined by the GS * command. The GS _ command must be entered in
standard mode only at the beginning of a print line. Any image may be up to 2048 bytes long. If
the size of the image is larger than the space remaining in the nonvolatile buffer, the image will
not be saved. When the last byte of bit-image data is received and there is ample space in the
nonvolatile buffer for the bit-image, the bit image will be saved.
The following basic example demonstrates how to define an 8-bit x 8-bit block with the name
"MY IMAGE". A representation of the format of a downloaded bit-image is depicted below.
PRINT #1, CHR$(29),CHR$(45),
PRINT #1, "MY IMAGE",CHR$(0);
PRINT #1, CHR$(1),CHR$(1);
PRINT #1, CHR$(255),CHR$(255),CHR$(255),CHR$(255);
PRINT #1, CHR$(255),CHR$(255),CHR$(255),CHR$(255)
Nov-07
®
POSjet
1500
... d(x x y x 8)
1
... d(x x y x 8)
1
... d(x x y x 8)
1
Column one
d1
dy
...
...
....
+1
d2
dy
+2
....
....
....
....
....
dy
Rev M
EPOS Control Codes
(A printout of the amount of nonvolatile memory
MSB
→
dn
....
LSB
⇐ d(x×y×8)
REM Enter the GS command
REM Define the image name
REM Image size (8 x 8 bits)
REM Send 8 bytes of image
REM data
EPOS ONLY
EPOS ONLY
Page 235

Advertisement

Table of Contents
loading

Table of Contents