Create Your Own Pc Application Via The Usb Interface - Siemens SIMATIC RF1000 Series Operating Instructions Manual

Simatic ident
Hide thumbs Also See for SIMATIC RF1000 Series:
Table of Contents

Advertisement

The demo application

7.2 Create your own PC application via the USB interface

7.2
Create your own PC application via the USB interface
Requirement
● You have copied the matching DLL files ("BrpDriver_x64" and "BrpDriver_x86") and the
demo application to your PC.
● The reader is connected.
Note that the demo application is capable of running without Microsoft Visual Studio
(Express) being installed. You can view the source code with a text editor. To edit the source
code you require Microsoft Visual Studio (Express) on your PC.
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").
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").
– Signal the application that the transponder with the serial number "x" was recognized.
– Check cyclically whether the transponder is still in the read range.
The transponder is no longer within the read range:
– Signal the application 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.
Create your own "Autonomous reading" application
Requirements: A corresponding configuration is stored in the reader.
Follow the steps below to create your own application for autonomous reading of the
transponder data:
1. Establish the connection to the reader ("brp_open_usb_session").
2. Activate Autoread mode ("Autoread_SetMode"; "param" = 0x01 or 0x02).
– The transponder is recognized automatically.
– Read the transponder data ("Autoread_GetMessage").
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.
48
recognized.
Operating Instructions, 02/2019, C79000-G8976-C432-04
SIMATIC RF1000

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic rf1060rSimatic rf1070r

Table of Contents