Creating A Custom Application - Siemens SIMATIC RF1000 Operating Instructions Manual

Hide thumbs Also See for SIMATIC RF1000:
Table of Contents

Advertisement

The demo application

7.2 Creating a custom application

4. To clear the display area, click on the "Clear" button.
5. Click the "Stop" button to disconnect the reader.
7.2
Creating a custom application
You can create custom applications for operation via USB or RS232 interface. The creation
of some sample applications is described below.
Requirement
● The reader is connected.
● When programming via the USB interface:
You have extracted the "RF1000R.exe" file onto your PC (Windows).
You require Microsoft Visual Studio (Express) on your PC to edit the source code.
Note that the demo application is capable of running without Microsoft Visual Studio
(Express) being installed. You can view and edit the source code using a text editor.
Create your own "Read serial number" application
Follow the steps below to create your own application for reading the serial number:
1. Establish the connection to the reader ("brp_open_usb_session" or
"brp_open_serial_session").
2. Check cyclically whether a transponder is located in the read range of the reader
("vhl_select").
There is transponder in the read range:
– The transponder is recognized.
– Read out the serial number ("vhl_get_snr").
– The application reports that the transponder with the serial number "x" has been
The transponder is no longer within the read range:
– The application signals that the transponder with the serial number "x" is no longer
3. Terminate the connection to the reader ("brp_close_session").
The source code of the demo application can serve as an example for your own application.
60
detected.
recognized.
Operating Instructions, 02/2020, C79000-G8976-C432-07
SIMATIC RF1000

Advertisement

Table of Contents
loading

Table of Contents