STATUS COMMANDS

The status enabled function must be set to activate these commands.  Please note that the printer may not respond to status commands immediately, as the printer must first process any data received prior to the status command.  In other words, there is a potential response delay of a few seconds if the status request is received in the middle of printing a ticket.  

Note: All FGL commands are case-sensitive.


Normal mode (factory default)

While the printer asynchronously sends status messages whenever a change in status occurs, status commands can only be processed when the printer is ready and fully operational (paper loaded, no faults, etc.).  In other words, no status responses will be sent while the printer is busy and/or in an error state.  Status requests sent while the printer is in a busy/error state will not receive a response, until the printer returns to its ready state.  As the printer can only send status when it is operational, the only status messages received in response to an <S1> status request will be X-ON and low paper.  All other status messages will be sent once, and only once, as the change in status occurs.

 

Typical Lemur-X unsolicited and solicited status messages: 


HexDecDescriptionUnsolicited
Solicited
06H6TICKET ACK – Sent after each receipt or ticket is printed
YESNO
0FH15LOW PAPER – used with optional low paper sensor
YES
NO
10H16OUT OF PAPER – printer runs out of media
YES
NO
11H17X-ON – sent when printer goes ready
YES
YES <S1>
12H18POWER ON – sent when printer is powered on
YES
NO
13H19X-OFF – sent when printer goes busy
YES
NO
*16H*22TICKET REMOVED – sent when media is taken
YES
NO
18H24PAPER JAM – printer is in a media jam error state
YES
NO
19H25ILLEGAL DATA – when printer receives illegal data
YES
NO
1AH26POWER UP PROBLEM – printer has power up error
YES
NO
1CH28DOWNLOAD ERROR – error downloading font or image
YES
NO
1DH29CUTTER JAM – cutter knife has failed to move
YES
NO

* Is only sent when printer path type is set for path 1 – exit opto, by default the printer is not set for this mode. ONLY FOR LEMUR-X WITH PRESENTER.



Alternative status modes

Alternate protocols, “single ticket status mode” and “solicited status mode”, are available, where the printer will process all status requests received during fault conditions.  However, in either of these modes, the printer will not send any unsolicited status messages, except for power on (12H) and ticket printed (ACK = 06H).  



Single Ticket Status Mode - <s90> 

Supported since FGL#6M194 and newer or FGL#6N156 and newer. This alternative protocol disables unsolicited status messages except for power on (12H), ticket printed (ACK = 06H), low paper, ticket waiting and ticket removed.  X-ON and X-OFF will still be sent, but only to indicate buffer full/empty status.  The printer will respond to all status requests received during an error state.  However, non-status related data should not be sent during an error state, as it may cause errors.  This mode should only be used when ticket data is sent one ticket at a time.  After sending each ticket, the user should send an <S92> status request and receive either a “good status” (41H) or “low paper” prior to sending additional ticket data.  (On printers configured with a presenter; a ticket waiting (17H) will be sent unsolicited when the ticket arrives in the presenter and a "ticket removed status" (16H) will be sent prior to the "good status" (41H) message.)


Typical Lemur-X unsolicited and solicited status messages:

HexDecDescriptionUnsolicited
Solicited
06H6TICKET ACK – Sent after each receipt or ticket is printed
YESNO
0FH15LOW PAPER – used with optional low paper sensor
YESYES <S92>
10H16OUT OF PAPER – printer runs out of media
NOYES <S92>
11H17X-ON – sent when printer goes ready
YES
NO
12H18POWER ON – sent when printer is powered on
YES
NO
13H19X-OFF – sent when printer goes busy
YES
NO
*16H*22TICKET REMOVED – sent when media is taken
YES
NO
*17H*23TICKET WAITING – sent when media is presented
YESYES <S92>
18H24PAPER JAM – printer is in a media jam error state
NO
YES <S92>
19H25ILLEGAL DATA – when printer receives illegal data
NO
YES <S92>
1AH26POWER UP PROBLEM – printer has power up error
NO
YES <S92>
1CH28DOWNLOAD ERROR – error downloading font or image
NO
YES <S92>
1DH29CUTTER JAM – cutter knife has failed to move
NO
YES <S92>
41H65GOOD STATUS – printer is ready
NOYES <S92>

* Is only sent when printer path type is set for path 1 – exit opto, by default the printer is not set for this mode. ONLY FOR LEMUR-X WITH PRESENTER.




Solicited Status Mode - <s91>

This alternative protocol disables all unsolicited status messages, except power on (12H) and ticket printed (ACK = 06H).  X-ON and X-OFF will still be sent, but only to indicate buffer full/empty status.  NOTE: When the printer is in an error state, it will only respond to <S92> status requests.  All other data and status requests will be deleted until the printer returns to an error-free condition.

 

