beckhoff TX1200 TwinCAT 2 COMlibBC — 6.5.2 KL6Control5B

Function Blocks The SerStatus and SerCtrl input data correspond to the data linked with the terminal in the TwinCAT System Manager. They are defined in the COMlib KL6inDataBC [ } 12] and KL6outDataBC [ } 12] data structures respectively. The terminal has been successfully initialised after the Start signal when Busy=FALSE and Ready=TRUE. 6.5 Background Communication 6.5.1 KL6ControlBC Interface VAR_INPUT COMin : KL6inDataBC; END_VAR VAR_IN_OUT COMout : KL6outDataBC; TxBuffer : ComBuffer; RxBuffer : ComBuffer; END_VAR Description The KL6ControlBC function block controls the data transfer between the data buffers TxBuffer and RxBuffer internal to the PLC and the hardware.

The KL6inDataBC and KL6outDataBC data structures are globally declared and are located at a fixed address in the memory map. KL6ControlBC is permanently activated, whether it is intended to send or receive data. Also see about this 2 Data structures for the KL6xxx serial bus terminal in 3-byte mode [ } 12] 2 ComBuffer [ } 12] 6.5.2 KL6Control5B TX1200 16 Version: 1.1