Intermec IV7 Basic Reader Interface Programmer's Reference Manual (BRI version - Page 83

Example 4, WROK<CRLF&gt, OK><CRLF&gt, WRITE STRING10

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

  • 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
71
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 <CRLF>. When all tags are found and
successfully written, the BRI returns WROK<CRLF>OK><CRLF>. If the tag was not
found, the BRI returns NOTAG<CRLF>OK><CRLF>. Here is an example of a
successful response to this WRITE command:
WROK<CRLF>
OK><CRLF>
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<CRLF>
OK><CRLF>
For an EPCglobal Gen 2 tag the proper valid command, you can use the following
command:
WRITE STRING(10,4)=“TEST” WHERE TAGID=H12345678<CRLF>
WROK<CRLF>
OK><CRLF>
Example 4:
WRITE STRING(10,4)=”GOOD” WHERE STRING(10,3)=“BAD”
This WRITE command with a <DATA CONDITION> 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 WROK<CRLF>OK><CRLF> 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
NOTAG<CRLF>OK><CRLF>. Here is an example successful response to this
WRITE command:
WROK<CRLF>
OK><CRLF>
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 NOTAG<CRLF>OK><CRLF>.