Intermec PM4i Fingerprint Developer's Guide (old) - Page 23

About Functions, Function Examples

Page 23 highlights

Chapter 2 - Understanding Fingerprint Syntax Note: By default, if you enter a carriage return on the host, the printer echoes back a Carriage Return + Line Feed (ASCII 13 + 10 decimal). With the setup option "New Line", you can restrict the printer to only echo back either a Carriage Return (ASCII 13 decimal) or a Line Feed (ASCII 10 decimal). If you choose to enter the line numbers manually, start with number 10 and increment line numbers up by 10s (10, 20, 30, 40, etc.). That makes it easier to insert additional lines (for example 11,12,13...etc.), should the need arise. After typing the line number, use a space character to separate it from the keyword and statement that follows, as in this example: 100 FONT "Swiss 721 BT" Several Fingerprint commands may be issued on the same line, provided they are separated by colons (:) as in this example: 100 FONT "Swiss 721 BT":PRTXT "HELLO" Note: In Immediate Mode and in Direct Protocol, you can send a complete set of instructions as a single line as in this example: PP100,250:FT"Swiss 721 BT":PT"Text 1":PF ? It is not possible to alter a line after it has been transmitted to the printer. If you want to change such a line, you must send the whole line again using the same line number, or delete it using a DELETE statement. About Functions A function is a statement which returns a value. A function consists of a keyword combined with values, flags, and/or operators enclosed by parentheses. The next table lists function examples. Function Examples Keyword and Function CHR$(65) TIME$("F") ABS(20*5) IF(PRSTAT AND 1)... Description Return the readable character for ASCII code 65. Return the current time based on the currently specified format. Return the absolute value of 20*5. If the current position of the insertion point +1... A function can be entered inside a statement or on a line containing other instructions. They are often used in connection with conditional statements, as in this example: 320 IF (PRSTAT AND 1) THEN GOTO 1000 Blank spaces may be inserted to separate the function from other instructions and to separate the keyword from the rest of the statement. Intermec Fingerprint Developer's Guide 7

  • 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 2 — Understanding Fingerprint Syntax
Intermec Fingerprint Developer’s Guide
7
If you choose to enter the line numbers manually, start with number 10 and
increment line numbers up by 10s (10, 20, 30, 40, etc.). That makes it easier to insert
additional lines (for example 11,12,13...etc.), should the need arise.
After typing the line number, use a space character to separate it from the keyword
and statement that follows, as in this example:
100 FONT “Swiss 721 BT”
Several Fingerprint commands may be issued on the same line, provided they are
separated by colons (:) as in this example:
100 FONT “Swiss 721 BT”:PRTXT “HELLO”
It is not possible to alter a line after it has been transmitted to the printer. If you
want to change such a line, you must send the whole line again using the same line
number, or delete it using a DELETE statement.
About Functions
A function is a statement which returns a value. A function consists of a keyword
combined with values, flags, and/or operators enclosed by parentheses. The next
table lists function examples.
A function can be entered inside a statement or on a line containing other
instructions. They are often used in connection with conditional statements, as in
this example:
320 IF (PRSTAT AND 1) THEN GOTO 1000
Blank spaces may be inserted to separate the function from other instructions and
to separate the keyword from the rest of the statement.
Note:
By default, if you enter a carriage return on the host, the printer echoes back a
Carriage Return + Line Feed (ASCII 13 + 10 decimal). With the setup option “New
Line”, you can restrict the printer to only echo back either a Carriage Return (ASCII
13 decimal) or a Line Feed (ASCII 10 decimal).
Note:
In Immediate Mode and in Direct Protocol, you can send a complete
set of instructions as a single line as in this example:
PP100,250:FT“Swiss 721 BT”:PT“Text 1”:PF ?
Function Examples
Keyword and Function
Description
CHR$(65)
Return the readable character for ASCII code 65.
TIME$(“F”)
Return the current time based on the currently
specified format.
ABS(20*5)
Return the absolute value of 20*5.
IF(PRSTAT AND 1)...
If the current position of the insertion point +1...