Intermec IV7 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 74

SET

Page 74 highlights

Chapter 4 - BRI Commands SET After the RESET command is executed, an event is reported to all current BRI sessions: EVT:RESET For help, see "Understanding EVENT Messages" on page 110. Purpose: This command lets you create both command macros and parameter macros, which are defined in "Creating and Using BRI Macros" on page 113. You can also use SET to list all macros stored in the non-volatile memory of the reader and to delete macros. Syntax: Parameters: SET ="[BRI COMMAND],[READ FIELD]or[WRITE FIELD], [LITERAL],[(ATTRIBUTE NAME=VALUE)...]TAGID,ANTENNA, TIMESTAMP,WHERE " = This parameter can be any alphanumeric string. There is no limit on the length of the parameter, and it can be as short as one character. The first character must be a letter (A-Z or a-z). The first character cannot be a number (0-9). You cannot use BRI reserved keywords as macro names; for a complete list of reserved words, see "Reserved Keywords" on page 17. If you do not include anything after the parameter, the SET command displays all macros stored in the non-volatile memory of the reader. If you do not specify anything after the equals sign, the SET command deletes the macro specified in the parameter. "[BRI COMMAND],[READ FIELD]or[WRITE FIELD], [LITERAL],[(ATTRIBUTE NAME=VALUE)...]TAGID,ANTENNA, TIMESTAMP,WHERE " = Everything you specify after the equals sign must be enclosed in one set of double quotes. Everything inside the double quotes is saved as the contents of the macro. If the macro contains [LITERAL] parameters, which must also be enclosed in double quotes, you must use the \ character to escape the embedded double-quotes around each [LITERAL] parameter. To display all macros in memory, use the SET command with no parameters: Examples: SET OK> These examples demonstrate how to use the SET command. Example 1: The example below illustrates how to store a WHERE clause and TAGID parameter in a macro named MYREADMACRO. SET MYREADMACRO="WHERE TAGID=H1234567890ABCDEF" OK> To execute this macro definition with a READ command, use the command line below: READ $MYREADMACRO 62 Basic Reader Interface Programmer Reference Manual

  • 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

Chapter 4 — BRI Commands
62
Basic Reader Interface Programmer Reference Manual
After the RESET command is executed, an event is reported to all current BRI
sessions:
EVT:RESET<CRLF>
For help, see
“Understanding EVENT Messages” on page 110
.
SET
Purpose:
This command lets you create both command macros and parameter macros, which
are defined in
“Creating and Using BRI Macros” on page 113
. You can also use
SET to list all macros stored in the non-volatile memory of the reader and to delete
macros.
Syntax:
SET <NAME>=“[BRI COMMAND],[READ FIELD]or[WRITE FIELD],
[LITERAL],[(ATTRIBUTE NAME=VALUE)...]TAGID,ANTENNA,
TIMESTAMP,WHERE <DATA CONDITION>”
Parameters:
<NAME> = This parameter can be any alphanumeric string. There is no limit on the
length of the <NAME> parameter, and it can be as short as one character. The first
character must be a letter (A-Z or a-z). The first character cannot be a number (0-9).
You cannot use BRI reserved keywords as macro names; for a complete list of
reserved words, see
“Reserved Keywords” on page 17
.
If you do not include anything after the <NAME> parameter, the SET command
displays all macros stored in the non-volatile memory of the reader.
If you do not specify anything after the equals sign, the SET command deletes the
macro specified in the <NAME> parameter.
“[BRI COMMAND],[READ FIELD]or[WRITE FIELD],
[LITERAL],[(ATTRIBUTE NAME=VALUE)...]TAGID,ANTENNA,
TIMESTAMP,WHERE <DATA CONDITION>”
= Everything you specify after the equals
sign must be enclosed in one set of double quotes. Everything inside the double
quotes is saved as the contents of the macro. If the macro contains [LITERAL]
parameters, which must also be enclosed in double quotes, you must use the \
character to escape the embedded double-quotes around each [LITERAL]
parameter.
To display all macros in memory, use the SET command with no parameters:
SET<CRLF>
<macro><CRLF>
<macro><CRLF>
OK><CRLF>
Examples:
These examples demonstrate how to use the SET command.
Example 1:
The example below illustrates how to store a WHERE clause and TAGID parameter
in a macro named MYREADMACRO.
SET MYREADMACRO=“WHERE TAGID=H1234567890ABCDEF”<CRLF>
OK><CRLF>
To execute this macro definition with a READ command, use the command line
below:
READ $MYREADMACRO<CRLF>