Fiscal Printer DATECS FP-2000 Version 3.10
communication via the RS232 serial connection at baud rates of 1200, 2400, 4800, 9600, 19200, 38400, 57600 and
115200 bps, 8N1. The baud rate is set by adjusting the configuration switches SW1, SW2 and SW3:
Sw1 Sw2 Sw3 Speed
0 0 0 1200 bps
0 0 1 2400 bps
0 1 0 4800 bps
0 1 1 9600 bps
1 0 0 19200 bps
1 0 1 38400 bps
1 1 0 57600 bps
1 1 1 115200 bps
B) NON-WRAPPED MESSAGES - TIME-OUT
When the transmitting of messages from the Host is normal, Slave answers not later than 60 ms either with a
wrapped message or with a 1 byte code. Host must have 500 ms of time-out for receiving a message from Slave. If
there is no message during this period of time the Host will transmit the message again with the same sequence number
and the same command. After several unsuccessful attempts Host must indicate that there is either no connection to the
fiscal printer or there is a hardware fault.
Non-wrapped messages consist of one byte and they are:
A) NAK 15H
This code is sent by Slave when an error in the control sum or the form of the received message is found. When
Host receives a NAK it must again send a message with the same sequence number.
B) SYN 16H
This code is sent by Slave upon receiving a command which needs longer processing time. SYN is sent every 60
ms until the wrapped message is not ready for transmitting.
C) WRAPPED MESSAGES
a) Host to printer (Send)
<01><LEN><SEQ><CMD><DATA><05><BCC><03>
b) Printer to Host (Receive)
<01><LEN><SEQ><CMD><DATA><04><STATUS><05><BCC><03>
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 - FFH.
<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-218 bytes for Host to printer, 0-213 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.