×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Triggering the cutter at specific labels

Triggering the cutter at specific labels

Triggering the cutter at specific labels

(OP)
We have a WMS system driving Zebra X140ii printers.  Typical output is sets of 4" x 6" UPS shipping labels plus a carton content label(s) (1 - 4 pages of contents).  I have access to the ZPL code for the content labels, but not the shipping labels.  

I'm trying to trigger the label cutter to only cut at the end of the carton content labels so the UPS shipping label is always attached to the carton content labels.  

I've been attempting to use the ^MMC,n to turn on label cutting and ^MMT,n to turn off cutting to no avail.  It turns on the cutter, but never turns it back off so it cuts every label instead of every other label.

Is there a way to issue a cut command and then clear it before the next label?

Here's the code for the label that I can control.  that fails.  ^MM entries are near the end of the label code.

<LabelSchema
    GeneratingClass="VendorLabelGenerator"
    RowTableName="Detail"
    RowStart="410"
    RowHeight="60"
    RowsPerPage="8">
    <LabelConnections>
        <LabelConnection TableName="Header" StoredProcedure="XXUS_LBL_ContainerContentsHeader" />
        <LabelConnection TableName="Detail" StoredProcedure="XXUS_LBL_ContainerContentsDetails" />
    </LabelConnections>
    <PageHeader>
^XA
^COY,78
^PR6,6,6
^FO8,27^CI0^A0N,23,39^FDVGames^FS
^FO604,27^A0N,25,35^FDPage:^FS
^FO720,27^A0N,25,34^FD[[CURRENTPAGE]] / [[TOTALPAGES]]^FS
^FO0,50^GB800,2,4^FS
^FO525,60^A0N,25,20^FD[[CURRENTDATETIME]]^FS
^FO15,80^A0N,34,47^FDPO:^FS
^FO120,80^A0N,34,47^FD[[Header.CUSTOMER_PO]]^FS
^FO0,253^GB800,2,4^FS
^FO0,405^GB800,2,4^FS
^FO0,1014^GB800,2,4^FS
^FO0,963^GB800,2,4^FS
^FO60,1066^BY4^BCN,140,N,Y^FD>;>8[[Header.container_id]]^FS
^FO75,1035^A0N,25,35^FDContainer Id: [[Header.container_id]]^FS
^FO15,120^A0N,23,28^FDOrder:^FS
^FO120,120^A0N,23,28^FD[[Header.ERP_ORDER]]-[[Header.SHIPMENT_ID]]^FS
^FO15,155^A0N,23,28^FDShipID:^FS
^FO120,155^A0N,23,28^FD[[Header.SHIPMENT_ID]]^FS
^FO517,155^A0N,23,28^FDCtn Type:^FS
^FO640,155^A0N,23,28^FD[[Header.container_type]]^FS
^FO15,190^A0N,23,28^FDCarrier:^FS
^FO120,190^A0N,23,28^FD[[Header.CARRIER]] [[Header.CARRIER_SERVICE]]^FS
^FO300,190^A0N,23,28^FD[[Header.FREIGHT_TERMS.string.10]]^FS
^FO15,225^A0N,23,28^FDTrack#:^FS
^FO120,225^A0N,23,28^FD[[Header.Tracking_Number]]^FS
^FO517,205^A0N,30,40^FD[[Header.SCHED_DATE]]^FS
^FO4,275^A0N,25,30^FDBill To:^FS
^FO4,306^A0N,25,20^FD[[Header.CUSTOMER_ADDRESS1]]^FS
^FO4,331^A0N,25,20^FD[[Header.CUSTOMER_ADDRESS2]]^FS
^FO4,357^A0N,25,20^FD[[Header.CUSTOMER_ADDRESS3]]^FS
^FO4,382^A0N,25,20^FD[[Header.CUSTOMER_CITY]], [[Header.CUSTOMER_STATE]] [[Header.CUSTOMER_POSTAL_CODE]]^FS
^FO390,275^A0N,25,30^FDShip To:^FS
^FO390,306^A0N,25,20^FD[[Header.SHIP_TO_NAME]]^FS
^FO390,331^A0N,25,20^FD[[Header.SHIP_TO_ADDRESS2]]^FS
^FO390,357^A0N,25,20^FD[[Header.SHIP_TO_ADDRESS1]]^FS
^FO390,382^A0N,25,20^FD[[Header.SHIP_TO_CITY]], [[Header.SHIP_TO_STATE]] [[Header.SHIP_TO_POSTAL_CODE]] [[Header.SHIP_TO_COUNTRY]]^FS
^FO140,430^A0N,25,30^FDItem^FS
^FO275,430^A0N,25,30^FDDescription^FS
^FO6,430^A0N,25,30^FDLocation^FS
^FO735,430^A0N,25,30^FDQty^FS
^FO13,982^A0N,23,32^FDWeight:^FS
^FO150,982^A0N,23,32^FD[[Header.WEIGHT]]^FS
^FO263,982^A0N,23,32^FDCubic:^FS
^FO400,982^A0N,23,32^FD[[Header.VOLUME]]^FS
^FO504,982^A0N,23,32^FDPieces:^FS
^FO650,982^A0N,23,32^FD[[Header.PIECES]]^FS
</PageHeader>
<RowTemplate>
^FO140,[[ROWY]]^A0N,28,32^FD[[Detail.item]]^FS
^FO6,[[ROWY]]^A0N,28,20^FD[[Detail.location]]^FS
^FO735,[[ROWY]]^A0N,28,32^FD[[Detail.quantity.int]]^FS
^FO275,[[ROWY]]^A0N,25,22^FD[[Detail.item_desc.string.38]]^FS
^FO275,[[ROWY+30]]^A0N,25,20^FDUPC:^FS
^FO325,[[ROWY+30]]^A0N,25,20^FD[[Detail.USER_DEF6]]^FS
</RowTemplate>
<PageFooter>
^PQ1,0,1,Y
^MMC,N
^XZ
</PageFooter>
^MMT,N
</LabelSchema>


Thanks for any assistance.

RE: Triggering the cutter at specific labels

I think it never turns the cutter off because the ^MMT,N is not within ^XA ... ^XZ.

Try changing to :

</PageFooter>
^XA
^MMT,N
^XZ
</LabelSchema>

RE: Triggering the cutter at specific labels

(OP)
Tried several variations of that suggestion and nothing turns off the cutter other than powering down the device.  Any other suggestions? TIA

RE: Triggering the cutter at specific labels

Try setting the cutter mode to 'Delayed Cut' using ^MMD and then sending ~JK when you want the cutter to cut.

Also, check the Zebra website to make sure your printer has the latest firmware in case this feature is not in your version.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close