Page 1
Programmer’s Reference Manual ESim v5.12 for EasyCoder® PD4 Bar Code Label Printer...
Page 2
The information contained herein is proprietary and is provided solely for the purpose of allowing customers to operate and service Intermec- manufactured equipment and is not to be released, reproduced, or used for any other purpose without written permission of Intermec.
Default Setup ... 14 Example ... 15 Editing in Direct Mode Example..18 Editing in Form Edit Mode Example..20 Retrieving and Printing a Form Example..26 Commands Syntax... 30 ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 4
N – Clear Image Buffer ... 85 O – Options Select ... 86 oR – Character Substitution ... 88 P – Print ... 89 PA – Print Automatic ... 90 PF – Feed Media ... 91 ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
General Information This chapter explains the basic functions and modes of the ESim v5.12 protocol and helps understanding the more comprehensive explanations in the other chapters in this manual. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
RS-232 channel, the parallel Centronics channel, or the USB channel. Note that EasyCoder PD4 has a flash memory for forms and graphics, which requires special consideration. Avoid storing frequently changing data in flash (see GM and GW commands in Chapter 7) and use printer drivers developed for EasyCoder C4 and PD4.
The best way to start programming is to find out how the printer is set up. If you have an EasyCoder PD4 with a display, you can browse the Setup Mode and see some parameters, but the most comprehensive infor- mation is obtained by printing the test labels.
• Hold down the Feed key and turn on the power again. • Keep on holding Feed key for more than 2 seconds. • Send a string of characters or a label form to the printer and tap the Feed key to produce a printout. Dump mode will also print control characters, see character set table on at the end of Chapter 9.
CR (carriage return) sent in a CR/LF sequence will be ignored. CR alone will not work. Refer to Chapter 2 for a list showing for which purposes the various com- mands can be used. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
PACKED Variable Text V00 Graphic The illustration shows how a label is printed and fed out when using the default direction. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Counter C1 76532 EASYCODER SERIAL Feed Direction...
However, the entire print image can be rotated 180°. The illustration below shows coordinates for the default print direction (ZT). ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter 1—General Information Medium 203.2 dpi (8 dots/mm) 203.2 dpi (8 dots/mm)
Page 14
Chapter 1—General Information X-axis Graphic Field X650;Y050 Example of field positioning when using an 203.2 dpi (8 dots per mm) printhead. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Rotated Text Field X500;Y400 TEXT Print Width 104 mm (832 dots) Feed...
Commands List This chapters lists which commands can be used in the Direct Mode and the Form Edit Mode respectively. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Chapter 2—Commands List Direct Mode Setup Commands Used to set up the printer globally, that is, affect both the Direct Mode and Forms. Density User-Defined Error/Status Character Control Cut Position Character Set Selection Asian Character Spacing Disable Top of Form Backup Enable Top of Form Backup Media Feed Adjustment Options Select Character Substitution Set Form Length Set Label Width Set Reference Point Set Relative Reference Point Speed Select Setup Adjust SPC Setup Print Copy...
Page 17
Print Feed Media Download Variables Report Commands Return information on serial channel and/or produce printed informa- tion. List Soft Fonts Print Form Information Print Graphics Information GRP Reply Graphics from Printer Buffer Print Configuration Soft Fonts Information Inquiry Form Information Inquiry Graphics Information Inquiry Enable Prompts/Code Page Inquiry Code Page & Memory Inquiry Code Page & Memory Inquiry/Print Product Identity and Asian Font Types ^ee Immediate Error Report ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter 2—Commands List...
Will affect the global setup after printing a form including such a com- mand. Density Set Form Length Set Reference Point Speed Select Print Direction Editing Commands Used to edit forms. Print Text Print Standard Bar Code Print Two-Dimensional Codes Counter FE End Form Store Form Store Print Graphics Line Draw Exclusive Line Draw Black Line Draw Diagonal Line Draw White Print Automatic Define Variable Draw Box ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Setting Up the Printer This chapter shows the default setup of the printer and gives an example of how to change the setup. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
TTh:m:s Time Format Reply character Error Handling Windows Mode Y96,N,8,1 Serial Port Print Direction Printhead Resolution Measures 203.2 dpi printheads 203.2 dpi (8 dots/mm) in both directions 300 dpi printheads 300 dpi (11.81 dots/mm) across the media path 304.8 dpi (12 dots/mm) along the media path The setup will be reset to default values if the Cancel key is pressed more than 3 seconds in the Dump Mode. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Meaning XOFF/XON-handling 8 bits, code page 0, country code 001 Enabled 136 dots (at 203.2 dpi) 204 dots (at 300 dpi) LTS disabled, DT mode, reverse gap disabled, cutter disabled No substitution Continuous mode, print gap 24 dots 832 dots (at 203.2 dpi) 1208 dots (at 300 dpi) X:000;Y000 75 mm/sec. (3 inches/sec.) For example JAN/15/2004...
(see q command) will be changed. Example Let us assume that we will use an EasyCoder PD4 for direct thermal printing. We will print full width Thermal Top labels in the peel-off mode without using the label taken sensor. The default communication setup and character set are acceptable.
Page 22
Chapter —Setting Up the Printer ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Editing in Direct Mode This chapter gives an example of how to create a simple label in the Direct Mode. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
B280,440,0,1,2,3,96,B,"S 000001"↵ GG24,12,"LOGO"↵ P2↵ /. The Intermec logotype is not included in the software package and is only included in the example to demonstrate how to print a graphics field. You can substitute it with any graphics of approximately the same size.
This chapter gives an example of how to create a simple label in the Form Edit Mode. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Editing in Form Edit Mode...
It also means that we can use counters and variables. When we are finished, the label will look like this on an EasyCoder PD4 with a 200 dpi printhead: /. The Intermec logotype is not included in the software package and is only included in the example to demonstrate how to print a graphics field.
Page 27
V00 and C0. If variable data is being sent from an external data base, omit the text between the quotes and replace with a space character, for example ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter 5—Editing in Form Edit Mode Explanation...
Page 28
Place a Variable Text The next line is a text line, using text size 5 in reverse and prints the vari- able V00. The data printed in this field must be sent to the printer at the time of form retrieval.
Page 29
The printer will use the value for the narrow bar to define the bar code. (Value 3 for wide bar definition is ignored.) Command B280,440,0,1,2,3,96,B,"S"C 0↵ Place Graphics The next line writes a graphic named "Intermec" from memory and posi- tions it on the form. Command GG24,12,"LOGO"↵ End Programming of this Form The closing command that flags the end of form, see the full program list- ing later in this chapter.
Page 30
FS"TEST"↵ V00,15,N,"Enter Product name:"↵ V01,10,L,"Enter Model number:"↵ V02,8,N,"Checked by:"↵ C0,6,L,+1,"Enter Serial Number:"↵ X0,0,4,752,584↵ LO0,144,752,4↵ LO440,232,4,160↵ A40,400,1,1,1,1,N,"Made in Sweden"↵ A24,160,0,5,1,1,R,V00↵ A24,250,0,4,1,1,N,"MODEL: "V01↵ A472,312,0,4,1,1,N,"Checked by: "V02↵ Write text, fixed data + 3:rd variable A24,312,0,4,1,1,N,"SERIAL#: "C 0↵ B280,440,0,1,2,3,96,B,"S"C 0↵ GG24,12,"LOGO"↵ FE↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Explanation CR/LF to start command structure Delete current form named TEST Start store form named TEST Define 1:st variable Define 2:nd variable Define 3:rd variable Define counter Draw a box Draw a line Draw a line Write a 90˚ text line of fixed data Write 1:st variable text field Write text line, fixed data + 2:nd variable Write text line, fixed data + 1:st counter Write barcode, fixed data + 1:st counter...
The variable data fields are manually provided with information after the operator has been prompted to do so on the screen of the host. Finally, the operator orders a label to be printed. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Retrieving and Printing a Form...
In this example we have manually substituted variables for testing pur- poses. Note: It is critical to the syntax to send exactly the same number of variable lines as defined for this label form. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Explanation CR/LF to start command structure Retrieve form...
Page 33
Enter Product name: EASYCODER↵ Enter Model number: 501SA↵ Checked by: Dan↵ Enter SERIAL#: 100001 100000↵ Number of labels sets P1↵ Copies of each label 2↵ /. The font selected in this example allows uppercase characters only. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Retrieving and Printing a Form Explanation CR/LF to start command structure Enable prompts command (optional) Printer returns code page status Retrieve form Call for variables Substitute variable V001 Substitute variable V01 Substitute variable V02 Reset, accept, or enter2 counter start value C0 Prompt Ignore...
Page 34
Once a form has been retrieved, it can be used over and over again until another form is retrieved. All variable input data and counter values are stored in the volatile memory, which means they will be lost if the printer is switched off or at a power failure. If prompts are enabled, existing data and counter values will be displayed on the screen after the related prompt.
For each command, a short description is given, followed by the syntax for the command and an explanation the of parameters included in the syntax. Examples of how to use the commands are also given. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Indicates a linefeed character (LF; ASCII 10 dec.), also see Commands in Chapter 1. • <name> Alternative method for writing unprintable ASCII characters, for example = ASCII 06 dec. <ACK> ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual enter: " \" " enter: " \"ABC\" " enter: " \\ " enter:...
- Chinese BIG-5 Big5.24 - Japanese - Latin a–z Soft Fonts Horizontal multiplier 1, 2, 3, 4, 6, 8. Vertical multiplier 1, 2, 3, 4, 5, 6, 7, 8, 9. N Normal image R Reverse image "DATA" Represents a fixed data field. When using Asian double-byte fonts, specify both bytes as ASCII decimal values, starting with the first value being larger than ASCII 127 dec (ASCII 7F hex), or below ASCII 127 (ASCII 7F hex) decimal to specify a Latin character. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ,"DATA" Korean.24 GB.24 Japanese.24 Chapter —Commands 300 dpi (11.81 dots/mm) 25 cpi, 4 points (12 x 20 dots) 8.75 cpi, 6 points (16 x 28 dots) 15 cpi, 8 points (20 x 36 dots) 12.5 cpi, 10 points (24 x 44 dots) 6.25 cpi, 21 points (48 x 80 dots) (24 x 24 dots in double-byte) (24 x 24 dots in double-byte)
Page 38
When labels with consecutive numbers are printed next to each other across the media, it is done by using a single counter in a single form. The command Cn±x in our example will be used twice and count ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 39
00001 Time: TT+nnn Prints “sell by” time. Adds nnn number of minutes TD+nn ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual 00002 Prints the current time at this position in the pre- defined format. See the TT command for format selection. This command is only available if a Real Time Clock is installed.
Page 40
:Writes the text “Deluxe” + the contents of variable 01 + the contents of counter 2 + the text “Combo” + the current date + the contents of variable 01 + by the current time ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 41
To create inter-character spacing for Asian fonts, use the i command. Latin Characters Total character width Character width (8 dots) White dots (character spacing) Asian Characters Total character width (24 dots) ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 42
Text Object Point of Origin for Text Object Point of Origin for Text Object Feed direction ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Horizontal dots No Multiplier 2x2 Multiplier 3x3 Multiplier Point of Origin for Text Object Rotated 270° (p...
Postnet 5, 6, 8 & 11 digit UCC/EAN 128 UPC A UPC A 2 digit add-on UPC A 5 digit add-on UPC E UPC E 2 digit add-on UPC E 5 digit add-on UPC SCC Wide bar width in dots (2 -30). Barcode height in dots. B Human readables ON. N Human readables OFF. "DATA" Represents a fixed data field. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ,"DATA" Chapter —Commands "p " "p " 1-10 1-10 1-10 1-10 1-10 1-10 E80 E82 E85...
Page 44
(1) in each position (last two B-command lines). Set the Form Step Value p4 to +3 for the counter Cn used in our example (see the C-command line). Also refer to “C command – Counter”. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 45
B50,650,0,3,2,6,100,B,TD↵ FE↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Prints the current time at this position in the pre- defined format. See the TT command for format selection. This command is only available if a Real Time Clock is installed.
Page 46
By invok- ing special control characters in the data string, it is possible to switch between subsets or other special cases inside the symbol, see table below. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 47
Starts with ► Invocation in Text Out- String ▼ put▼ \" " Char 06 Char 06 ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Bar Code Manual Selection Start A Start B Start C Bar Code Bar Code Bar Code Output▼...
Syntax Parameters Horizontal start position (X) in dots. Vertical start position (Y) in dots. Code type: D Selects Data Matrix M Selects MaxiCode P Selects PDF417 Q selects QR Code [code specific options], see the following two pages. The standard program packages contains all the two-dimensional Remarks bar code mentioned above. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ,[code specific options]...
Maximum c olumn c ount ( refer t o P DF 4 17 s pecifications). N ote t hat t his c haracter is lowercase L (ASCII 108 dec.). Truncated flag: Rotation: "DATA" Represents a fixed data field. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ,[www,hhh,s,c,p,f,d,x,y,r,l,t,o],"DATA" Selects auto-encoding (default). Selects binary mode. horizontal start location (3 digits). vertical start location (3 digits).
Page 51
(max. row count), error condition 50 will also occur. ↵ Example N↵ b40,40,P,400,300,p40,340,20,f1,x3,y10,r60,→ →l5,"ABCDEFGHIJK1234567890abcdefghijk"↵ P1↵ Note: The last parameter in the b command above (l5) is lowercase L + the digit 5, not 15! ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands...
(indicated by italic characters, see b command, general part). Syntax Parameters Narrow bar from 1 to 15. "DATA" Represents a fixed data field, maximum 125 characters long. N ↵ Example b40,80,D,5,"123456789012345678901234567890→ →1234567890123456789012345678901234567890→ →12345678901234567890" ↵ P1 ↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ,"DATA"] ...
This enables the ratio of dark to light modules in the symbol to be approximated to 1:1 whilst minimizing the occurrence of arrangements of close modules which would prevent efficient decoding. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands Model 1 Model 2...
Page 54
If data not suitable to optional parameters: Error 01; Syntax error Errors If data too long or out of range: If data does not fit in area specified ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ,[cn,mn,on,sn,xn,ynn],"DATA" Model 1 Most optimal alternative of c1 to c4 Model 2 0° rotation clockwise. Default.
Page 55
Example N↵ b40,40,Q,sM,x1,"ABCDEFGHIJKLMNOPQRSTUVWHYZ→ 123456789012345678901234ABCDEFGHIJKLMNOPQR→ STUVWHYZ1234"↵ P1↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands...
"PROMPT" An A SCII t ext fi eld t hat w ill b e t ransmitted t o t he K eyboard D isplay U nit o r h ost via the serial interface each time a form containing this command is retrieved. It usually requests the operator to enter the starting value for the counter. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ,]"PROMPT" 0 → 9 A →...
Page 57
1. If next position is a letter with wrap around (Z→A), space will be incrementred to letter A. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ) affects the way the counter = L, R, or C, the counter value will (number of digits).
Page 58
FR"TEST5"↵ ?↵ A9↵ 99↵ ZZ9↵ ZZ9↵ P3↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Start Data Data after p = +1 → "100" → "999" "000" → " A9" " B0" → " Z9"...
Page 59
4 Press the <Form> key. 5 Key in Form name and press <Enter> to retrieve. 6 Enter or modify the consecutive number. 7 When complete, print label to store new number in memory. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands...
C (Cut Immediate) can not be used inside a form or in connec- tion with a keyboard/display unit (KDU). To perform self-cleaning of the cutter blade, issue five consecu- tive C commands without any media loaded. Example C↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Performs a cutting cycle...
Test after the print speed has been set (see S command) and make further adjustments until you have found the settings which best apply to your unique application. Example D9↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Selects density 9...
Chapter —Commands EI – List Soft Fonts This command makes the printer print a list of all soft fonts that Description are stored in memory. Syntax This command is related to ES (Store Soft Fonts) and EK (Delete Remarks Soft Fonts).
Soft fonts are stored using the ES command and listed using the EI command. Soft fonts can also be deleted from the printer using for example Intermec LabelShop or Intermec InterDriver. Example EK"a"↵ EK"*"↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Deletes font "a" :Deletes all soft fonts...
Description memory. Syntax ES"name"p Parameters "name " "data" ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual "data 1... Name of the soft font (one lowercase letter only in the range a–z). Lower case named fonts minimize soft font memory usage to only store fonts downloaded and have 256 character limit. Number o f c haracters t o b e d ownloaded u sing h exadecimal c oding. R ange 00–FF hex (1–256 characters per soft font set).
Page 65
Soft fonts can also be downloaded to the printer using for example Intermec LabelShop or Intermec InterDriver. Soft fonts can be listed using the EI command. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands , b, and c: b = 10 dots (0A hex)
Page 66
Starting Point Starting Point ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Line 1: 00000000 01111100 00000000 = 00 7C 00 Line 2: 00000000 01111100 00000000 = 00 7C 00 Line 3: 00000000 01111100 00000000 = 00 7C 00...
All parameters are saved in Flash. If more than one error occur at the same time, there will be an output for each error recovery, like <p1>00<CRLF> on mode 2. Refer to Appendix A for more information on error-handling. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual is one single ASCII-character, except hex 00. Default: 0 = 0 Mode of Reply Default, where error number is NN: Output at error action: <NAK>NN<XOFF>...
Page 68
Chapter —Commands Example Command Manual action US↵ eRC,2,Q↵ Lift the print- head Close the print- head ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Reply Comments <ACK> Enable Error Reporting (Nothing hap- Reply error with character ‘C’ and pens) error NN and at recovery with character ‘Q’ C11<CRLF> Manual action generates error 11 Q00<CRLF> Manual recovery on error 11...
If the cut occurs in the already printed label, increase the cut position index value. If the cut occurs in the next label, decrease the cut index value. Example f110↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands 070–130. 020–180 (lower or higher values ignored). 050–150. 000–200 (lower or higher values ignored).
This command is used to end a Form Store sequence. Description Syntax Remarks The Form Store sequence is started with the FS command and ended with the FE command. Example FS"formname"↵ FE↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Starts Form Store :Ends Form Store...
The FI command will be executed directly, without appending Remarks any Linefeed. Hint: Issue a FI command after having stored a form to make sure the storing was successful and to check the amount of user flash memory. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands...
FK – Delete Form This command is used to delete a specified form or all forms Description from memory. Syntax FK"name"|"*" Parameters "name" By entering a name of a form, that form only will be deleted from memory. "*" By entering an asterisk (*) as wildcard, all forms will be deleted from memory. Examples FK"FORM1"↵ FK"*"↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Deletes "FORM1" :Deletes all forms...
Syntax FR"name" Parameters "name" This is the form name used when the form was stored. T he printer is case -sen- sitive, that is, the use of upper and lower case letters must match the original name. To print a list of the forms currently stored in memory, use the Remarks FI command. Example FR"Test1"↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Retrieves the form named "Test1"...
• If the Error lamp shines yellow, there is no communica- tion and the memory must be erased by pressing the Cancel button for more than 3 seconds in the Dump Mode. Example FS"TEST1"↵ ... FE↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Begins the form store sequence of :Ends the form store sequence of "TEST1" "TEST1"...
180° using the Z command. Note: EasyCoder PD4 has a flash memory for forms and graph- ics, which requires special consideration. Avoid storing frequently changing data in flash (see GM and GW commands) and use printer drivers developed for EasyCoder C4 and PD4.
Chapter —Commands GI – Print Graphics Information This command will cause the printer to print a list of all graphics Description stored in the user flash memory. Syntax The GI command will be executed directly, without appending Remarks any Linefeed.
This command is used to delete a specified graphic or all graphics Description from the user flash memory. Syntax GK"name"|"*" Parameters "name" By entering a name of a form, that form only will be deleted from memory. "*" By entering an asterisk (*) as wildcard, all forms will be deleted from the user flash memory. Examples GK"LOGO"↵ GK"*"↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Deletes "LOGO" :Deletes all graphics...
& white) format and that the printer’s free graphics memory is large enough to accommodate the graphics. Always make backup copies on the host! EasyCoder PD4 has a flash memory for forms and graphics, which requires special consideration. Avoid storing frequently changing data in flash and use printer drivers developed for EasyCoder C4 and PD4.
Page 79
N↵ GG0,0,"PYRAM" ↵ GG50,50,"PYRAM" ↵ P↵ The result will be a printout shown below: ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands Save image ..GM”PYRAM”294.. PCX-header 8B...A.. PCX-header end PCX data ...?..Uj..
Chapter —Commands GRP – Reply Graphics from Printer Buffer This command is used to dump part of the printer buffer back to Description the host via the serial port. Syntax GRPp Parameters X-position in printer dots. Y-position in printer dots. Number of bytes across the graphic (8 dots = 1 byte). Number of dot rows going down the graphic. Parameter setting the format of the data. Allowed values are: B Binary, not inversed b Binary, inversed (default)
The printer’s firmware will calculate exactly how much data to expect based on p Note that EasyCoder PD4 has a flash memory for forms and graphics, which requires special consideration. Avoid storing fre- quently changing data in flash and use printer drivers developed for EasyCoder C4 and PD4.
(See A command). Syntax Parameters Space in dots between Asian characters (0–9). Default 0 Example i8↵ 1 Character 1 Character ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Selects an 8 dots spacing between Asian characters. i Command Parameter p set to 0 (default) 1 Character i Command...
However, the j command is kept stored in memory and can be enabled again using a JF command. To disabled top of form baclup with a cutter, first send an O command followed by a JB command. Example JB↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Disables top of form backup...
JF command. Activating the cutter using an OC command has the same effect as issuing a JF command. Example JF↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Enables top of form backup Chapter —Commands...
The extra media feed set by the j command can be enabled or disabled using JF and JB “Top of Form Backup” commands respectively. By default “Top of Form Backup” is enabled. Examples j110↵ j136↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Adjustment for peel-off operation at 8 dots/mm :Adjustment for tear-off operation at 8 dots/mm...
Syntax Parameters Horizontal start position (X) in dots. Vertical start position (Y) in dots. Horizontal length in dots. Vertical length in dots. Example N↵ LE50,200,400,20↵ LE200,50,20,400↵ P1↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Line B Chapter —Commands :Clears image buffer :Draws line A :Draws line B :Prints one label Line A Intersection...
This command is used to draw black lines, overwriting previous Description information. Syntax Parameters Horizontal start position (X) in dots. Vertical start position (Y) in dots. Horizontal length in dots. Vertical length in dots. Example N↵ LO50,200,400,20↵ LO200,50,20,400↵ P1↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Line B :Clears image buffer :Draws line A :Draws line B :Prints one label Line A Intersection...
LS – Line Draw Diagonal This command is used to draw diagonal black lines overwriting Description previous information. Syntax Parameters Horizontal start position (X) in dots. Vertical start position (Y) in dots. Line thickness in dots. Horizontal end position (X) in dots. Vertical end position (Y) in dots. Example N↵ LS10,10,20,200,200↵ P1↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Clears image buffer :Draws diagonal line :Prints one label...
Horizontal length in dots. Vertical length in dots. Example N↵ LO50,100,400,20↵ LO50,200,400,20↵ LO50,300,400,20↵ LW200,50,20,400↵ P1↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Line D (dotted border not printed in reality) :Clears image buffer :Draws black line A :Draws black line B :Draws black line C :Draws white line D :Prints one label Line A...
Mode. It is not necessary to use an N command before printing a form. An N command must not be used inside a form in the Form Edit Mode. Example N↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Clears image buffer...
Before using the S parameter, make sure to load the EasyCoder PD4 printer with the appropriate type of media. By default, the sensor will interpret blockage of light as a label or similar.
Page 93
O command parameters: Command OD,S OS,Cnnn|b OD,S,Cnnn|b Enable ON,D ON,D,S ON, Cnnn|b OCnnn|b OD,Cnnn|b Example ON,D↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands LTS (N) DT/TTR Reverse Mode (D) Gap (S) Enable TT Mode Disable Enable DT Mode Disable...
ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual = E , t he E uro c haracter w ill b e m apped t o t he c ode p age p osition s pecified . If no p...
P5,2↵ The principles for how counters are printed is illustrated by this example, where the print command is P2,2: Counter: 1 Counter: 1 Counter: 2 Counter: 2 ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ...
FS"TEST6"↵ V00,50,N,"Enter text"↵ A24,24,0,4,1,1,N,V00↵ PA1↵ FE↵ FR"TEST6"↵ ?↵ This is variable text ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Prints 1 label automatically :Deletes form “TEST6” :Starts form store sequence :Defines variable :Writes text with variable :Ends form store sequence :Retrieves form “TEST6” :Gets variables :Data for variable 00...
3 seconds after the feed. Red LED will blink during the delay. PF360,0,30↵ The following command will retract the media 360 steps, and assume that the media is in printing position. PF-360,1↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual dots are stepped (and errror 99 will Chapter —Commands * 100 ms.
Optional offset length measured in dots. Gaps and slots: Remarks The EasyCoder PD4 has a label gap sensor designed to detect the top of each form. It does this by looking either • through the semi-transparent liner in the gap between labels, • or through a hole in the media.
Page 99
Butterfly label (203.2 dpi = 8 dots/mm printhead): = 12.5 mm (100 dots) = 3.0 mm (24 dots) = 3.0 mm (24 dots) The Q command would be: Q100,24+24↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands PRINT DIRECTION ...
Disables label gap sensor, enables black mark sensor. Height of black mark measured in dots. ±p Optional offset length measured in dots. In addition to the label gap sensor, all EasyCoder PD4 printers Remarks have a black mark sensor that determines the top of each form by sensing a preprinted black mark on the back of the media.
Page 101
The printer has a 203.2 dpi (8 dots/mm) printhead. = 31.0 mm (248 dots) = 7.0 mm (56 dots) = 17 mm (136 dots) The Q command would be: Q248,B56-136 ↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands Perforation Perforation...
Note: If an R command (Reference Point) is sent after a q com- mand, the image buffer will be automatically reformatted to match the width of the printhead and the margins will be reset accordingly. Example q416↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Sets label width to 416 dots ...
The print direction commands ZB and ZT affect the location of the reference point, as illustrated below: Example R50,100↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Maximum Print Width Label path orientated in the center Printhead Dot Line (832 dots)
The print direction commands ZB and ZT affect the location of the relative reference point, as illustrated below: Example r50,100↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Maximum Print Width Label width set by q command :Creates a 50 dot left margin and a 100...
5 125 mm/sec. (5 inches/sec.) 203.2 dpi (8 dots/mm) printers only. 6 150 mm/sec. (6 inches/sec.) 203.2 dpi (8 dots/mm) printers only. Changing the print speed will affect the blackness of the print- Remarks out, which may have to be adjusted using a D command. Example S2↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Sets the print speed to 50 mm/sec. (2 inches/sec.). Chapter —Commands...
D, j, J, q, Q, S, Z, and SPC. The current SA value is stored in Flash memory and printed on the test label. Example SA2↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :All of the commands listed above that are called within forms will be ignored.
A, B, b, GW, GG, LE, LO, LS, LW, N, q, Q, r, R, X and Info. The current SPC value is stored in Flash memory and printed on the test label. Example SPC1↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Print Copy is activated.
“Out of Ribbon”. Syntax SPRp Parameters Number of steps executed by stepping motor Default: Maximum: This is a feature exclusive to the PD4 printer. The SPR value Remarks holds no relevance on EasyCoder PC4 printers. Example SPR200↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual 400 steps...
TDdd-me-y4↵ TDdd,mn,y4↵ TDy4-mn-dd↵ TDme/dd/y4↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Year displayed as 2 digits, for example 04 Year displayed as 4 digits, for example 2004 FEB, MAR, APR, MAY, etc. Month displayed as 2 digits, for example 01 Day displayed as 2 digits, for example 15 R epresents a n o ptional s eparator c haracter, w hich c an b e a ny c haracter in the range between ASCII 32 dec. and ASCII 63 dec. The separator is printed between the results of each of the supplied parameters.
Chapter —Commands TS – Set Real Time Clock This command is used to set the time and date in the printer’s Description optional real-time clock circuit. Syntax Parameters Month (01–12) Day (01–31) Year, two last digits (for example 04 for the year 2004) Hour in 24 hour format (00–23) Minutes (00-59) Seconds (00-59) This command works only if the printer is fitted with an optional Remarks real-time clock circuit (RTC).
(RTC). If the current time is 1:25:00 PM: Example TTh:m:s↵ TTh:m:s+↵ TTh,m↵ TTh+↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ][+] Hours displayed as 2 digits, for example 12 Seconds displayed as 2 digits, for example 00 Represents an optional separator character, which can be any character in the range between ASCII 32 dec. and ASCII 63 dec. The separator is printed between the results of each of the supplied parameters. Optionally s elects 1 2-hour m ode, w here t he t ime w ill b e a ppended w ith an “...
This command is used to print the current printer configuration. Description Syntax Remarks This command produces a single label identical to the one printed in the Dump Mode (see Chapter 1), but without enter- ing the Dump Mode. Example U↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Produces a test label.
If error occurs and error report is activated, the error message will be sent instead. Example Command ↵ UC062 ↵ X50,200,5,400,20 ↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual is anything other than numerical characters or the value is zero, there will saved in Flash. Reply Comments > Set Command Reply Accept Char- acter to ‘>’ > Reply error ↵...
The printer sends the number of soft fonts and the name, height, Remarks and direction of each soft font through the RS-232 or USB port. The UE command will be executed directly, without appending any Linefeed. Example UE ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
RS-232 or USB port. The UF command will be executed directly, without appending any Linefeed. Example UF UF006 TEST1 TEST2 TEST3 TEST4 TEST5 TEST6 ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Returns number of forms and all form names, for example:...
The printer will send the number of graphics and the name of Remarks each graphic to the host through the RS-232 or USB port. The UG command will be executed directly, without appending any Linefeed. Example UG UG001 LOGO ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Returns number of graphics and all graphic names, for example:...
The UI command is dis- abled by removing power from the printer for 60 seconds. Example UI↵ UI80,001 I and U commands. Also see ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Enables prompts from host and returns current code page, for example...
Parameters Image buffer size in kilobytes. Total User Flash-memory size for [Form + Graphic + External font + Asian Font] in kilobytes incl. decimals. Form memory used in kilobytes. decimals = forms file counter Graphic memory allocation size in kilobytes. Graphic file counter. External font memory allocation size in kilobytes. External font file counter Number of data bits. Code page. Country code. Asian Font file flag & used memory in kilobytes; Annn = Chinese traditional Bnnn = Chinese simplified Cnnn = Japanese Dnnn = Korean where nnn = memory used in kilobytes for Asian font Example UM↵ UM1050,998.0,8.3,40,1,37,2 UI80,001,B581 I, U, UI, and UP commands. Also see ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual UIp :Returns memory status and current code page, for example:...
UN – Disable Error Reporting This command is used to disable error reporting. Description Syntax Remarks Cancels US command. Example UN↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Disables error reporting...
The format of the data sent to the host is as follows: Parameters Image buffer size in kilobytes. Total User Flash-memory size for [Form + Graphic + External font + Asian Font] in kilobytes incl. decimals. Form memory used in kilobytes. decimals = forms file counter Graphic memory allocation size in kilobytes. Graphic file counter. External font memory allocation size in kilobytes. External font file counter Number of data bits. Code page. Country code. Asian Font file flag & used memory in kilobytes; Annn = Chinese traditional Bnnn = Chinese simplified Cnnn = Japanese Dnnn = Korean where nnn = memory used in kilobytes for Asian font Example UP↵ Also see I, U,UI, and UM commands. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual UIp :Returns memory status and current code page and prints configuration on label.
Command Reply ↵ <ACK> USABE ↵ (no reply) eRQ,6,R ↵ (no reply) ↵ (no reply) ↵ <NAK>01Q /. Reply only works on serial and USB ports. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Comment Activate all error flags Setup User-Defined Error/Status Character control to Q for <XOFF> and <R> for <XON> Clear image buffer and errors Erroneous command type A; Syntax error Print image buffer with error 01 Direct recovery error 01 (type A) and continue Chapter —Commands...
"1-972660-00,PD4-ESim 5.12" "1-972650-01,Font GB2312-80" "1-972660-00,PD4-ESim 5.12" "1-972651-01,Font BIG5" "1-972660-00,PD4-ESim 5.12" "1-972652-00,Font KSX1001:1992" "1-972660-00,PD4-ESim 5.12" "1-972653-00,Font JISX0208:1997" ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual returns for example... Base software Chinese font GB 2312-80 or... Base software Chinese Big5 level 1 & 2 font or... Base software Korean font KS X 1001:1992 or... Base software Japanese font JISX0208:1997...
To print the contents of a variable, the number of the variable must be included in the "DATA" field of the A (Print Text) or B (Print Bar Code) commands. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual ,"PROMPT" , the area will be padded with space characters.
Page 124
FK"TEST7"↵ FS"TEST7"↵ V00,10,L,"Variable 00"↵ V01,10,R,"Variable 01"↵ V02,10,C,"Variable 02"↵ V03,10,N,"Variable 03"↵ A50,50,0,3,1,1,N,"TEXT"V00":Left justified"↵ A50,100,0,3,1,1,N,"TEXT"V01":Right justified"↵ A50,150,0,3,1,1,N,"TEXT"V02":Center justified"↵ A50,200,0,3,1,1,N,"TEXT"V03":No justification"↵ FE↵ Refer to the ? command for continuation of this example! ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
The Windows mode escape sequences are only used by the Win- dows Printer Driver. When working with a main frame or other non-Windows host, this mode can be disabled to prevent erratic operation. Examples WY↵ WN↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands :Enables Windows Mode :Disables Windows Mode...
This command is used to draw a box shape. Description Syntax Parameters Horizontal start position (X) in dots. Vertical start position (Y) in dots. Line thickness in dots. Horizontal end position (X) in dots. Vertical end position (X) in dots. Example N↵ X50,200,5,400,20↵ X200,50,10,20,400↵ P1↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual :Clears image buffer :Prints box A :Prints box B :Prints a label Box A Box B...
RS-232 communication port. There are no such parameters for the USB port. By default, the printer is set for 9600 baud, no parity, 8 data bits, 1 stop bit. XON/XOFF handshaking is always used. The printer sends XOFF when an error occurs.
Note that printing a test label in the Test Mode, or by means of a U or UP command, will reset the print direction to default (= ZT). ZT Command: ZB Command: EASYCODER PD4 Example ZB↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual EASYCODER Feed Direction Feed Direction :Starts printing from the bottom of the image buffer. ...
? – Download Variables This command is used to signal to the printer that the data fol- Description lowing are variable or counter values. Syntax This command is used by the host system to send data represent- Remarks ing variables and/or counters to the printer after a stored for con- taining variables and/or counters has been retrieved.
This command resets the printer. Description Syntax Remarks The ^@ command resets the printer in the same way as a power off followed by a power on. • The command must be followed by CR/LF to be correctly interpreted. • The reset command is only available during command input, that is, not as data in PCX-graphics, soft fonts, or in format forms.
See Default Setup in Chapter 3, for the default value of setup parameters. A delay of two seconds should be observed before inputting other commands as the printer restarts after cleanup to factory default. Return to factory default setup. Example ^default↵ ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Chapter —Commands...
Command must end with <CR> or <LF> to be correctly exe- cuted. The printer will reply to host via serial port in one of the follow- ing formats: 1 If no error code is available (normal case): 00<CR><LF> ...
Page 133
Example Serial Manual command action US↵ AA↵ Lift the printhead UV↵ ^ee↵ Close the printhaed P↵ Press FEED key ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Reply on RS232 Comments <ACK> Enable Error Reporting (Nothing happens) Command with syntax error (#01) <NAK>11<XOFF> Manual action to generate error (#11) and wait in position of error-waiting-recovering. (Nothing happens) Command to print product ID will be queued 01,11<CR><LF>...
Fonts This chapter lists the printer’s resident fonts and illustrates the various font sizes. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Chapter —Fonts Resident Fonts The EasyCoder PD4 printers support upper- and lowercase characters for font sizes 1-4 and uppercase characters for font size 5. All fonts are non- proportional. The ASCII value of the different characters is determined by the I command setting.
Page 137
Chapter —Fonts Font Sizes 1-5 Below, the various fonts are illustrated in real size as printed on an 8 dots/ mm (203.2 dpi) printer. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
This chapter contains printout samples in 100% size of the various code pages and character sets for the printer’s resident fonts. All printouts are produced on an EasyCoder PD4 with a printhead density of 203.2 dpi (8 dots/mm). For information and printout samples on Asian fonts, plese refer to the manual EasyCoder C4 Asian Fonts.
Chapter —Code Pages and Character Sets Size 5 (8 bit); Code page 863 ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 145
Chapter —Code Pages and Character Sets Size 5 (8 bit); Code page 865 ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 146
Chapter —Code Pages and Character Sets Size 1-4 (7 bit); (printed in size 4) Size 1-4 (7 bit); British (printed in size 4) Size 1-4 (7 bit); German (printed in size 4) ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 147
Chapter —Code Pages and Character Sets Size 1-4 (7 bit); French (printed in size 4) Size 1-4 (7 bit); Danish (printed in size 4) Size 1-4 (7 bit); Italian (printed in size 4) ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 148
Chapter —Code Pages and Character Sets Size 1-4 (7 bit); Spanish (printed in size 4) Size 1-4 (7 bit); Swedish (printed in size 4) Size 1-4 (7 bit); Swiss (printed in size 4) ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 149
Chapter —Code Pages and Character Sets Size 5 (7 bit); USA Size 5 (7 bit); British ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 150
Chapter —Code Pages and Character Sets Size 5 (7 bit); German Size 5 (7 bit); French ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 151
Chapter —Code Pages and Character Sets Size 5 (7 bit); Danish Size 5 (7 bit); Italian ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 152
Chapter —Code Pages and Character Sets Size 5 (7 bit); Spanish Size 5 (7 bit); Swedish ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 153
Chapter —Code Pages and Character Sets Size 5 (7 bit); Swiss Size 4 (8 bit); Characters in Dump Mode ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 154
Chapter —Code Pages and Character Sets ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
Page 155
If the printer is fitted with an LCD display, error messages and prompts in plain text will also be shown. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual...
The firmware is able to handle a number of error conditions. Code num- bers represent the different error cases. The printer controls output of the error code and its format and wait until the error recovery is performed for each special error-code.
Page 157
USB), normally <XON>. See also commands USA or USB for direct recovery. Error-handling commands Optional Error Reporting US[A][B][E] No Error Reporting User Defined Error/Status Character Control Error Report - Immediate Reset ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Appendix A — Error-Handling...
Error. Error of Sets Error LED directly to printing func- red, sometimes blinking. tionality and status. Status No LED change. changes. Unrecoverable Sets Error LED directly to Error. red. Various modes ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Recovered by At Error reporting (cmd US): Press Feed key orsend Reset command ^@. Also see cmd USA. At No Error reporting (cmd UN): No recover necessary, already done. Feed Key or command Reset ^@.See also command USB. Load new media and press Feed key or send Reset com- mand ^@. Manual or automatic (tem- perature lowered) measure or send Reset command ^@.
0x15 Nothing happens [XOFF] Flag for waiting on Error recovery. Default value is <XOFF> = 0x13 , but can be substituted with command eRp1,6,p is replacement of <XOFF> and where p Command eRF,6,N substitutes at error reply <XOFF> with Example the character ‘F’ and at error recovery <XON> with the character ‘N’. ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Appendix A — Error-Handling where p is replacement of <XON>.
“? “ Out of ribbon Does not fit in area specified Data length too long High print head temperature (WAIT) Default Setup retrieved (RESET) Flashing not completed (RESET) Download error (RESET) Cutter jammed or not installed (Dump Mode) ESim v5.12 for EasyCoder PD4—Programmer’s Reference Manual Error Response depending on cmd US/UN command US: command UN: report- reporting on Serial <NAK>01[XOFF] <NAK>02[XOFF] <NAK>03[XOFF] <NAK>04[XOFF] <NAK>05[XOFF] <NAK>07Pnnn[XOFF] (nnn = numbers of remaining labels) <NAK>08[XOFF]...