Intermec IV7 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 70
Example 3, NOTAGRPT
View all Intermec IV7 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 70 highlights
Chapter 4 - BRI Commands • If the NOTAGRPT attribute is disabled, the BRI returns OK> instead of NOTAGOK>. For help, see "NOTAGRPT" on page 93. If you want to match any tag that contains a tag ID starting with H123456, you can use the following command: READ TAGID WHERE TAGID=H123456?????????? The ?? wildcard character pair matches any character in that position. The question mark pairs must represent a two-character hex value: • TAGID=123??678 is not valid and causes an ERR response. • TAGID=12??5678 is valid. Note: Wildcard characters do not work with EPC Global Gen 2 tags. Also, if the TAGID being matched begins from the start of the TAGID information, you can leave off the question mark pairs. The following parameter is identical to the one above: READ TAGID WHERE TAGID=H123456 The question mark pairs are implied by the command line parser since a TAGID data type requires up to 16 characters and only six are specified. If fewer than the required number of characters are supplied, implied question mark pairs are inserted to fill the remainder of the field data. Example 3: READ TAGID WHERE STRING(18,5)="HELLO" This READ command with a parameter looks for data on the tag starting at tag memory address 18 through address 22 that matches the string HELLO. The command matches the text between the double quotes. The BRI returns the tag ID of each tag that contains this data string. Each tag that is found is followed by a sequence. When all tags are found matching the parameter, the BRI returns the tag identifier followed by OK>. If no tags are seen matching this data, the BRI returns NOTAGOK>. For example: H1234567890ABCDEF OK> Example 4: READ INT(18,2) This READ command with a [READ FIELD] parameter finds all tags and returns the integer value stored at tag memory addresses 18 and 19 on each tag found. The data is returned as a decimal integer value followed by a sequence. No tag ID information is returned in this case, only the data read from the specified address on each of the tags. When all tags are found and the data is returned, the BRI returns OK>. If no tags are seen, the BRI returns NOTAGOK>. If the [READ FIELD] parameter fails, the BRI returns RDERROK> for the result. For example: 1234 OK> 58 Basic Reader Interface Programmer Reference Manual