PcComInData, PcComOutData

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

Requirements

Development environment

Target platform

PLC libraries to include

TwinCAT v3.1.4012

PC or CX (ARM, x86, x64)

Tc2_SerialCom