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.
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.