Know More About The Tags - Siemens SIMATIC RF310M Function Manual

Rfid systems mobile reader
Hide thumbs Also See for SIMATIC RF310M:
Table of Contents

Advertisement

2.2.6

Know More about the Tags ...

You can learn more about tags in the same way that you can access additional data on tags
or write data to tags.
Some additional data must be specified. For our test scenario the most flexible way to
provide these data is to enter them with the user interface as shown below:
Figure 2-5
Once you have acquired the address of the data, accessing the data is easy. The code for
acquiring data is given in the Figure below.
Note how the specified data is returned as an array of bytes with the requested length. Be
sure to check for a null reference which is returned if no data could be read.
When you request additional data from EPC Gen2 tags, the tag to be addressed must
always be specified by giving its tag ID. Only if a EPC Gen2 tag with a matching ID is
detected will the operation succeed.
Reading additional tag data:
byte[] buffer = null;
try
{
}
catch (RfReaderApiException rfidException)
{
}
Mobile Reader
Function Manual, 02/2009, J31069-D0198-U001-A1-0076
A dialog for entering the address of the additional tag data to be read
// Code for invoking a dialog and retrieving the data entered
left out for brevity -> check sample code for details
...
// Request all tags that are currently within reach
buffer = RfReaderApi.Current.GetTagMemory(
currentTagID, memoryBank,
startAddress, dataLength,
accessPassword);
...
// Code to show the resulting buffer left out for brevity ->
check sample code for details
// Something went wrong while reading additional data
WriteInformationLine(string.Format("ERROR: {0} - {1}, cause:
{2}, desc: {3}\r\n",
rfidException.ResultCode, rfidException.Error,
rfidException.Cause, rfidException.Description));
RFID Reader Interface User's Guide
2.2 How Do I Use the Reader Interface?
19

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic rf610m

Table of Contents