The demo application
7.2 Creating a custom application
SIMATIC RF1000
60
Operating Instructions, 02/2020, C79000-G8976-C432-07
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
detected.
The transponder is no longer within the read range:
–
The application signals that the transponder with the serial number "x" is no longer
recognized.
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.
Содержание SIMATIC RF1000 Series
Страница 14: ...Installation SIMATIC RF1000 14 Operating Instructions 02 2020 C79000 G8976 C432 07 ...
Страница 18: ...Connecting SIMATIC RF1000 18 Operating Instructions 02 2020 C79000 G8976 C432 07 ...
Страница 68: ...Technical specifications SIMATIC RF1000 68 Operating Instructions 02 2020 C79000 G8976 C432 07 ...
Страница 70: ...Dimension drawing SIMATIC RF1000 70 Operating Instructions 02 2020 C79000 G8976 C432 07 ...
Страница 76: ...Appendix A 2 Ordering data SIMATIC RF1000 76 Operating Instructions 02 2020 C79000 G8976 C432 07 ...