Fiscal Printer SYNERGY PF-550
Where:
<01>
Preamble.
1 byte long. Value: 01H.
<LEN>
Number of bytes from <01> preamble (excluded) to <05> (included) plus the fixed offset of 20H.
Length: 1 byte. Value: 20H - 7FH.
<SEQ>
Sequence number of the frame.
Length : 1 byte. Value: 20H – FFH.
The fiscal printer saves the same <SEQ> in the return message. If the FP gets a message with the
same <SEQ> as the last message received it will not perform any operation, but will repeat the last
sent message.
<CMD>
The code of the command.
Length: 1 byte. Value: 20H - 7FH.
The fiscal printer saves the same <CMD> in the return message. If the printer receives a non-
existing code it returns a wrapped message with zero length in the data field and sets the respective
status bit.
<DATA>
Data.
Length: 0-91 bytes for Host to printer, 0-84 bytes for Printer to Host. Value: 20H – FFH.
The format and length of the field for storing data depends on the command. If the command has no
data the length of this field is zero. If there is a syntax error the respective status bit is established in
the data and a wrapped message is returned with zero field length.
<04>
Separator (only for printer-to-Host massages)
Length: 1 byte. Value: 04H.
<STATUS>
The field with the current status of the fiscal device.
Length: 6 bytes. Value: 80H-FFH.
<05>
Postamble
Length: 1 byte. Value:05H.
<BCC>
Control sum (0000H-FFFFH)
Length: 4 bytes. Value of each byte: 30H-3FH.
The sum includes between <01> preamble (excluded) to <05>. Each digit from the two bytes is sent
after 30H is added to it. For example the sum 1AE3H is presented as 31H, 3AH, 3EH, 33H.
<03>
Terminator
Length: 1 byte. Value: 03H.
MESSAGE COMPOSITION, SYNTAX, AND MEANINGS
a) The data field depends on the command.
b) The parameters sent to the printer may be separated with a comma and/or may have a fixed length.
c) The comma between the parameters shows that it is mandatory.
d) When the parameters are closed by <> they are mandatory although the brackets themselves are not present in
the message. When a given parameter is closed in [ ] it is not mandatory - the bracket themselves are also not present in
the message. When parameters are separated by ‘
|
’ symbol, only one of them may present in the input data.
The symbols with ADCII codes under 32 (20H) have special meanings and their use is explained whenever
necessary. If such a symbol has to be sent for some reason (for example in an ESCAPE-command to the display) it
must be preceded by 16 (10H) with an added offset 40H.
Example
:
when we write
2500, 100, Text
for the data field then in that field there will be
2D 32 35 30 2C 31 30 30
2C
54 65 78 74
where each hexadecimal digit is an ASCII value.