Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ZEBRA or ZPL prinitng

Former Member
0 Kudos
1,063

Hello folks,

If anyone has worked on ZPL programming, please help me out in deciphering the below two lines of code.

FO1505,1518A0R,83,51CI13FRFB486,2,0,LFN993^FS

FO1385,1522A0R,83,49CI13FRFN991FS

6 REPLIES 6

Former Member
0 Kudos
204

Hi Nishant,

i can give a sample code what it means...

FO20,10ADFDZEBRAFS

[^FO20,10 - Set field origin 20 dots to the right and 10 dots down from the home position defined by the

^LH instruction.]

[^AD - Select font “D.”]

[^FD - Start of field data.]

[ZEBRA - Actual field data.]

[^FS - End of field data.]

The format for the ^FB instruction is:

^FBa,b,c,d,e

where

^FB = Define Field Block

a = Width of Text Block Line in Dots

Valid data: Minimum = one character width.

Maximum = label width.

Default value: = 0

Acceptable values: 0 - 9999

NOTE: If value is less than font width or not specified,

text block will not print.

b = Maximum Number of Lines in Text Block

Default value: 1 line

Acceptable values: 1 - 9999.

NOTE: Text exceeding the maximum number of lines

will overwrite the last line. Changing the font size will

automatically increase or decrease the size of the

block.

c = Add or Delete Space Between Lines in Dots

Default value:= 0

Acceptable values: -9999 to +9999

NOTE: Numbers are considered to be positive unless

preceded by a minus sign. Positive values add space;

negative values delete space.

d = Justification of Text in Block

Default value: = L (Left)

Acceptable values: L (Left), C (Center),

J (Margin to Margin) and R (Right)

NOTE: Last line is “left justified” if “J” is used.

e = Secondary Left Margin. How far, in dots, second and all

remaining lines in text block will be indented.

Acceptable values: 0 - 9999

ZPL II COMMAND REFERENCE 215

C

O

M

M

A

N

D

R

E

F

E

R

E

N

C

E

Notes Concerning the ^FB Instruction

• The following scheme can be used to facilitate special functions.

“ \& ” = carriage return/line feed

“ \(*)” = soft hyphen (word break with a dash)

“
” = \ (See Item 1 below)

Item 1: ^CI13 must be selected in order to print a \.

Item 2: If a soft hyphen is placed near the end of a line, the

hyphen will be printed. If it is not placed near the end of the line,

it will be ignored

Field Number Instruction

The ^FN (Field Number) instruction is used to number the data fields.

This instruction is used in both Store Format and Recall Format

operations.

In a stored format, the ^FN instruction is used where you would normally

use the ^FD (Field Data) instruction. In recalling the stored

format, use ^FN in conjunction with the ^FD (Field Data) instruction.

The format for the ^FN instruction is:

^FN#

where

^FN = Field Number

  1. = Number to be Assigned to the Field

Default value: 0

Other Values: Minimum=1, Maximum=9999

NOTE 1: The same ^FN# value can be stored with several different

fields.

NOTE 2: If a label format contains a field with an ^FN# and an

^FD, the data in that field will be printed for any other field containing the same ^FN# value.

Madhavi

Former Member
0 Kudos
204

hi Nishanth,

I have a beautiful document on ZPL prinitng i will forward the same on to you ... give me your email id .. hope that helps you in understanding the code ..

Regards,

Santosh

0 Kudos
204

Go through this procedure to create the ZPL code.

Procedure to create the label and how to use it for the printing purpose.

1. Create the required label (Layout) in the Barone software -> save it as .LBL file.

2. Go to Menu bar File - > Create format for mySAP business suite - > Include objects

in the Sapscript file will be checked here - > Next - > Include Logos and include

TTF as Bitmap fonts will be checked here - > Next - > Click on Browse button and

save it as .ITF file - > Press finish and close the window.

3. Go to SO10 Transaction. Create a text name here - > Go to Text - > upload - > check

the option ITF press ENTER - > Enter the path of .ITF file and press ENTER.

Save this standard text.

4. Create form in SE71 include this standard text in main window.

5. Pass this SAPSCRIPT FORM in the print program FM ‘OPEN_FORM’.

0 Kudos
204

Hello Santosh,

Thanx. u can send the document on n_000@rediffmail.com

0 Kudos
204

hi Nishant,

I have sent it across on to your mail id ..

Regards,

Santosh

Former Member
0 Kudos
204

hi,

<b>^FO1505,1518</b> - Set field origin 1505 dots to the right and 1518 dots down from the home position

<b>^A0R</b> is for font

<b>^FR</b> (Field Reverse Print) instruction allows a field to appear as white over black or black over white. When printing a field, if the dot to print is black, it is made white; if the dot is white, it is made black.

I have sent one doc at your email id.

Regards,

Richa