KL6Config5B
Interface
VAR_INPUT
Start : BOOL; (* Edge triggered *)
Baudrate : INT; (* 19200, 9600, 4800, 2400, 1200 *)
NoDatabits : BYTE; (* 7 or 8 *)
Parity : BYTE; (* 0=no, 1= even, 2 = odd *)
Stopbits : BYTE; (* 1 or 2 *)
Handshake : BYTE; (*0=none,1=RTS/CTS,2=XON/XOFF*)
COMin : KL6inData5B;
END_VAR
VAR_OUTPUT
Err : BOOL;
ErrId : WORD;
Busy : BOOL;
END_VAR
VAR_IN_OUT
COMout : KL6outData5B;
END_VAR
Description
KL6Config5B works in a manner similar to that of the KL6Config block, but operates the serial bus terminal in 5-byte mode.
Note
If the KL6Config5B block is active (busy), the KL6Control5B block for background communication must not be called! Initialization and normal communication with the serial bus terminal use the same registers.
This block is replaced by KL6configuration from version 2 of the communication library.