EasyManua.ls Logo

Siemens SIMATIC RF1040R - Brp_Set_Bufsize

Siemens SIMATIC RF1040R
68 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Programming
6.2 Programming via USB interface
SIMATIC RF1000
Operating Instructions, 11/2019, C79000-G8976-C432-06
23
Table 6- 1 Description of the parameters
Parameter
Description
brp_open_usb_session
The parameter opens a connection to the reader via the USB interface.
Handle Session key initialized by this function. The session key is valid as soon as
"BRP_OK" is returned.
ProductID
0x00
Return value
• BRP_OK
• BRP_ERR_BUSY
• BRP_ERR_GENERAL_IO
• BRP_ERR_BUFFER_OVERFLOW
• BRP_ERR_NO_MORE_HANDLES
• BRP_ERR_INSUFFICIENT_MEM
You will find more information on return values in the section "Return val-
ues (Page 35)".
6.2.1.2 brp_set_bufsize
This function allows you to define the buffer size for the job and response telegrams. Note
that the buffer size is automatically set to the default value of 128 bytes after the restart.
Function call
int
brp_set_bufsize(
int * Handle,
int TotalBufsize,
int SendBufsize,
int RecvBufsize
);
Table 6- 2 Description of the parameters
Parameter
Description
brp_open_usb_session
The parameter opens a connection to the reader via the USB interface.
Handle
The session key returned by the function "brp_open_usb_session".
TotalBufsize Specifying the maximum size of the job and response telegram
• 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)
SendBufsize Specifying the maximum size of the request telegram
• 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)
Siemens SIMATIC RF1040R - Brp_Set_Bufsize