Zebra CPCL Programming Manual - Example 2:
Mobile Printer CPCLProgramming Manual
P13-5
Example 2:
This example is not a complete menu setup, it is a
sample card. It is meant as a tool to break down the
tags and explain their use.
Comments
Begin card, the card name is baud, the title is “Com,Baud”, when
the 20 second timer expires go to the card called status.
ontimer=”#status”> Display the current baud rate after four spaces. $(vnd.zo.comm.baud)
Do a line break
Display 9600 and put three spaces after it, if 9600 is selected then
execute the setvar command to change the baud rate to 9600 in
the
> Display 19200, if 19200 is selected then execute the setvar command to change the baud rate to 19200 in the do> and refresh the display. > Do a line break Link the card back to the previous menu. Link the card back to the main menu.
End the card
continued on next page