Class Status
Printer status data include metrics about temperature sensors, and paper movement. TEST
...
var status = printer.GetStatus();
Console.WriteLine("Printer is: {0}", status.TicketStatus);
Console.WriteLine("Printer Errors: {0}", status.PrinterErrors);
...
Inheritance
Namespace: PTIRelianceLib
Assembly: PTIRelianceLib.dll
Syntax
public class Status : object, IParseable
Properties
| Improve this Doc View SourceArmRaw
Raw ADC value for arm sensor
Declaration
public ushort ArmRaw { get; }
Property Value
Type | Description |
---|---|
System.UInt16 | Raw ADC value for arm paper sensor |
HeadTemp
Temperature of the head in deg C
Declaration
public byte HeadTemp { get; }
Property Value
Type | Description |
---|---|
System.Byte | Head temperature in degrees Celsius |
HeadVoltage
ASCII string of the head input voltage. "XX.XX" (Volts)
Declaration
public string HeadVoltage { get; }
Property Value
Type | Description |
---|---|
System.String | Head voltage in DC volts |
NotchRaw
Raw ADC value for notch sensor
Declaration
public ushort NotchRaw { get; }
Property Value
Type | Description |
---|---|
System.UInt16 | Raw ADC value for notch sensor |
PaperRaw
Raw ADC value for paper sensor
Declaration
public ushort PaperRaw { get; }
Property Value
Type | Description |
---|---|
System.UInt16 | Raw ADC value for paper sensor |
PathRaw
Raw ADC value for path sensor
Declaration
public ushort PathRaw { get; }
Property Value
Type | Description |
---|---|
System.UInt16 | Raw ADC value for path sensor |
PresenterRaw
Raw ADC value for presenter sensor
Declaration
public ushort PresenterRaw { get; }
Property Value
Type | Description |
---|---|
System.UInt16 | Raw ADC value for presenter sensor |
PrinterErrors
Printer error status
Declaration
public ErrorStatuses PrinterErrors { get; }
Property Value
Type | Description |
---|---|
ErrorStatuses | Zero or more errors may be set at once |
SensorStatus
Sensor statuses
Declaration
public SensorStatuses SensorStatus { get; }
Property Value
Type | Description |
---|---|
SensorStatuses | Covered or Uncovered sensor flags |
TicketStatus
Where the ticket is at.
- 0 : Idle = no ticket
- 1 : Printing = Ticket has data
- 2 : Un-presented Ticket = Ticket is cut but not presented
- 3 : Presented Ticket = Ticket is cut and presented
Declaration
public TicketStates TicketStatus { get; }
Property Value
Type | Description |
---|---|
TicketStates | Ticket be in exactly one state |
Methods
| Improve this Doc View SourceSerialize()
Declaration
public byte[] Serialize()
Returns
Type | Description |
---|---|
System.Byte[] | Payload data |
ToString()
Returns a summary of the status report a. la
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | string |
Examples
Head Voltage: 24 V DC
Head Temperate: 22 °C
Sensor Status: Platen
...