Intermec PX6i Fingerprint Developer's Guide (old) - Page 137

Saving the Setup, Using the SYSVAR System Variable

Page 137 highlights

Chapter 7 - Controlling the Printer This example changes the "uart1:" settings: SETUP "SER-COM,UART1,TRANS BUF,2000" Saving the Setup You can decide whether a change in the printer setup should be permanent or temporary using SYSVAR(35): • If SYSVAR(35) = 0 (default), the setup is saved as a file and remains effective after a reboot or power down. • If SYSVAR(35)=1, the setup is not saved, and the last saved setup values are effective after a reboot or power down. For more information, see the next section. Using the SYSVAR System Variable Some sensors and other conditions can be read or set using the SYSVAR system variable. You can use SYSVAR to return the current conditions of a variable, when can then affect your running program. For specific information on using SYSVAR, see the Fingerprint Command Reference Manual. The next table lists SYSVAR values and the information returned. SYSVAR Values and Descriptions Value 14 15 16 17 18 19 20 21 22 23 24 26 27 28 29 30 Description Returns the number of errors since last power on. Returns the number of errors since the previously executed SYSVAR(15) instruction. Returns the number of bytes received at the execution of a STORE INPUT statement. Returns the number of frames received at the execution of a STORE INPUT statement. Returns or sets the verbosity level. Returns or sets the type of error messages transmitted by the printer. Returns 0 if the printer is set up for direct thermal or 1 if set up for thermal transfer printing. Returns the printhead density in dots/mm. Returns the number of dots in the printhead. Returns 1 if a transfer ribbon is detected, 0 otherwise. Returns 1 if a power-up has been performed since last SYSVAR(24), or 0 otherwise. Returns 1 if the ribbon sensor detects that the diameter of the ribbon supply roll is equal to or less than the diameter specified in Setup Mode, or 0 otherwise. Sets condition for label reprinting at out-of-ribbon error. Decides if the information on the position of the media against the printhead should be cleared or not when the printhead is lifted. Returns Data Send Ready (DSR) condition on "uart2:". Returns Data Send Ready (DSR) condition on "uart3:". Intermec Fingerprint Developer's Guide 121

  • 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
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187

Chapter 7 — Controlling the Printer
Intermec Fingerprint Developer’s Guide
121
This example changes the “uart1:” settings:
SETUP “SER-COM,UART1,TRANS BUF,2000”
Saving the Setup
You can decide whether a change in the printer setup should be permanent or
temporary using SYSVAR(35):
If SYSVAR(35) = 0 (default), the setup is saved as a file and remains effective after
a reboot or power down.
If SYSVAR(35)=1, the setup is not saved, and the last saved setup values are
effective after a reboot or power down.
For more information, see the next section.
Using the SYSVAR System Variable
Some sensors and other conditions can be read or set using the SYSVAR system
variable. You can use SYSVAR to return the current conditions of a variable, when
can then affect your running program. For specific information on using SYSVAR,
see the
Fingerprint Command Reference Manual.
The next table lists SYSVAR values and the information returned.
SYSVAR Values and Descriptions
Value
Description
14
Returns the number of errors since last power on.
15
Returns the number of errors since the previously executed SYSVAR(15)
instruction.
16
Returns the number of bytes received at the execution of a STORE INPUT
statement.
17
Returns the number of frames received at the execution of a STORE INPUT
statement.
18
Returns or sets the verbosity level.
19
Returns or sets the type of error messages transmitted by the printer.
20
Returns 0 if the printer is set up for direct thermal or 1 if set up for thermal
transfer printing.
21
Returns the printhead density in dots/mm.
22
Returns the number of dots in the printhead.
23
Returns 1 if a transfer ribbon is detected, 0 otherwise.
24
Returns 1 if a power-up has been performed since last SYSVAR(24), or 0
otherwise.
26
Returns 1 if the ribbon sensor detects that the diameter of the ribbon supply roll
is equal to or less than the diameter specified in Setup Mode, or 0 otherwise.
27
Sets condition for label reprinting at out-of-ribbon error.
28
Decides if the information on the position of the media against the printhead
should be cleared or not when the printhead is lifted.
29
Returns Data Send Ready (DSR) condition on “uart2:”.
30
Returns Data Send Ready (DSR) condition on “uart3:”.