SIMATIC RF1060R
Operating Instructions, 05/2017, C79000-G8976-C432-02
11
Programming interface
4
General information
On the Siemens support page "Industry Online Support
https://support.industry.siemens.com/cs/ww/en/view/109741590
)" you will obtain the file
"RF1060R.zip". This contains access functions as a DLL file and a demo application that
illustrates the use of the DLL file.
With the demo application "AccessControlDemo" you can address the RF1060R directly
from your application via the USB interface.. A precompiled DLL file for Windows systems
that provides this function is included in the package.
The DLL makes various functions for communication with the reader available for integration
in your application. The reader has return values and status codes to inform you of the
reader status and execution of the functions.
4.1
The functions of the DLL
4.1.1
brp_open_usb_session
The function opens a connection to the reader via USB and returns a session key that is
required for all functions and continued communication via this connection. If the connection
was successfully established, the value "BRP_OK" is returned
Note that all the following functions can only be executed after you have established a
connection to the reader with the function "brp_open_usb_session". If this is not the case, an
error is signaled back.
Note
Parallel operation not possible
Note that with the application, a connection can only be established to one reader at any one
time. For this reason "brp_open_session" may only be called up once and before it can be
called again must first be closed by the function "brp_close_session".
After a "brp_open_session" the parameter "Handle" must always be = "0". If the parameter
≠
"0", there is either an error or the function "brp_open_session" was called up several times in
succession.