COM port - overview

The library includes function blocks that enable data exchange between the BXxxxx Bus Controller and a remote partner. The maximum COM buffer is 512 bytes for both directions.

Function blocks

Name

Description

FB_ComPortOpen

Opens a serial connection to a partner.

FB_ComPortClose

Closes a serial connection to a partner.

Functions

Name

Description

F_ComPortRead

Reading data from the COM buffer

F_ComPortWrite

Writing data into the COM buffer

Supported baud rates

Baud rate [baud]

COM 1

COM 2

300

NO

YES

600

NO

YES

1200

NO

YES

2400

NO

YES

4800

NO

YES

9600

YES

YES

19200

YES

YES

38400

YES

YES

57600

YES

YES

115200

NO

YES

 

Further helpful function blocks can be found in TcComPortBX.lbx.