Skip to content

    Send ticket

    Overview

    Through this command, the Terminal sends the lines of the receipt to ECR for printing. Every message can contain up to a maximum of 200 characters. Multiple lines can be sent for printing, with different formats indicated by specific control characters.

    • Standard format or double height format: both normal and bold are available, lines are composed of 24 characters.
    • Double width format: both normal and bold are available, lines are composed of 12 characters.
    • Compressed format: lines are composed of 42 characters.
    • The new line character 0x7D resets the format to standard - 24 characters. If it’s the first character of a new line, it should be interpreted as a request to print an “empty line” (24 black).

    • If the line is 24 characters long, the 0x7D is not required because the printer automatically considers the line as “completed”, so the next character will be printed in a new line.

    • In case the line of printing is preceded by the characters 0x7B, 0x7C or 0x5E, the number of characters after which a line wrap is inserted is always 12 or 42. Therefore, it is not necessary to insert an end-of-line character 0x7D.

    • If a row should be printed in “double height bold” (as an example: a row with the amount when the transaction is successful), the first character of this row must be 0x7F. If the line is 24 characters long, the next one will be printed automatically in the normal format, without the presence of any special character.

    Send ticket message (from Terminal)

    PosLengthTypeContent
    18N
    Terminal ID (00000000-99999999)
    91N
    Reserved – fixed to ‘0’ (0x30)
    101A
    Message code: ‘S’ (0x53)
    11
    1-200
    A
    Lines to be printed; formatted to 12, 14 or 42 chars per line.

    Field 11 can contain the following special characters, with the specified meaning:

    • 0x7D = new line (CR+LF) and normal character format reset - USED
    • 0x7E = start of double height normal characters - NOT USED
    • 0x7F = start of double height bold characters - USED
    • 0x7B = start of double width normal characters - NOT USED
    • 0x7C = start of double width bold characters - NOT USED
    • 0x5E = start of compressed characters - NOT USED

    The last Send ticket message will at the end of Field 11 contain the following sequence:

    • 0x7D = new line (CR+LF)
    • 0x7D = new line (CR+LF)
    • 0x7D = new line (CR+LF)
    • 0x7D = new line (CR+LF)
    • 0x7D = new line (CR+LF)
    • 0x7D = new line (CR+LF)
    • 0x1B = ticket end

    Was this helpful?

    What was your feeling about it?