Intermec IP2L Basic Reader Interface Programmer's Reference Manual (BRI versio - Page 81

WRITE, FLEXQUERY on Data Field, Definitions on Understanding [READ FIELD]

Page 81 highlights

Chapter 4 - BRI Commands WRITE Purpose: Command Shortcut: Syntax: Parameters: Errors: This command stores user-specified information on the tag in the specified locations. There are no limitations on ISO 18000-6B tags for the WRITE command. For EPCglobal Class 1 Gen 2 tags, there is a limitation on the addresses and lengths of data that can be written. EPCglobal Class 1 Gen 2 tags support writing only to words or 16-bit values. As a result, you must write even-length values to even-byte addresses. This limitation is illustrated in the examples below. The WRITE command may return NOTAG if no tags are present in the field of the reader and the NOTAGRPT attribute is enabled. W or WR WRITE [flex_query_selector] [WRITE_MODIFIER] [[WRITE MODIFIER]DATA FIELD]* [TAGTYPE=] [WHERE] [PASSWORD=] [flex_query_selector] = This parameter modifies the command for certain types of EPCC1G2 tags. For details, see "FLEXQUERY" on page 47. [data_field] = This parameter can be any data type defined in "Data Field Definitions" on page 22. For more details, see "Understanding [READ FIELD] and [WRITE FIELD] Parameters" on page 85. At least one data field is required for a write command to be executed. Data fields must include the value to be written. To specify a value to be written, the data field should be followed immediately by an equals sign. See the examples section for examples. [WRITE_MODIFIER] = This parameter can be used to select the type of write operation. This is for EPCC1G2 tags only. Valid write modifiers are BLOCK and STANDARD. BLOCK tells the reader to use EPCC1G2 block-write commands to write the data to the tag. STANDARD tells the reader to use standard EPCC1G2 write commands to write the data to the tag. If no modifier is specified then STANDARD is used. If a data field is specified without a modifier, the modifier from the preceding data field is used. [TAGTYPE] = This parameter represents the type of tag that is written. This is a shortcut provided to eliminate the need for changing the TAGTYPE attribute for a single write command. [WHERE] = This parameter can be any expression defined in "Data Conditions" on page 28. [PASSWORD] = This specific keyword is used to specify a password to access the data fields that are locked. These error codes are reported by the WRITE command. Error 1: WRERR OK> This error indicates that the data being written to the tag failed. Basic Reader Interface Programmer Reference Manual 69

  • 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
69
WRITE
Purpose:
This command stores user-specified information on the tag in the specified
locations.
There are no limitations on ISO 18000-6B tags for the WRITE command.
For EPCglobal Class 1 Gen 2 tags, there is a limitation on the addresses and lengths
of data that can be written. EPCglobal Class 1 Gen 2 tags support writing only to
words or 16-bit values. As a result, you must write even-length values to even-byte
addresses. This limitation is illustrated in the examples below.
The WRITE command may return NOTAG if no tags are present in the field of the
reader and the NOTAGRPT attribute is enabled.
Command Shortcut:
W or WR
Syntax:
WRITE [flex_query_selector] [WRITE_MODIFIER]<data_field> [[WRITE
MODIFIER]DATA FIELD]* [TAGTYPE=<tagtype_list>]
[WHERE<data_condition>] [PASSWORD=<access_password>]
Parameters:
[flex_query_selector] = This parameter modifies the command for certain types of
EPCC1G2 tags. For details, see
“FLEXQUERY” on page 47
.
[data_field] = This parameter can be any data type defined in
“Data Field
Definitions” on page 22
. For more details, see
“Understanding [READ FIELD]
and [WRITE FIELD] Parameters” on page 85
.
At least one data field is required for a write command to be executed. Data fields
must include the value to be written.
To specify a value to be written, the data field should be followed immediately by an
equals sign. See the examples section for examples.
[WRITE_MODIFIER] = This parameter can be used to select the type of write
operation. This is for EPCC1G2 tags only. Valid write modifiers are BLOCK and
STANDARD. BLOCK tells the reader to use EPCC1G2 block-write commands to
write the data to the tag. STANDARD tells the reader to use standard EPCC1G2
write commands to write the data to the tag. If no modifier is specified then
STANDARD is used. If a data field is specified without a modifier, the modifier
from the preceding data field is used.
[TAGTYPE] = This parameter represents the type of tag that is written. This is a
shortcut provided to eliminate the need for changing the TAGTYPE attribute for a
single write command.
[WHERE] = This parameter can be any expression defined in
“Data Conditions”
on page 28
.
[PASSWORD] = This specific keyword is used to specify a password to access the
data fields that are locked.
Errors:
These error codes are reported by the WRITE command.
Error 1:
WRERR<CRLF>
OK><CRLF>
This error indicates that the data being written to the tag failed.