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.

 

 VAR_GLOBAL
Kl6InData AT %IB0 : Kl6inDataBC;
Kl6OutData AT %QB0: Kl6outDataBC;
RxBuffer         : ComBuffer;
TxBuffer         : ComBuffer;
END_VAR