Intermec PM23c Fingerprint Developer's Guide (PC23d, PC43d/t, PM23c, PM43, PM4 - Page 128

Changing the Setup Using a Setup String, Saving the Setup, Using the SYSVAR System Variable

Page 128 highlights

Chapter 7 - Controlling the Printer 10 SETUP WRITE "SETUP1.SYS" 20 OPEN "SETUPTEST.SYS" FOR OUTPUT AS #1 30 PRINT#1,"SER-COM,UART1,TRANS BUF,2000" 40 CLOSE #1 50 SETUP "SETUPTEST.SYS" RUN Changing the Setup Using a Setup String To change a single setup parameter without creating a file, use a SETUP statement with a string with the same syntax as the corresponding parameter. Do not use a leading PRINT# statement. 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 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. 116 Fingerprint Developer's Guide

  • 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

Chapter 7 — Controlling the Printer
116
Fingerprint Developer’s Guide
10
SETUP WRITE “SETUP1.SYS”
20
OPEN “SETUPTEST.SYS” FOR OUTPUT AS #1
30
PRINT#1,“SER-COM,UART1,TRANS BUF,2000”
40
CLOSE #1
50
SETUP “SETUPTEST.SYS”
RUN
Changing the Setup Using a Setup String
To change a single setup parameter without creating a file, use a SETUP statement
with a string with the same syntax as the corresponding parameter. Do not use a
leading PRINT# statement.
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.