Intermec PB50 Fingerprint Developer's Guide (old) - Page 74

Output to the Standard OUT Channel, Printing Expressions With PRINT

Page 74 highlights

Chapter 4 - Managing Input and Output XON/XOFF, Data to host: XON/XOFF, Data from host: Always Enable Enable or Disable 2 Use the SETSTDIO statement to set "uart2:" or "uart3:" as the standard I/O channel. Output to the Standard OUT Channel The standard OUT channel returns the printer responses to instructions received from the host. For simplicity, the same device is usually selected for both standard IN and OUT channels. For every instruction received on the standard IN channel, the printer returns "Ok" or an error message (such as "Feature not implemented" or "Syntax Error") on the standard OUT channel. If the standard OUT channel is connected to the host computer, the message appears onscreen. Use VERBOFF/VERBON statements to turn the verbosity off or on. The verbosity level can be selected by SYSVAR(18), and the type of error message can be selected by SYSVAR(19). These Fingerprint commands return data only on the standard OUT channel: • PRINT • PRINTONE • DEVICES • FILES • FONTS • IMAGES • LIST Printing Expressions With PRINT PRINT prints a line on the standard OUT channel (typically, to the screen of the host). The PRINT statement can be followed by one or more string or numeric expressions. If the PRINT statement contains several expressions, these must be separated by either commas (,) semicolons (;), or plus signs (+). Plus signs are used only between string expressions: • A comma (,) places the following expression at the start of the next tabulating zone (each zone is 10 characters long). Example: PRINT "Price","$10" The printer returns: Price $10 • A semicolon (;) places the following expression immediately adjacent to the preceding expression. Example: 58 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 4 — Managing Input and Output
58
Intermec Fingerprint Developer’s Guide
2
Use the SETSTDIO statement to set “uart2:” or “uart3:” as the standard I/O
channel.
Output to the Standard OUT Channel
The standard OUT channel returns the printer responses to instructions received
from the host. For simplicity, the same device is usually selected for both standard
IN and OUT channels.
For every instruction received on the standard IN channel, the printer returns “Ok”
or an error message (such as “Feature not implemented” or “Syntax Error”) on the
standard OUT channel. If the standard OUT channel is connected to the host
computer, the message appears onscreen.
Use VERBOFF/VERBON statements to turn the verbosity off or on. The verbosity
level can be selected by SYSVAR(18), and the type of error message can be selected by
SYSVAR(19).
These Fingerprint commands return data only on the standard OUT channel:
PRINT
PRINTONE
DEVICES
FILES
FONTS
IMAGES
LIST
Printing Expressions With PRINT
PRINT prints a line on the standard OUT channel (typically, to the screen of the
host). The PRINT statement can be followed by one or more string or numeric
expressions.
If the PRINT statement contains several expressions, these must be separated by
either commas (,) semicolons (;), or plus signs (+). Plus signs are used only between
string expressions:
A comma (,) places the following expression at the start of the next tabulating
zone (each zone is 10 characters long). Example:
PRINT “Price”,“$10”
The printer returns:
Price
$10
A semicolon (;) places the following expression immediately adjacent to the
preceding expression. Example:
XON/XOFF, Data to host:
Always Enable
XON/XOFF, Data from host:
Enable or Disable