Data structures for the COM serial PC interfaces

Every serial PC interface needs a variable of type PcComInData and one of type PcComOutData for data exchange. These variables are placed at a fixed address in the memory map and are linked to the hardware with the TwinCAT System Manager.

PcComInData

TYPE PcComInData
STRUCT
    SerStatus: WORD;
    D: ARRAY[0..63] OF BYTE;
END_STRUCT
END_TYPE

PcComOutData

TYPE PcComOutData
STRUCT
    SerCtrl: WORD;
    D: ARRAY[0..63] OF BYTE;
END_STRUCT
END_TYPE