Siemens SIMATIC RF310M Function Manual page 13

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

Advertisement

Another look at our code shows that only four lines of code are needed to start up the reader
service. The code for starting the RFID Reader Interface:
private void menuReaderStart_Click(object sender, EventArgs e)
{
try
{
}
catch (RfReaderApiException rfidException)
{
}
}
Stopping a running reader only requires a single call that terminates the connection to the
underlying reader service and shuts it down; The code for stopping the RFID Reader
Interface:
private void menuReaderStop_Click(object sender, EventArgs e)
{
try
{
}
catch (RfReaderApiException rfidException)
{
}
}
Mobile Reader
Function Manual, 02/2009, J31069-D0198-U001-A1-0076
// We want to create and start an instance of the RFID
// reader interface for a handheld device with a default name.
RfReaderInitData initData = new RfReaderInitData();
// Initialize the appropriate reader type (RF610M, RF310M)
// and reader mode
initData.Type = „RF610M";
initData.Mode = RfReaderInitData.ReaderMode.Standalone;
// With RfReaderApi.Current we address the current
// RFID reader interface instance
// or initiate the creation of a new instance.
// StartReader connects to an existing reader service
// or creates a new reader service.
RfReaderApi.Current.StartReader(initData);
// Something went wrong while starting the reader.
// More information is available by inspecting the
// RfReaderApiException's members ResultCode, Error,
// Cause and Description.
...
// Use the current reader interface instance and tell
// it to shut down.
RfReaderApi.Current.StopReader();
// Something went wrong while stopping the reader.
// More information is available by inspecting the
// RfReaderApiException's members ResultCode, Error,
// Cause and Description.
...
RFID Reader Interface User's Guide
2.2 How Do I Use the Reader Interface?
13

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic rf610m

Table of Contents