Select Paper Sensors To Output Paper-End Signals; Select Sensors To Stop Printing - CognitiveTPG A798 Programming Manual

Thermal receipt printer
Hide thumbs Also See for A798:
Table of Contents

Advertisement

36
Chapter 4: Programming Commands

Select paper sensors to output paper-end signals

ASCII
ESC c 3 n
Hexadecimal
1B 63 33 n
Decimal
27 99 51 n
Value of n:
If either bit 0 or bit 1 is on, the paper roll near-end sensor is selected as the paper sensor outputting paper-end signals.
If either bit 2 or bit 3 is on, the paper roll-end sensor is selected as the paper sensor outputting paper-end signals.
Bit
Position
Hex
Decimal
0
Off
00
0
On
01
1
1
Off
00
0
On
02
2
2
Off
00
0
On
04
4
3
Off
00
0
On
08
8
4, 5, 6, 7 –
Range of n:
1–255
Default of n:
12
Specifies the paper sensor to output a paper-end signal. Multiple sensors may be selected to signal when paper has run out.
When multiple sensors have been selected, anytime one of the sensors detects a paper-end, the paper end signal is output.
When this command is executed a sensor is switched. The paper-end signal switching is delayed depending on the receive
buffer state.
Exceptions
The command is ignored, except in parallel communications.

Select sensors to stop printing

ASCII
ESC c 4 n
Hexadecimal
1B 63 34 n
Decimal
27 99 52 n
Value of n:
Sensor status
Bit
Sensor
0
Receipt paper near-end
1
Receipt paper near-end
2–4
Undefined
6
Undefined
Bits 5 and 7 are not used.
Default:
0
Determines which sensor stops printing on the respective station. The command does not affect the paper out status on the
receipt station, which will automatically stop the printer when the paper is depleted.
Function
Paper roll near-end sensor disabled
Paper roll near-end sensor enabled
Paper roll near-end sensor disabled
Paper roll near-end sensor enabled
Paper roll-end sensor disabled
Paper roll-end sensor enabled
Paper roll-end sensor disabled
Paper roll-end sensor enabled
Undefined
Sensor Status
0
1
Disabled
Enabled
Disabled
Enabled
A798-PG00001C
Revision C 12/09

Advertisement

Table of Contents
loading

Table of Contents