Intermec PB31 Fingerprint Developer's Guide (old) - Page 136

Using Setup Mode Programmatically, Reading the Current Setup, Creating a Setup File

Page 136 highlights

Chapter 7 - Controlling the Printer Using Setup Mode Programmatically To change a printer setup parameter as a part of the program execution, you can use a SETUP statement. A SETUP statement can: • place the printer in Setup Mode for manual configuration (pressing keys on the printer keypad). When the printer is in Setup Mode, it does not respond to Fingerprint commands sent from a communications application. • create a copy of the current setup and save it as a file, or return the current setup to a specified communication channel. • change some or all setup parameters according to a setup file. • change a single parameter. Reading the Current Setup To read the current printer setup, use a SETUP WRITE statement to return the setup to the standard OUT channel, as in this example: SETUP WRITE "uart1:" Creating a Setup File 1 OPEN a file for sequential OUTPUT. 2 Use a PRINT# statement to enter each parameter you want to change. See the SETUP command in the Fingerprint command reference manual for specific syntax information. 3 CLOSE the file. Changing the Setup Using a Setup File To change the setup based on a setup file, use a SETUP statement. If the setup file is stored in another part of the printer memory than the current directory, the file name should start with a reference to the correct path for the file. In the following example, save the current setup under a new file name and then create a setup file that changes the size of the transmit buffer on "uart1:". Finally, use the setup file to change the printer setup. 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. 120 Intermec 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
  • 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
120
Intermec Fingerprint Developer’s Guide
Using Setup Mode Programmatically
To change a printer setup parameter as a part of the program execution, you can use
a SETUP statement.
A SETUP statement can:
place the printer in Setup Mode for manual configuration (pressing keys on the
printer keypad). When the printer is in Setup Mode, it does not respond to
Fingerprint commands sent from a communications application.
create a copy of the current setup and save it as a file, or return the current setup
to a specified communication channel.
change some or all setup parameters according to a setup file.
change a single parameter.
Reading the Current Setup
To read the current printer setup, use a SETUP WRITE statement to return the
setup to the standard OUT channel, as in this example:
SETUP WRITE “uart1:”
Creating a Setup File
1
OPEN a file for sequential OUTPUT.
2
Use a PRINT# statement to enter each parameter you want to change. See the
SETUP command in the Fingerprint command reference manual for specific
syntax information.
3
CLOSE the file.
Changing the Setup Using a Setup File
To change the setup based on a setup file, use a SETUP<
filename
> statement. If the
setup file is stored in another part of the printer memory than the current directory,
the file name should start with a reference to the correct path for the file.
In the following example, save the current setup under a new file name and then
create a setup file that changes the size of the transmit buffer on “uart1:”. Finally,
use the setup file to change the printer setup.
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.