KL6Init

KL6Init 1:

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.

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 and KL6outDataBC data structures respectively.

The terminal has been successfully initialised after the Start signal when Busy=FALSE and Ready=TRUE.