- QR code (qr): Use the command `qr:
` to print a QR code. Example: `qr:1234567890` generates a QR code with the content 1234567890. The QR code is printed in MODEL 2 format and has a fixed width and height of 5.
- Barcode (barcode): The command `barcode:` prints a barcode in Code39 format. Example: `barcode:123456` creates a barcode with the code 123456. The width of the barcode is 2 and the height is 100.
- Separator (separator): With `separator` you print a separator line that fills the entire width of the paper. A line with an underline is printed.
- Text line (line): The command `line:` prints a simple line of text. Example: `line:Hello world` prints the text "Hello world"
- Inverted text (textinverted): With `textinverted` the text is printed in inverted colors, i.e. white on black
- Bold text (textbold): The command `textbold` prints the text in bold font
- Large text (textlarge): Use `textlarge` to print the text in a larger font
- Small text (textsmall): Use `textsmall` to print the text in a smaller font
- Standard text (textstandard): Set the text back to the standard font size with `textstandard`
- Left-aligned text (textleft): The command `textleft` aligns the text to the left
- Right aligned text (textright): The `textright` command aligns the text to the right
- Centered text (textcenter): The command `textcenter` centers the text on the page
- Print logo (printlogo): With `printlogo` you can print a previously cached logo
- Cut paper (cut): The command `cut` performs a paper cut
- Open cash drawer (pulse): Use `pulse:` to open the cash drawer. Example: `pulse:120` opens the cash drawer for 120 milliseconds.
PHCOM Print Markup Language
The PHCOM Print Markup Language is a specialized markup language that makes it possible to control print commands for tickets via various connections such as Bluetooth, LAN or print servers. This language includes a variety of tags that can be used for different printing requirements. The basic rules are simple: the ticket is printed from top to bottom and text is wrapped when the maximum line length is reached. An open tag remains active until it is closed, and tags cannot be combined, except in specific cases such as the simultaneous application of centering and bold text. Here are some important tags of the PHCOM Print Markup Language:
Use of tags
The PHCOM Print Markup Language tags offer a variety of ways to customize print output. Here are some tips for using the tags:
- QR codes: Make sure the code you enter is correct to generate the desired QR code. Using QR codes can be useful to scan information quickly.
- Barcodes: Make sure that the barcode is in Code39 format. This is important to ensure readability and compatibility with scanners.
- Text formatting: Use the various text formatting tags to emphasize important information. Bold text and large fonts can be used for headings, for example.
- Alignment: Think about how the text should be arranged on the ticket. Left, right or centered alignment can vary depending on the design of the ticket.
- Separators: Use separators to clearly separate different sections of the ticket and improve readability.
- Logo: If you want to print a logo, make sure it is cached in the correct format to ensure optimal print quality.
- Cash drawer: The cash drawer open command can be useful when closing sales. Adjust the duration to ensure that the cash drawer is opened in time.
These tags give you a flexible and powerful way to design print outputs that are both functional and appealing. Experiment with the different tags to get the best results for your specific applications.