Brp_Set_Checksum - 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.3

brp_set_checksum

You start a checksum algorithm with this function. The checksum allows you to check/protect
the communication via the RS232 interface. This check is performed automatically when
communicating via the USB interface.
Function call
int
brp_set_checksum(
int Handle,
int checksum
);
Table 6- 3
Parameter
brp_open_usb_session
Return value
26
Description of the parameters
Description
Function call to configure the checksum algorithm
Handle
The session key returned by the "brp_open_usb_session" or
"brp_open_serial_session" function.
checksum
Definition of the checksum procedure:
0x00: BRP_CECKSUM_NONE (Default)
0x01: BRP_CECKSUM_BCC8
0x02: BRP_CECKSUM_CRC16
0x03: BRP_CECKSUM_BCC16
BRP_OK
BRP_ERR_BUSY
You will find more information on return values in the section "Return val-
ues (Page 40)".
Operating Instructions, 02/2020, C79000-G8976-C432-07
SIMATIC RF1000

Advertisement

Table of Contents
loading

Table of Contents