Typical Lemur-X unsolicited and solicited status messages:

HexDecDescriptionUnsolicited
Solicited
06H6TICKET ACK – Sent after each receipt or ticket is printed
YESNO
0FH15LOW PAPER – used with optional low paper sensor
YESYES <S92>
10H16OUT OF PAPER – printer runs out of media
NOYES <S92>
11H17X-ON – sent when printer goes ready
YES
NO
12H18POWER ON – sent when printer is powered on
YES
NO
13H19X-OFF – sent when printer goes busy
YES
NO
*16H*22TICKET REMOVED – sent when media is taken
NO
NO
*17H*23TICKET WAITING – sent when media is presented
NOYES <S92>
18H24PAPER JAM – printer is in a media jam error state
NO
YES <S92>
19H25ILLEGAL DATA – when printer receives illegal data
NO
YES <S92>
1AH26POWER UP PROBLEM – printer has power up error
NO
YES <S92>
1CH28DOWNLOAD ERROR – error downloading font or image
NO
YES <S92>
1DH29CUTTER JAM – cutter knife has failed to move
NO
YES <S92>
41H65GOOD STATUS – printer is ready
NOYES <S92>

* Is only sent when printer path type is set for path 1 – exit opto, by default the printer is not set for this mode. ONLY FOR LEMUR-X WITH PRESENTER.




Disable alternative protocols

To set the printer back to "normal status mode" send the FGL command <cs> once to the printer.



STATUS REQUESTS

Normal mode Status Request - <S1>

As the printer can only send status when it is operational, the only status messages received in response to an <S1> status request will be X-ON and low paper.  


Solicited Status Request - <S92>

When operating in either of the alternative status modes, the printer will send status in response to an <S92> command.  A 41H is sent to indicate good status.  The only time the printer is unable to send a response is when the printer is busy, indicated by sending an X-OFF.   Like all status requests, there is a potential response delay of up to a few seconds if the status request is received in the middle of printing a ticket.  


Status request frequency

Do not perform excessive status request. Each status query causes an interrupt to the printer and adds to unnecessary overhead.  We would normally recommend an interval of 1 sec (or longer if possible).


Path 1 to exit opto configuration - <p16>

The software command <p16> may be sent to the printer to configure path 1 to exit opto configuration. This command only needs to be sent once to make the necessary setting changes, and the printer will reset of receipt of said command. This setting change will still stay in effect even when the power has been cycled to the printer.



BI-DIRECTIONAL STATUS (for Serial, Ethernet, USB and Bluetooth)

The printer will transmit status information back to the host via the interface (for Serial and USB, make sure the status enabled is set up correctly).  The available status codes for all different printer models are as follows:


CODE

DESCRIPTION

(HEX)

(DEC)

 

01H

01

REJECT BIN WARNING (3)

02H

02

REJECT BIN ERROR (3)  / STX (start of text)

03H

03

PAPER JAM PATH 1 (1) / ETX (end of text)

04H

04

PAPER JAM PATH 2 (1)

05H

05

TEST BUTTON TICKET ACK

06H

06

TICKET ACK

07H

07

WRONG FILE IDENTIFIER DURING UPDATE

08H

08

INVALID CHECKSUM

09H

09

VALID CHECKSUM

0AH

10

OUT OF PAPER PATH 1 (1) / LF (line feed)

0BH

11

OUT OF PAPER PATH 2 (1)

0CH

12

PAPER LOADED PATH 1 (1)

0DH

13

PAPER LOADED PATH 2 (1) / CR (carriage return)

0EH

14

ESCROW JAM (3)

0FH

15

LOW PAPER

10H

16

OUT OF PAPER

11H

17

X-ON

12H

18

POWER ON

13H

19

X-OFF

14H

20

BAD FLASH MEMORY

15H

21

NAK (illegal print command)

16H

22

RIBBON LOW / TICKET TAKEN (4)

17H

23

RIBBON OUT / TICKET WAITING IN PRESENTER

18H

24

PAPER JAM

19H

25

ILLEGAL DATA

1AH

26

POWER UP PROBLEM

1CH

28

DOWNLOADING ERROR

1DH

29

CUTTER JAM

1EH

30

STUCK TICKET (3) or CUT JAM PATH1 (2)

1FH

31

CUT JAM PATH2 (2)

41H

65

PRINTER GOOD (5)


The above status information can be requested from the printer by sending <S1> (or <S92>) as described previous section.  

Note 1: This status information is available only in Ventek Dual Supply Mode.

Note 2: Special firmware releases only.

Note 3: Status messages for printers with magnetic encoding.

Note 4: This status information is available only if set to "Path1 Exit Opto" and ticket taken sensor is installed.

Note 5: This status information is available only if set to "Single Ticket Status Mode" or "Solicited Status Mode".



For more information, please see the programming guide