Intermec IF2 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 83
Example 4, WROK<CRLF>, OK><CRLF>, WRITE STRING10
View all Intermec IF2 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 83 highlights
Chapter 4 - BRI Commands This WRITE command with a TAGID parameter in the WHERE clause and the specified [WRITE FIELD] parameter writes the text string HELLO starting at tag memory address 10 to the tag whose tag identifier matches that specified in the command. When the tag is found and written correctly, the BRI returns the status of the WRITE command terminated by a . When all tags are found and successfully written, the BRI returns WROKOK>. If the tag was not found, the BRI returns NOTAGOK>. Here is an example of a successful response to this WRITE command: WROK OK> If you want to write to any tag that has a tag ID starting with H123456, you can use the following command: WRITE STRING(18,5)="HELLO" WHERE TAGID=H123456?????????? WROK OK> For an EPCglobal Gen 2 tag the proper valid command, you can use the following command: WRITE STRING(10,4)="TEST" WHERE TAGID=H12345678 WROK OK> Example 4: WRITE STRING(10,4)="GOOD" WHERE STRING(10,3)="BAD" This WRITE command with a and a [DATA FIELD] parameter looks for tags with data on a tag starting at address 10 through address 12 that matches 3 characters of the string BAD. The BRI writes the data GOOD starting at address 10 through address 13. The BRI returns WROKOK> for each successfully written tag. If an error occurs during the WRITE command, the BRI returns WRERR in the field that failed to write. If no tags are seen matching the data condition, the BRI returns NOTAGOK>. Here is an example successful response to this WRITE command: WROK OK> Example 5: WRITE STRING(10,4)="GOOD",STRING(14,2)="OK" This WRITE command with two [WRITE FIELD] parameters writes two strings to all tags. After writing the data GOOD starting at address 10 and OK starting at address 40, the BRI returns the status of the WRITE command when the last write has completed. The BRI returns WRERR if any of the data was not successfully written or with WROK if the write was successful. If no tags are seen matching the data condition, the BRI returns NOTAGOK>. Basic Reader Interface Programmer Reference Manual 71