Brp_Close_Session; Syscmd_Reset - Siemens SIMATIC RF1000 Operating Instructions Manual

Hide thumbs Also See for SIMATIC RF1000:
Table of Contents

Advertisement

Programming
6.2 Programming via USB/RS232 interface (using DLL functions)
6.2.1.5

brp_close_session

This function terminates an existing connection to the reader that was previously
established.
Function call
int
brp_close_session(
);
Table 6- 5
Parameter
brp_close_session
Return value
6.2.1.6

syscmd_reset

This function restarts the reader.
Note that you wait for about 3 seconds after the function "syscmd_reset" and then have to
execute the functions "brp_close_session" and "brp_open_usb_session" once again.
Function call
int
syscmd_reset (
);
Table 6- 6
Parameter
syscmd_reset
Return value
28
int Handle
Description of the parameters
Description
This function call terminates a connection.
Handle
The session key returned by the "brp_open_usb_session" or
"brp_open_serial_session" function.
You will find more information on return values in the section "Return values
(Page 40)".
int Handle,
int * Status
Description of the parameters
Description
This function call restarts the reader.
Handle
The session key returned by the "brp_open_usb_session" or
"brp_open_serial_session" function.
Status
OK
You will find more information on return values in the section "Return values
(Page 40)".
BRP_OK
BRP_ERR_WRONG_HANDLE
BRP_OK
Operating Instructions, 02/2020, C79000-G8976-C432-07
SIMATIC RF1000

Advertisement

Table of Contents
loading

Table of Contents