Intermec PX4i Intermec Direct Protocol 8.60 Programmer's Reference Manual - Page 82

Reading Printer’s Status

Page 82 highlights

Chapter 6-Reading the Printer's Status 6.7 Reading Printer's Status The printer's status in regard of various errors and other conditions can be read and returned to the host using the PRSTAT instruction: ? (PRSTAT AND ) = 0 = 1 = 2 = 4 = 8 = 16 = 32 = 64 = 128 Ok printhead lifted label not removed (returns 0 if no LTS fitted) label stop sensor (LSS) detects no media printer out of transfer ribbon (returns 0 if DT) printer voltage too high printer is feeding RESERVED printer out of media Parameters can be combined, for example checks for both "printhead lifted" and "label not removed" conditions. The printer will either return 1 (=yes) or 0 (=no). The version of the Intermec Direct Protocol, the type of printer family, and the type of CPU board can be read using a VERSION$ instruction: ? VERSION$[(type of info)] = 0 = 1 = 2 returns the version of the Intermec Fingerprint firmware (default), for example "Fingerprint 8.60" returns the type of printer family, for example "PF2i", "PF4i", "PM4i", "PX4i", or "PX6i" returns the type of CPU board, for example "hardware version 4.0" The instruction IMMEDIATE allows you see the status of various printer modes and the setting of the standard IN and OUT channels: ? IMMEDIATE MODE prints a line to the standard OUT port with information on the current status (ON or OFF) of the following modes: - Execution - Immediate - Input - Layout Input ? IMMEDIATE STDIO prints two lines to the standard OUT port with information on the current settings for the standard IN and standard OUT channels. 74 Intermec Direct Protocol v.8.60-Programmer's Reference Manual

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134

74
Intermec Direct Protocol v.8.60—Programmer’s Reference Manual
Chapter 6—Reading the Printer’s Status
6.7 Reading Printer’s Status
°e printer’s status in regard of various errors and other conditions can
be read and returned to the host using the
PRSTAT
instruction:
? (PRSTAT AND <parameter>)
<parameter> = 0
Ok
<parameter> = 1
printhead lifted
<parameter> = 2
label not removed (returns 0 if no LTS fitted)
<parameter> = 4
label stop sensor (LSS) detects no media
<parameter> = 8
printer out of transfer ribbon (returns 0 if DT)
<parameter> = 16
printer voltage too high
<parameter> = 32
printer is feeding
<parameter> = 64
RESERVED
<parameter> = 128
printer out of media
Parameters can be combined, for example <3> checks for both “printhead
lifted” and “label not removed” conditions. °e printer will either return
1 (=yes) or 0 (=no).
°e version of the Intermec Direct Protocol, the type of printer family,
and the type of CPU board can be read using a
VERSION$
instruction:
? VERSION$[(type of info)]
<type of info> = 0
returns the version of the Intermec Fingerprint firmware (default), for example
“Fingerprint 8.60”
<type of info> = 1
returns the type of printer family, for example
“PF2i”, “PF4i”,
“PM4i”, "PX4i", or "PX6i"
<type of info> = 2
returns the type of CPU board, for example “hardware version 4.0”
°e instruction
IMMEDIATE
allows you see the status of various printer
modes and the setting of the standard IN and OUT channels:
? IMMEDIATE MODE
prints a line to the standard OUT port with information on the current
status (ON or OFF) of the following modes:
- Execution
- Immediate
- Input
- Layout Input
? IMMEDIATE STDIO
prints two lines to the standard OUT port with information on the
current settings for the standard IN and standard OUT channels.