beckhoff TX1200 TwinCAT 2 COMlibBC — 6.4 KL6Init

Function Blocks Description SendByte sends a single character to the interface corresponding to the input variable TxBuffer . For as long as Busy =TRUE, the transmission is not completed. The character was successfully sent when Busy =FALSE and Error=0. If the send data buffer can still accept data, more than one character can be sent in a single PLC cycle. This is, however, only worthwhile if the buffered characters will be transmitted to the hard- ware by a faster communication task. 6.3 ClearComBuffer Interface VAR_IN_OUT Buffer : ComBuffer; END_VAR ComBuffer [ } 12] Description The communication buffer, Buffer , internal to the PLC, is cleared. 6.4 KL6Init Interface VAR_INPUT Start :

BOOL; SerStatus : BYTE; END_VAR VAR_OUTPUT Busy : BOOL; Ready : BOOL; END_VAR Description KL6Init initializes the KL6xxx serial bus terminal without altering its configuration. The terminal’s internal buffers are cleared. TX1200 15 Version: 1.1