Brp_Set_Bufsize - Siemens SIMATIC RF1000 Operating Instructions Manual

Hide thumbs Also See for SIMATIC RF1000:
Table of Contents

Advertisement

6.2.1.4

brp_set_bufsize

This function allows you to define the buffer size for the job and response telegrams. The
maximum permissible buffer size depends on the reader type used. 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- 4
Parameter
brp_set_bufsize
Return value
SIMATIC RF1000
Operating Instructions, 02/2020, C79000-G8976-C432-07
6.2 Programming via USB/RS232 interface (using DLL functions)
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_serial_session" function.
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)
RecvBufsize
Specifying the maximum size of the 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)
BRP_OK
BRP_ERR_BUSY
You will find more information on return values in the section "Return val-
ues (Page 40)".
Programming
27

Advertisement

Table of Contents
loading

Table of Contents