Zebra CPCL Programming Manual - Printer Escape Commands
Mobile Printer CPCLProgramming Manual
P11-1
PRINTER ESCAPE COMMANDS
SET AND READ CODE COMMAND
Printer command sessions normally start with the '!'
character. When the printer is used in Generic Text Mode
(or Line-Print Mode) and if the user expects to print the '!'
character in that mode, then the CCL code must be
changed. This is done via the Redefine CCL Code com-
mand.
Send the following sequence to redefine the code:
Set CCL Code: ESC (0x1b) '}' (0x7D) 'W' (0x57) '1' (0x31)
(SETCCL.LBL)
Where {new CCL code} is a one-byte character repre-
senting the new CCL code.
Once the CCL Code is changed, all CCL sessions should
be started with the new CCL code. For example, if CCL
code is changed to '~', then instead of issuing a '! UTILI-
TIES' command to the printer, '~ UTILITIES' should be
issued.
The printer will retain the new CCL code for as long as it
remains powered. If the printer is powered off and back
on again, it will revert back to normal operations and will
expect '!' as the CCL code.
Send the following sequence to read the CCL code:
Read CCL Code: ESC (0x1b) '}' (0x7D) 'R' (0x52) '1' (0x31)
(READCCL.LBL)
After the above command is issued, the printer will return
the one-character CCL code.