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

Learning Fingerprint Syntax, About Keywords, Statements, and Lines

Page 18 highlights

Chapter 2 - Understanding Fingerprint Syntax Learning Fingerprint Syntax Fingerprint syntax consists of a variety of keywords, parameters, and operators. For specific command syntax, see the Fingerprint Command Reference Manual. About Keywords, Statements, and Lines A Fingerprint command begins with a keyword. Keywords indicate an action, a printer setting to change, or other related information. Keyword Examples Keyword Description BARSET Specifies a bar code. COPY Copies a file. FORMAT DATE$ Specifies the format to be used for dates (such as YYMMDD). GOTO Branches unconditionally to a specified line. STORE IMAGE Sets up parameters for storing an image in printer memory. In some cases, a space character is a required part of the keyword, as in LINEINPUT, where  indicates a required space character. Some keywords can be used in an abbreviated form (for example, PT instead of PRTXT). For more information, see the Fingerprint Command Reference Manual. A statement is an instruction which specifies an operation. It consists of a keyword, usually followed by one or several parameters, flags, or input data, which further define the statement. The next table lists examples of statements. Statement Examples Keyword and Statement Description PRTXT "HELLO" Keyword PRTXT indicates that the following data ("HELLO") is to be placed in a text field. ON BREAK 1 GOSUB 1000 ON BREAK 1 GOSUB indicates that on the first break interrupt instruction, the program must branch to a subroutine at line 1000. FILES "tmp:", A Indicates that all files (A) in the "tmp:" directory should be listed to the printer OUT channel. A line in a Fingerprint program may contain up to 32,767 characters and must always be terminated by a carriage return character (ASCII 13 decimal). In Programming mode, lines are always numbered, although if you allow Fingerprint to number the lines automatically, the numbers are not visible until the program is listed. In Immediate mode or Direct Protocol, numbering is not required. 6 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 2 — Understanding Fingerprint Syntax
6
Fingerprint Developer’s Guide
Learning Fingerprint Syntax
Fingerprint syntax consists of a variety of keywords, parameters, and operators. For
specific command syntax, see the
Fingerprint Command Reference Manual.
About Keywords, Statements, and Lines
A Fingerprint command begins with a keyword. Keywords indicate an action, a
printer setting to change, or other related information.
In some cases, a space character is a required part of the keyword, as in
LINE
INPUT, where
indicates a required space character.
Some keywords can be used in an abbreviated form (for example, PT instead of
PRTXT). For more information, see the
Fingerprint Command Reference Manual.
A statement is an instruction which specifies an operation. It consists of a keyword,
usually followed by one or several parameters, flags, or input data, which further
define the statement. The next table lists examples of statements.
A line in a Fingerprint program may contain up to 32,767 characters and must
always be terminated by a carriage return character (ASCII 13 decimal).
In Programming mode, lines are always numbered, although if you allow
Fingerprint to number the lines automatically, the numbers are not visible until the
program is listed. In Immediate mode or Direct Protocol, numbering is not
required.
Keyword Examples
Keyword
Description
BARSET
Specifies a bar code.
COPY
Copies a file.
FORMAT DATE$
Specifies the format to be used for dates (such as YYMMDD).
GOTO
Branches unconditionally to a specified line.
STORE IMAGE
Sets up parameters for storing an image in printer memory.
Statement Examples
Keyword and Statement
Description
PRTXT “HELLO”
Keyword PRTXT indicates that the following data
(“HELLO”) is to be placed in a text field.
ON BREAK 1 GOSUB 1000
ON BREAK 1 GOSUB indicates that on the first break
interrupt instruction, the program must branch to a
subroutine at line 1000.
FILES “tmp:”, A
Indicates that all files (A) in the “tmp:” directory should
be listed to the printer OUT channel.