Table 7-4
Parameter
brp_set_bufsize
Return value
7.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 7-5
Parameter
brp_close_session
Return value
SIMATIC RF1000
Operating Instructions, 05/2023, C79000-G8976-C432-10
Description of the parameters
Description
Function call to configure the buffer size for the request and response tele‐
grams
Handle
The session key returned by the "brp_open_usb_session" or "brp_open_seri‐
al_session" function.
TotalBufsize
Specifying the maximum size of the job and response telegram
•
•
•
SendBufsize
Specifying the maximum size of the request telegram
•
•
•
RecvBufsize
Specifying the maximum size of the response telegram
•
•
•
•
•
You will find more information on return values in the section "Return values
(Page 52)".
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_seri‐
al_session" function.
•
•
You will find more information on return values in the section "Return values
(Page 52)".
7.2 Programming via USB/RS232 interface (using DLL functions)
Default value: 128 bytes (data length 122 bytes)
RF1060R: max. 512 bytes (data length 506 bytes)
RF1040R/RF1070R: max. 1024 bytes (data length 1018 bytes)
Default value: 128 bytes (data length 122 bytes)
RF1060R: max. 512 bytes (data length 506 bytes)
RF1040R/RF1070R: max. 1024 bytes (data length 1018 bytes)
Default value: 128 bytes (data length 122 bytes)
RF1060R: max. 512 bytes (data length 506 bytes)
RF1040R/RF1070R: max. 1024 bytes (data length 1018 bytes)
BRP_OK
BRP_ERR_BUSY
BRP_OK
BRP_ERR_WRONG_HANDLE
Programming
39