User guide

Commands
Set/Get/Do (SGD) Commands
40
P1076806-001 Virtual Device-Mi User Guide 01/26/2015
Set/Get/Do (SGD) Commands
The following SGD commands were added for use with your Virtual Device app. For more
detailed information on SGD commands, see the Programming Guide for ZPL
II
®
, ZBI 2,
Set/Get/Do, Mirror, and WML (formerly the ZPL II Programming Guide).
apl.enable
Description This command enables or disables a Virtual Device app.
Type setvar
apl.version
Description This command returns the version of the currently running Virtual Device app.
Type getvar
Note •
ZPL and CPCL may not function normally when a Virtual Device app is enabled.
You must restart the printer after changing the value of apl.enable.
Commands Details
setvar
This command instructs the printer to enable a virtual device.
Format: ! U1 setvar "apl.enable" "value"
Val ues :
"apl-mi" = enable
Virtual Device-Mi
"none" = disable any Virtual Device app (ZPL and CPCL function normally)
Example 1 • This example shows how to enable the Virtual Device-Mi app:
! U1 setvar "apl.enable" "apl-mi"
Example 2 • This example shows how to disable the Virtual Device-Mi app:
! U1 setvar "apl.enable" "none"
Commands Details
getvar Format: ! U1 getvar "apl.version"