Intermec IF2 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 127

Executing a Command With a Parameter Macro, Listing All Macros Stored in Memory, Displaying

Page 127 highlights

Chapter 4 - BRI Commands Executing a Command With a Parameter Macro You execute a command with a parameter macro by typing the command followed by a $ and the macro name. For example, you can execute the READ command using the parameters stored in MYREADPARAMS with this command: READ $MYREADPARAMS Listing All Macros Stored in Memory Macros are stored in the non-volatile memory of the reader. To display a list of all the macros currently stored in memory, use the SET command with no parameters: SET The BRI returns a list like this one: MYREADMACRO=READ TAGID WHERE INT(20,2)=2000 MYREADPARAMS=\"TAG ID:\",HEX(0,8), \"NAME:\",STRING(18,20) WHERE INT(18)=1 AND INT(22) != 100 AND STRING(30)=\"ADDRESS\" OK> Displaying the Contents of a Macro To display the contents of a macro, use the PRINT command as follows: PRINT $ where is the name of the macro. For example, use this command to view the contents of the MYREADMACRO macro: PRINT $MYREADMACRO The data is returned in a format that can be used in a subsequent BRI command. Deleting a Macro To delete a macro from memory, use the SET command with no data after the macro name as follows: SET = where is the name of the macro. For example, to delete MYREADMACRO, use this command: SET MYREADMACRO= Basic Reader Interface Programmer Reference Manual 115

  • 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
Basic Reader Interface Programmer Reference Manual
115
Executing a Command With a Parameter Macro
You execute a command with a parameter macro by typing the command followed
by a
$
and the macro name.
For example, you can execute the READ command using the parameters stored in
MYREADPARAMS with this command:
READ $MYREADPARAMS
Listing All Macros Stored in Memory
Macros are stored in the non-volatile memory of the reader. To display a list of all
the macros currently stored in memory, use the SET command with no parameters:
SET<CRLF>
The BRI returns a list like this one:
MYREADMACRO=READ TAGID WHERE INT(20,2)=2000<CRLF>
MYREADPARAMS=\“TAG ID:\”,HEX(0,8), \“NAME:\”,STRING(18,20) WHERE
INT(18)=1 AND INT(22) != 100 AND STRING(30)=\”ADDRESS\”<CRLF>
OK><CRLF>
Displaying the Contents of a Macro
To display the contents of a macro, use the PRINT command as follows:
PRINT $<NAME><CRLF>
where <NAME> is the name of the macro.
For example, use this command to view the contents of the MYREADMACRO
macro:
PRINT $MYREADMACRO
The data is returned in a format that can be used in a subsequent BRI command.
Deleting a Macro
To delete a macro from memory, use the SET command with no data after the
macro name as follows:
SET <NAME>=<CRLF>
where <NAME> is the name of the macro.
For example, to delete MYREADMACRO, use this command:
SET MYREADMACRO=<CRLF>