The text of a manual · part 3 of 9
Prodigy Plus Operator's Manual, pages 21 to 30
Pages 21 to 30 of 84
The original document is the PDF (5.2 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Datamax Prodigy
Page 21
♦
Printing Labels
2.0
Introduction
Labels can be generated using RS-232 or parallel communications to a host computer or a PC with a compatible labeling software package. This chapter explains some of the basic programming commands that are required when writing programs to generate label formats. A programmer's manual can be obtained by mailing or faxing the request card located in the back of this manual.
2.1
Programming Commands
In order to be ready for a command sequence, the Printer must first receive a special character called an “attention getter” that informs the Printer that it is about to receive a command and the type of command it will be. Immediate Commands, System-Level Commands, and Font-Loading Commands each have their own attention getter. The attention getter character is followed by a command character that tells the Printer what action to take.
ASCII Char. SOH
Decimal Value 1
HEX Value 01
DOS Prompt Ctrl A
STX
2
02
Ctrl B
ESC
27
1B
Ctrl [
Attention Getter For Immediate Commands System-Level Commands Font-Loading Commands
Table 2-1 Attention Getters Prodigy Plus
13
Page 22
Printer Setup
When the Printer receives an Immediate Command it will cease whatever it is doing and perform that command. Commands of all types must be in this sequence: 1. Attention Getter 2. Command Character 3. Parameters that must be entered by the user (if any). Command Character # A
Must Enter Parameters N N
Printer Responds Y Y
B C D E F
N N N N N
N N N Y Y
Command Reset Send ASCII status string Toggle pause Cancel SOH shutdown Send batch quantity Send status byte
Table 2-2 Immediate Commands
14
Prodigy Plus
Page 23
Printer Setup
The System-Level Commands are used to create formats, load and store graphic information, and control the Printer. Table 2-3 provides a brief description and format of each System-Level Command Character. Char A
Description Set time and date a
Enable feedback characters
B
Get Printer time and date information Set Cutter signal time b c d
G H
Set continuous paper length Set Printer to double buffer mode Set quantity for stored label Select edge sensor Form feed Set form stop position (Backfeed) Print last label format Set Cutter signal/time
I
Input graphics data block
E e F f
J K k L M
"See Programmer's Manual for format" Set pause for each label Start of print, (fine tune Printer matching)
Test RS-232 Port Y=ok Enter Label Formatting Mode Set maximum label length
Format Format: AwmmddyyyyhhMMjjj 16 digits total. w = 1 digit day, 1 is Monday mm = 2 digits for month dd = 2 digits for day yyyy = 4 digits for year hh = 2 digits for hour (24 hr ft) MM = 2 digits for minutes jjj = 3 digits for Julian I.D. value Returns 30 after each label and 31 after each batch of labels Print time and date to port Sets Cutter’s signal time Format: bnnnn Where: nnnn=4 digits*24, low/delay time cnnnn = length of paper to feed per label Used to print a label while a second is formatting in memory Ennnn = Set Quantity for stored label Used for "see through" media sensing Feeds one label at a time Set distance to peel (tear off) position fnnn = 3 digits from sensor Format: Hnnnn Where: nnnn=4 digits, usec*24 delay time A bank designation, an optional word length modifier, a format designation, and up to a 16character string to identify the stored image data K[-]nn Where: nn plus or minus (.50 inches in hundredths of an inch increments) Sends character "Y" to RS-232 port Mnnnn = 4 digits (default)
Table 2-3 System-Level Commands Prodigy Plus
15
Page 24
Printer Setup
Char m O o P p Q q r
Description Set metric flag, enter metric mode Form edge offset (start of print position) Cycle cutter Enter character dump mode Controlled pause Clear all memory modules Clear module Select reflective sensor
S s
Slew (feed) speed Set up for one print buffer
T t
Printhead dot pattern test label Test RAM memory module (Must be in Test Mode)
U V
Label format field replacement Software switch settings v W w X Y
Firmware version information Request memory module information Test FLASH module memory Set default module bank Output sensor values
Z
Print internal information and dot pattern
Format All references set to metric until reset Onnnn = 4 digits, in/100 or mm/10 qx = Module I.D. (Uppercase) Used for "black-strip" media sensing, (e.g. continuous tags, butt-cut labels. Stripe must be printed on back side of media) Sx x = C-0, 2-8 ips a bbbK ‘Module Good’ A=1(top slot) B=2 (bottom slot) bbb = 256 or 512, for size of module Vn n = 4-Label Present, 2-color ribbon, 1-Cutter Enable Sends version string to Host Wx x = F-font, G-graphic, L-label Takes about 90 seconds Xa a - A = Memory Module A Dumps sensor values status to RS-232 port
Table 2-3 System-Level Commands (Continued)
16
Prodigy Plus
Page 25
Printer Setup
A STX L Command switches the Printer from the System Level to the Label-Formatting Mode. All command characters after STX L are interpreted as Label Formatting Commands until the LabelFormatting Mode is terminated with the Command Character E, X or s. All Label -Formatting Commands are terminated with hex value 0D. CC :
C c D
Description Set cut by amount (4 digits) The cutter function will perform a cutting action after the number of labels specified Set column offset amount Set cut by amount (2 digits) Set height and width dot size
Format :nnnn nnnn = 4 digits of labels printed before cut. Default = 0001 Cnnnn nnnn= in/100 or mm/10 cnn nn = 2 cut amount h = Horiz. dot size; can be 1 or 2 v = Vert. dot size; can be 1,2, or 3
(0.005" steps) Default is “D22” E G H m
Terminate label format and print label Place data in global register Enter heat setting (The amount of heat applied per dot row, can be used to help control print quality) Set metric mode
P p Q R r
Print speed Set label backup speed Enter quantity of labels to print Set row offset amount Recall stored label format
S
Slew (feed) speed s
Store label format in module
T
Set field data line terminator
U
Make previous field a string replace field
Hnn nn = 2 digits. 1 - 20 10 is nominal and default The Printer must be reset in order to return to standard measure Px x = C -O (2 to 8 ips) px x x = C -I (2 to 5 ips) Qnnnn nnnn = quantity Rnnnn nnnn = in/100 or mm/10 rnn...n nn...n Label name of up to 16 char. terminated by CR Sx x = C - 0 (2 - 8ips) sann...n a - destination module A= Memory Module A B =Memory Module B C= Default Module nn...n - label name (16 char. max) Tnn nn = 2 digit ASCII Hex 00 - FF
Table 2-4 Label-Formatting Commands
Prodigy Plus
17
Page 26
Printer Setup
CC X z +
Description Terminate label formatting mode Zero (0) conversion to "O" eliminates slash (/) Make last field entered increment numeric
-
Make last field entered decrement numeric
>
Make last field entered increment alphanumeric
<
Make last field entered decrement alphanumeric
^
Set count by amount
Format
+pii Make last entered field incrementing p = Zero fill character ii = Data added to field -pii Make last entered field decrementing p = Zero fill character ii = Data subtracted from field >pii Make last entered field incrementing Z - 0 p = Zero fill character ii = Data added to field <pii Make last entered field decrementing 0 - Z p = Zero fill character ii = Data subtracted from field ^nn Set count by amount nn = 2 digits Skip # of labels before updating count fields and time fields
Table 2-4 Label-Formatting Commands (Continued)
There are two special commands used by the Printer, the STX S, (Recall Global Data), and the STX T (print date and time) Commands. Unlike the other Label-Formatting Commands, which follow the STX L Command, these special commands are entered directly into the data field.
Character <STX>S <STX>T
Description Recall global data and place in field Print time and date
Table 2-5 Special Label-Formatting Commands
18
Prodigy Plus
Page 27
Printer Setup
The commands used for bit mapped font loading are usually generated by font-creation software. However, the Assign Font ID Number command must be sent to the Printer before the font file. Font-Loading Commands are listed in Table 2-6.
CC *c###D )s#W *c#E (s#W
P N
PR N
Description Assign Font ID Number ### = ID Number 100 to 999 Y N Font Descriptor N N Character Code # = ASCII Value of Character Y N Character Download Data # = Bytes of Bit-mapped Data Table 2-6 Font-Loading Commands
CC = Command Character P = Must Supply Parameters? (Y/N) PR = Printer Responds? (Y/N)
2.2
Programming Examples <STX> L <CR> H07 <CR> D11 <CR> 19110080100002510K OHM 1/4 WATT <CR> 1a6210000000050590PCS <CR> E
10K OHM 1/4 WATT
Figure 2-1 Sample Label Prodigy Plus
19
Page 28
Printer Setup
The example shown below prints out a Code 3 of 9 bar code with a wide to narrow bar ratio of 3:1 and can be used to print any of the bar codes shown in Appendix B by altering the example's fields. Refer to Figures 2-2 and 2-3 for a brief explanation of the data fields that appear in the barcode shown below. <STX>L<CR> D11<CR> 1A93040001501000123456789<CR> 121100000000100Barcode A<CR> E
<STX>L mode.
<STX>L on line 1 is used to enter the label formatting
Figure 2-2 Example line 3
Figure 2-3 Example line 4
20
Prodigy Plus
Page 29
Printer Setup
2.3 Configuration and Test Labels The Printer is capable of printing both a Configuration Label and a Test Label. The Configuration Label is used to quickly determine the configuration setup of the Printer while the Test Label is used as an aid in Printhead adjustments and determining bad Printheads.
2.3.1
Configuration Label
Below is an illustration of an actual Configuration Label. The label contains information about the Printer's current setup settings, as well as the date/time, RAM and ROM checksums, and other Important information. To print a Configuration and Test Label follow the outlined steps: 1. Hold in the Feed Button and turn on the Printer until the Printer feeds one label. 2. After the Printer feeds one label release the Feed Button, after a brief hesitation the Configuration and Test Label will print. THU MARCH 17, 1997 12:25 VER BA - 03.02 04/08/97 SYSTEM ROM CHECKSUM 8F7B IS FONT ROM CHECKSUM 2E7A IS TOTAL ROM CHECKSUM BDF5 IS SYSTEM RAM CHECKS GOOD SERIAL PORT BAUD RATE IS 9600
077 GOOD GOOD GOOD
TRANSFER SWITCH IS ON SETUP SWITCH 1 2 3 4 5 6 7 8 OFF OFF OFF OFF OFF OFF OFF OFF ANALOG INPUT VALUES: PAPER: 236 EDGE: 184 TEMP POT ADJ: 139 BAT VOL: 204 INCH COUNTER DATE SET TOTAL LABEL LENGTH IN INCHES
064 4/07/97 000000170
Figure 2-4 Configuration Label
Prodigy Plus
21
Page 30
Printer Setup
2.3.2
Print Test Label
The Print Test Label consists of a test pattern of printed bars and can be used to isolate problems with the print quality, along with determining bad Printheads or rollers.
Figure 2-5 Print Test Label
2.3.3 Loop back Test Plug A Loop Back Test Plug can be installed for serial communications testing. Below are examples of the Loop Back Test Plugs. If the Test Plug is installed the following two lines will be added to the Configuration Label. SERIAL LOOP BACK CHECK GOOD CTS & DTR LOOP BACK CHECK IS GOOD
Figure 2-6 Loop Back Test Plugs 22
Prodigy Plus