![]() ![]() ^FO50,50^BY2,3^B3.etc ^BY2,x acceptable values for x are 2.1 through 3 in. Next alter the ratio of the narrow to wide bar. ^FO50,50^BY2^B3.etc ^BYx, acceptable values for x are 1 through 10 Insert the ^BY command just before the ^B3 command so you can see how the narrow bar width can be altered. Write the following format and send to the printer:Ĭonsult the ZPL programming guide and try changing each of the variables in the ^B3 string so you can see the effects. #ZPL ROTATE IMAGE FROM MEMORY PLUS#Then add some ZPL to produce a vertical line over your horizontal line so it looks like a plus symbol. This will print a horizontal line two inches wide by 4 dots thick.Ĭhange the format for the horizontal line so that it is one inch wide and is printed on the very center of the label. ![]() Next reposition and resize the square so that it goes around the name and address uniformly. This will print a box one wide by one inch long and the thickness of the line is 2 dots. Start by adding this new line to your existing format: Use the address format from exercise one. Make sure all three fields print in same font and size and left side of fields has same vertical alignment. #ZPL ROTATE IMAGE FROM MEMORY CODE#You will need to add two more lines of code that will start off with: Next add two more fields to print directly under your name using the ^ADN,36,20 font and size Next change ^ADN to^ADR, then^ADI, then^ADB Try the zero scalable font ^A0N,x,x This font is scalable and you can choose any height and width. The printer will round to next recognizable size.Ĭheck the ZPL programming guide to see the font matrices tables to try other fonts. You can use direct multiples up to ten times that size as a max…for exampleġ80,100 is the largest you can make the D font.Ģ5,18 would not be a valid size. Next alter the numbers after the ^ADN,x,x command.ġ8,10 is the smallest size you can make the D font.įirst number is the height of the font in dots and the second is the width. Then alter the second number after the FO50,x and see how that effects the print position. ^XZ every format must end with this commandĪfter the label has printed correctly alter the first number after the FOx and see how that effects the print position. ^XA every format must start with this command ^FO50,50^ADN,36,20^FDxxxxxxxxxxx^FS put your name where the x’s are Start by printing just your name on the label using the following format as a model. Some commands may not be supported due to firmware version in your printer. All commands will not be covered but this should be a good core of commands to learn. (There are some exceptions to this.)Įxercises will start simple and gradually progress to give you an opportunity to try a large variety of commonly used ZPL commands. Home position that all your coordinates are referencing is at the left hand trailing edge of the label as the label comes out of the printer. 100 dots on a 300 DPI printer will print a line 1/3" long. If you program the printer to draw a line 100 dots long that will equal a half inch. Its important to understand that 200 DPI means the resolution of the printhead is 200 dots per inch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |