Online change of the PLC library

While TwinCAT is in run mode, you can exchange the PLC library version in TwinCAT XAE and load it into the running application via Online Change. This means that all function blocks in a PLC library can be updated without a TwinCAT restart.

Step-by-step procedure:

1. Create a first PLC library version with the TwinCAT Target for MATLAB®.
2. Include this PLC library version in a PLC project.
3. Activate your TwinCAT configuration with the first PLC library version (e.g. version 0.0.0.1).
4. Adapt your MATLAB function(s) and create a PLC library version (0.0.0.2) from it.
5. Select the newly created PLC library version in TwinCAT - PLC - References (you may have to install the new library on the XAE system).
6. Select Build > Build Solution to rebuild the project.
7. Select Login > Login with online change (more information in the PLC documentation).