![](/servlet/rtaImage?eid=ka16S000000OpiE&feoid=00N0H00000K2Eou&refid=0EM0H000001O9Bq) | NOTE The ZT200 and ZT400 require the latest version of firmware to fully support the override command. |
For device.command_override details. Refer to SGD Printer Commands for more information.
A new group of Set/Get/Do (SGD) commands were added to the printer firmware that allows a user to disable or ignore specific ZPL-SetGet/Do commands from a remote device and thereby prevent unwanted reconfiguration of a printer.
Many applications and drivers send these unnecessary ZPL configuration commands that can disrupt successful printing and require user intervention. These configuration commands are created by the driver or application generating the ZPL required to print your label, and if the configurations do not match, the following symptoms could occur. (These are just a few examples if your driver or application setting does not match the printer configurations).
The printer receives a ….
- ^MM (Print Mode) changes your printer from Rewind to Tear off disabling the rewind spindle function on a ZM-Series printer.
- ^MD (Media Darkness) or ~SD (Set Darkness) causes the darkness to change unexpectedly.
- ^PW (Print Width) causes the image to cut off due to changes to the print width of the image.
- ^MT (Media Type) causes a Ribbon In error due to the printer changing from Thermal Transfer (with ribbon) to Direct Thermal (no ribbon printing).
- ~TA (Tear-off) causes the gap to be no longer at the tear bar.
- comm.baud changes the data communications parameter.
Errors similar to these can occur if you do not correctly configure your application or driver to match your printer settings because the driver overwrites the printer values.
Usually, you can set your driver or application to
Use Printer Settings, and ZPL configuration commands will not be sent. If that is not an option or your application contains unwanted ZPL commands/configurations, you can use the
device.command_override feature. You will have to determine which commands you wish to disable by examining the target formats that cause the problem.
The following commands were enabled in
Vxx.17.16Z:
- device.command_override.add (Add the command you want to disable.)
- device.command_override.clear (Removes the command(s) you added returning normal ZPL configuration ability.)
- device.command_override.list (Returns a list of commands that have been disabled.)
- **device.command_override.active (Activates or deactivates the list of disabled commands without removing them.)
- device.command_override. Refer to SGD Printer Commands for more information.
![](/servlet/rtaImage?eid=ka16S000000OpiE&feoid=00N0H00000K2Eou&refid=0EM0H000001O9Bq) | NOTE Does not function on a ZT printer model. |
Additional Information:
Here is an example of using the Zebra Setup Utility to communicate to the printer to disable response to the Print Mode (^MM) command:
Refer to the article Zebra Setup Utilities -- Sending Printer Commands and Receiving Data to learn communicating to a printer using the Zebra Setup Utilities.
Open the communications window feature in the ZSU and use the command below to disable the ^MM command.
! U1 setvar "device.command_override.add"
Example:
! U1 setvar "device.command_override.add" "^MM"
![image.png](/servlet/rtaImage?eid=ka16S000000OpiE&feoid=00N0H00000K2Eou&refid=0EM6S000002YTyf)
You can confirm the command was received by using:
! U1 getvar "device.command_override.list"
![image.png](/servlet/rtaImage?eid=ka16S000000OpiE&feoid=00N0H00000K2Eou&refid=0EM6S000002YTyk)
You can now selectively tell the printer to use the command(s) you add or not to use them using this command:
! U1 setvar "device.command_override.active"
![User-added image](/servlet/rtaImage?eid=ka16S000000OpiE&feoid=00N0H00000K2Eou&refid=0EMi0000000PO1f)
Helpful Information: