KL6inData, KL6outData
Data structures for the KL6xxx serial bus terminal in 3-byte mode
For data exchange by way of the I/O bus, every serial bus terminal needs variables of type KL6inData and KL6outData. These variables are placed at a fixed address in the memory map, and are linked to the hardware with the TwinCAT System Manager.
KL6inData
TYPE KL6inData
STRUCT
Status: BYTE;
SerStatus: BYTE;
D: ARRAY[0..2] OF BYTE;
END_STRUCT
END_TYPE
KL6outData
TYPE KL6outData
STRUCT
Ctrl: BYTE;
SerCtrl: BYTE;
D: ARRAY[0..2] OF BYTE;
END_STRUCT
END_TYPE
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT v3.1.4012 | PC or CX (ARM, x86, x64) | Tc2_SerialCom |