Beckhoff TwinCAT Interface - TE1410
30 views (last 30 days)
Show older comments
I'm curretly try to connect a Beckhoff PLC with Simulink using the official Beckhoff tool TE1410 for MATLAB version greater then 2019. The Beckhoff manual can be found here: Manual TwinCAT 3 | Interface for MATLAB®/Simulink® (beckhoff.com)
I properly install and set my simulink environment for the simulation in order to read one parameter from the PLC. When I start the simulation, this error is reported:
"Error:Error reported by S-function 'MatlabRuntime' in 'testDataExchangeADS/Async ADS Read':
License invalid."
I don't understand why the licence which license is talking about since in the Beckhoff manual is cleary steated:
"Restrictions in the demo version
When using the demo version, appropriate warnings are displayed to the user. For ADS in Simulink®: after 30 minutes, the simulation ends with an error message. The simulation must be restarted. In addition, the number of ADS symbols for reading or writing is limited to 4" (pag. 26)
PS: I am also moving on the Beckhoff side to see if this error had already been dealt with.
3 Comments
Hazem
on 29 Sep 2023
I had the same problem. To fix it, open TwinCAT3 and follow these steps:
- Navigate to System -> License in the Solution Explorer (it should be in the right window of your screen).
- Double-click on "License." You will then see four tabs in your main window. Choose "Manage Licenses."
- Navigate to T1410 and click on "CPU License" in the "Add License" section.
- Run the project. It will prompt you to generate a trial license.
Hopefully, this will fix your problem.
Answers (0)
See Also
Categories
Find more on Target Computer Setup in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!