FB_BX_COM_5
This function block connects ModbusRTU.lb6, ModbusRTU.lib or ComLib.lb6 with the serial interface of the BX Controller. It emulates a KL60x1 - data output is not via a Bus Terminal, but via one of the two serial interfaces of the BX.

VAR_INPUT
pstrEmo_IN :POINTER TO BYTE;
pstrEmo_OUT :POINTER TO BYTE;
ComConfig :ST_COMConfig;
Legend
pstrEmo_IN: Pointer to KL6inData5B
pstrEmo_OUT: Pointer to KL6outData5B
ComConfig: Parameterization of the COM interface
Download sample program in ST for linking COMLib and BX: (sample file)