hit counter script

Brp_Open_Serial_Session - 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.2

brp_open_serial_session

The function opens a connection to the reader via the RS232 interface 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, when operating via the RS232 interface, can only be
performed once a connection to the reader has been established with the
"brp_open_serial_session" function. If this is not the case, an error is signaled back.
Note
Parallel operation
Note that you can operate several RF1040R/RF1070R readers in parallel via the RS232
interface or with the help of a COM port emulator.
Function call
int
brp_open_serial_session(
int * Handle,
int com_port,
ser_baudrate baudrate,
ser_parity parity
);
Table 6- 2
Parameter
brp_open_serial_session
24
Description of the parameters
Description
This function call opens a connection to the reader via the RS232
interface.
Handle
Session key initialized by this function. The session key is valid as
soon as "BRP_OK" is returned.
com_port
Number of the COM port
Possible values:
0x00: COM1
0x01: COM2
...
Operating Instructions, 02/2020, C79000-G8976-C432-07
SIMATIC RF1000

Advertisement

Table of Contents
loading

Table of Contents