Labels - ZPLII Command: ^PQ (Print Quantity)
The ^PQ
command controls how labels are printed, including the total number of labels, grouping, pauses, and error handling. This command is essential for customizing batch printing operations.
Print Quantity Formula:
^PQ<numberOfLabels>,<labelsBetweenPauses>,<replicates>,<noPause>,<cutOnError>
Parameters
Parameter | Description | Default / Value if left blank | Example |
---|---|---|---|
numberOfLabels | Total number of labels to print during the job. | Required | ^PQ10 → Prints 10 labels in total. |
labelsBetweenPauses | Number of labels to print before pausing. | 0 | ^PQ10,2 → Pause after every 2 labels. |
replicates | Number of times each label is replicated before moving to the next label. | 1 | ^PQ10,0,3 → Each label printed 3 times. |
noPause | Skips pausing between sets of labels. | N | ^PQ10,0,1,Y → Prints continuously. |
cutOnError | Specifies whether to cut labels when an error occurs (requires cutting support). | N | ^PQ10,0,1,N,Y → Cuts on error. |
Examples
Formula Example | Data Settings -No. of Copies in PDF | Result Example | Description |
---|---|---|---|
=IF(A11<>"","^PQ"&Data!$F$10,"") | 5 | ^PQ5 | Prints 5 labels in total with no pauses or replication. |
=IF(A11<>"","^PQ"&Data!$F$10&"2","") | 10 | ^PQ10,2 | Prints 10 labels, pausing after every 2 labels. |
=IF(A11<>"","^PQ1,0,"&Data!$F$10,"") | 2 | ^PQ1,0,2 | Prints 1 label, with 2 copies of each label. |
=IF(A11<>"","^PQ6,0,"&Data!$F$10&",Y","") | 1 | ^PQ6,0,1,Y | Prints 6 labels continuously without pausing. |
=IF(A11<>"","^PQ10,0,"&Data!$F$10&",N,Y","") | 1 | ^PQ10,0,1,N,Y | Prints 10 labels and performs a cut if an error occurs. |
=IF(A11<>"","^PQ2,0,"&Data!$F$10&",Y","") | 5 | ^PQ2,0,5,Y | Prints 2 labels, with 5 copies of each label. |
Commonly used formula in BUZ:
=IF(A11<>"","^PQ1,0,"&Data!$F$10&",Y","") where Data!$F$10 is referencing the “No of Copies in PDF” column for Labels in the DataSettings table.
Tips for Usage
Use
labelsBetweenPauses
to group labels for easier handling or manual intervention.Configure
replicates
when duplicate labels are needed for packaging or identification.Set
noPause
toY
for faster printing when pauses are unnecessary.Enable
cutOnError
(Y
) (if supported) to ensure clean separation of labels in the event of an error.For additional support or advanced configurations, refer to the ZPL Command Support documentation here: https://labelary.com/docs.html