Data structures for the KL6xxx serial bus terminal in 5-byte mode
For data exchange by way of the I/O bus, every serial bus terminal needs variables of type KL6inData5B and KL6outData5B. These variables are located at fixed addresses in the bus controller’s memory map, corresponding to the serial bus terminal’s mapping.
KL6inData5B
TYPE KL6inData5B
STRUCT
Status : BYTE;
D : ARRAY[0..4] OF BYTE;
END_STRUCT
END_TYPE
KL6outData5B
TYPE KL6outData5B
STRUCT
Ctrl : BYTE;
D : ARRAY[0..4] OF BYTE;
END_STRUCT
END_TYPE
In order not to unnecessarily occupy the BCxxxx bus controller's memory, the 5-byte mode is only supported by the modified ComLibBC5B library.