TwinCAT Input and Output modules

TwinCAT-specific input and output function blocks can optionally be used in Simulink®. Another valid way is to use the standard input ports (In) and output ports (Out) of Simulink®. This is usually also the best practice way, unless the additional functions of the TwinCAT input and output modules described below are required.

TwinCAT Input and Output modules 1:

Additional functions of the TC Module blocks

If you use the input function blocks (TC Module Input) and output function blocks (TC Module Output) provided by Beckhoff, you will benefit from the following additional functionalities, compared to the standard Simulink® input and output ports:

TwinCAT Input and Output modules 2:

Initial values can also be implemented for Standard Input Ports, see Option Input: Initial values under TC TcCom Interfaces.

When using automatic mapping, please note that if the TcCOM is instantiated more than once in TwinCAT, you will end up with a mapping conflict which you must resolve by manual mapping. This option is therefore not recommended for multiple instantiations.