Intermec IP2L Basic Reader Interface Programmer's Reference Manual (BRI versio - Page 125
Creating and Using BRI Macros
View all Intermec IP2L manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 125 highlights
Chapter 4 - BRI Commands Response: Command: Response: Command: Response: HABCDEF1111111111 HABCDEF2222222222 HABCDEF3333333333 HABCDEF4444444444 OK> READ STR(18,5) This command reads a string from the tag and finds three tags in the field. "HELLO" "CLOSE" "FIELD" OK> READ "PRICE ", INT(28,2), "QUANTITY ", INT(30,2) This READ command reads two numeric fields from a tag and finds three tags in the field. This command also shows how to make the response more readable using [LITERAL] parameters PRICE and QUANTITY. One tag also returns a read error for the second field. PRICE 89 QUANTITY 100 PRICE 139 QUANTITY 12 PRICE 39 QUANTITY RDERR OK> Creating and Using BRI Macros Macros provide a shorthand method for defining and sending complex BRI commands without sending all of the command line parameters each time the command is used. Macros let you create shorter, more convenient commands. You can send two types of macros: • A command macro contains a BRI command or sequence of BRI commands to be executed. • A parameter macro contains a list of parameters to be used when executing a BRI command. Your macro can contain any BRI commands, command line parameters, and reserved keywords. Macros are stored in the non-volatile memory of the reader. The following sections explain how to create, invoke, list, view, and delete macros. If you prefer looking at command descriptions: • see "SET" on page 62. The SET command lets you create, list, and delete macros. • see "PRINT" on page 52. The PRINT command lets you view the contents of a macro. Basic Reader Interface Programmer Reference Manual 113