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

Introduction, 6.3 Reading Date and Time, 6.4 Testing the Printhead

Page 80 highlights

Chapter 6-Reading the Printer's Status 6.1 Introduction Provided there is a working two-way serial communication between the printer and the host computer, the printer's status in regard of various functions can be read back to the host. Thus, the serial channel connected to the host must be selected standard IN/OUT channel (default, see SETSTDIO instruction in Chapter 5.2). 6.2 Returning Information to the Host The PRINT instruction reads the printer's status as specified by a complementary instruction and returns the result on the standard OUT channel to the host, where it usually will be printed on the screen. The shorthand version of PRINT is a question mark (?). PRINT | ? 6.3 Reading Date and Time The current date and time according to the printer's clock/calendar can be read as follows: ? DATE$ or ? DATE$("F") ? TIME$ or ? TIME$("F") 6.4 Testing the Printhead The thermal printhead can be tested in three ways: ? FUNCTEST$ ("HEAD") The printhead is tested for number of dots and possible faults. There are 3 possible responses: "HEAD OK, SIZE:nnn DOTS" (nnn is the number of dots) "HEAD LIFTED" (lower the printhead and try again) "FAULTY PRINTHEAD" (an error is detected) ? HEAD() ≥ 0: = -1: = -7: returns resistance of the specified dot in ohms checks printhead. Returns -1 of OK, else 0 returns mean resistance of printhead in ohms Refer to the Intermec Fingerprint v.8.60, Programmer's Reference Manual. ? SYSVAR() = 21 = 22 returns printhead density in dots per mm returns the number of dots in the printhead 72 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

72
Intermec Direct Protocol v.8.60—Programmer’s Reference Manual
Chapter 6—Reading the Printer’s Status
6.1 Introduction
Provided there is a working two-way serial communication between
the printer and the host computer, the printer’s status in regard of
various functions can be read back to the host. °us, the serial channel
connected to the host must be selected standard IN/OUT channel
(default, see
SETSTDIO
instruction in Chapter 5.2).
6.2 Returning Information to the Host
°e
PRINT
instruction reads the printer’s status as specified by a comple-
mentary instruction and returns the result on the standard OUT channel
to the host, where it usually will be printed on the screen. °e shorthand
version of
PRINT
is a question mark (
?
).
PRINT | ?
6.3 Reading Date and Time
°e current date and time according to the printer’s clock/calendar can
be read as follows:
? DATE$
or
? DATE$("F")
? TIME$
or
? TIME$("F")
6.4 Testing the Printhead
°e thermal printhead can be tested in three ways:
? FUNCTEST$ ("HEAD")
The printhead is tested for number of dots and possible faults. There are 3 possible responses:
“HEAD OK, SIZE:nnn DOTS”
(nnn is the number of dots)
“HEAD LIFTED”
(lower the printhead and try again)
“FAULTY PRINTHEAD”
(an
error is detected)
? HEAD(<check type>)
<check type> ≥
0:
returns resistance of the specified dot in ohms
<check type> = -1:
checks printhead. Returns -1 of OK, else 0
<check type>= -7:
returns mean resistance of printhead in ohms
Refer to the
Intermec Fingerprint v.8.60, Programmer’s Reference Manual
.
? SYSVAR(<parameter>)
<parameter> = 21
returns printhead density in dots per mm
<parameter> = 22
returns the number of dots in the printhead