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_TYPEPcComOutData
TYPE PcComOutData
STRUCT
SerCtrl: WORD;
D: ARRAY[0..63] OF BYTE;
END_STRUCT
END_TYPERequirements
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT v3.1.4012 | PC or CX (x86, x64, Arm®) | Tc2_SerialCom |