Intermec IV7 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 97
Understanding [READ FIELD] and [WRITE FIELD] Parameters, [READ FIELD] Examples
View all Intermec IV7 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 97 highlights
Chapter 4 - BRI Commands Understanding [READ FIELD] and [WRITE FIELD] Parameters Error checking occurs when a command is executed. If the syntax of the parameter is invalid, an error is reported. If the error occurs during the execution of a command, the appropriate response is returned from the BRI. When reading or writing data from or to a tag, the entire address space of the tag is available. For example, suppose a [READ FIELD] parameter was specified as INT(126,4) and the maximum tag memory address was 127. When the BRI executes this command, it returns RDERR because this [READ FIELD] parameter is asking to read four memory locations starting at address 126 (trying to read locations 126, 127, 128, and 129). This would try to read data two tag memory locations past the end of tag memory. [READ FIELD] Examples To read a STRING value 15 characters long at address 30: READ STRING(30,15) To read a HEX value eight characters long at address 100: READ HEX(100,8) To read a four-byte INT value on the tag at address 18: READ INT(18,4) To read a STRING value of five characters, a HEX value of seven characters, an INT value four-bytes long, and an INT value located at addresses 20, 25, 32, and 36 respectively: READ STRING(20,5),HEX(25,7),INT(32,4),INT(36,1) [WRITE FIELD] Examples Use this command to write a STRING value that is eleven characters long to address 18 with the data HELLO WORLD: WRITE STRING(18,11)="HELLO WORLD" Use this command to write a four-byte INT value to address 23 with data 1,234,567: WRITE INT(23,4)=1234567 Use this command to write three one-byte INT values and two 2-byte INT values to addresses 20, 30, 40, 50, and 52 with data the A, 10, 20, 600 and 2000 hexadecimal, respectively: WRITE NT(20,1)='A',INT(30)=10,INT(40,1)=20,INT(50,2)=600, INT(52,2)=H2000 Basic Reader Interface Programmer Reference Manual 85