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 Simulink®.
- 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 Simulink® model and create a PLC library version (0.0.0.2) from it.
- 5. Select the newly created PLC library version in the PLC at 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).