Global Variables
Four global data structures are needed to access a serial interface. Two provide the connection to the hardware in the send and receive directions. Two data buffers are also necessary for intermediate storage.
The data structures of type PcComInData or PcComOutData are linked with the hardware in the TwinCAT System Manager. Please read the corresponding section in the COMlib documentation in this regard.