FB_BX_COM_64
This function block connects ModbusRTU.lib or ComLib.lib with the serial interface of the BX Controller. It emulates a PC interface. Data output is not via a PC interface, but via one of the two serial interfaces of the BX (COM1 or COM2).

VAR_INPUT
pstrEmo_IN :POINTER TO BYTE;
pstrEmo_OUT :POINTER TO BYTE;
ComConfig :ST_COMConfig;
Legend
pstrEmo_IN: Pointer to ModbusPCComInData
pstrEmo_OUT: Pointer to ModbusPCComInData
ComConfig: Parameterization of the COM interface
Download sample program in ST for linking ModbusRTU and BX: (sample file)
Download sample program in ST for linking ModbusRTU version 2 and BX: (sample file)
The sample requires the ModbusRTU library!