
Programming
Software command syntax
48
P1003640-001 TTP2100 Technical Manual 10/22/2008
Software command syntax
The commands in this section are grouped after what they do, and these groups are sorted in a
theoretical usage sequence. It starts with commands for specifying the printed page — through
text-and-graphics commands — to cut-and-present commands. System and status commands
are presented at the end.
Black-mark (Top-of-Form) Commands
See also Aligning Preprint and Thermal Print on page 101.
In Var ia ble and fixed page modes the calibration measures the out of paper level and the
whiteness of the paper, and stores these values in parameter n51 and n58.
In black mark mode it also determines if it should trigger on black-marks or holes, then
measures the contrast and distances, then sets parameters n37 -n40, n51, n57 bit 3, n58, n61,
and n62 to suitable values for the analyzed ticket.
To make the calibration permanent, send ESC & 4h, store parameter values.
See also Simple Calibration Process on page 102
In black mark mode, an ESC Z starts looking for a black mark at the current position and
continues for one page length. If no black mark is found, bit 3 in status byte 1 is set to 1 and
the printer will report NAK 0A on the next status query.
When black-mark mode is disabled, ESC Z will perform a form feed.
Text Commands
Text received by the printer is printed with the currently selected font and font attributes. Text
exceeding the page width is wrapped with the line spacing selected.
ESC #
Calibrate TOF Sensor
1B 23 Hex
27 35 decimal
Note • If black-mark calibrations fails, the printer will indicate error code 11 by blinking 11
times when you hold the FF button pressed, and by answering NAK 0Bh to the status
enquiry.
Note • The printer must not be in self-test mode when calibrating.
ESC Z
Go to next Top of Form
1B 5A Hex
27 90 Decimal
Komentarze do niniejszej Instrukcji