D Printer commands | 230 |
Combining escape sequences
Escape sequences can be combined into one escape sequence string. There are three important rules to follow when combining code:
1The first two characters after the escape character (the parameterized and group characters) must be the same in all of the commands to be combined.
2When combining escape sequences, change the uppercase (termination) character in each individual escape sequence to lower case.
3The final character of the combined escape sequence must be uppercase.
The following is an example of an escape sequence string that would be sent to the product to select legal paper, landscape orientation, and eight lines per inch:
Ec&l3AEc&l1OEc&l8D
The following escape sequence sends the same printer commands by combining them into a shorter sequence:
Ec&l3a1o8D
Understanding PCL 5e printer command syntax