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

About Functions, Function Examples

Page 19 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 type 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.) later. 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 "Univers" To send multiple Fingerprint commands on the same line, add a colon (:) between each command: 100 FONT "Univers":PRTXT "HELLO" Note: In Immediate Mode and in Direct Protocol, you can send a complete set of instructions on one line: PP100,250:FT"Univers":PT"Text 1":PF ? You cannot change a line after you send it to the printer. However, you can send a new line that uses the same line number to replace the existing line, or delete the line 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... You can insert a function 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 You can add spaces to separate a function from other instructions on the same line, or to separate a keyword from the rest of the statement. 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

Chapter 2 — Understanding Fingerprint Syntax
Fingerprint Developer’s Guide
7
If you type 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.) later.
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 “Univers”
To send multiple Fingerprint commands on the same line, add a colon (:) between
each command:
100 FONT “Univers”:PRTXT “HELLO”
You cannot change a line after you send it to the printer. However, you can send a
new line that uses the same line number to replace the existing line, or delete the line
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.
You can insert a function 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
You can add spaces to separate a function from other instructions on the same line,
or to separate a 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 on one line:
PP100,250:FT“Univers”: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...