Join us today!
URGENT! Simulink with "To File" Block and "MAT-file logging" do not get activated into my Beckhoff runtime.
Hello.
We have a Beckhoff CX2020 IPC hooked to a dozen I/O terminals, and it's connected to the Ethernet port of our engineering PC (a Windows 10 running TwinCAT 3 build 4024.53). We are loading a MATLAB Simulink TcCOM object into the Visual Studio 2017 that comes with TwinCAT, and we should activate it into the IPC to control some motors.
We want to log some data/signals going to the motors, so in our Simulink model, we added an M-File block (exactly as described by Beckhoff infosys on this page). The model gets build into a .TMC TcCOM object, but upon updating our TwinCAT project with that object and activating it, it throws these errors on the 1st screenshot.
We checked that there is still 6 GB of free disk space left on the IPC (runtime PC) and we made it so that .mat file is written on the file path C:\Log\data.mat where Admin has all permissions (we always open TwinCAT and MATLAB as Administrators). We are seriously wrestling with this issue for three days, and even tried an S-Function proposed in TE1400 samples on ADS Communication, but this time it couldn't be simulated because of some "Lisence Invalid" error on TwinCAT.ADS.Read() (illustrated in the 2nd screenshot).
We were suggested a less-than-optimal PLC solution to logging data, but why it can't be done directly using the instructions that Beckhoff published in the infosys? Please take a look at the 1st screenshot, and any suggestion or lead will be extremely appreciated.
-
Limitations on ADS Notifications
1 year ago
-
Passing a structure between PLCs via ADS using symbolic addressing
2 years ago
-
Error starting TwinCAT system!
2 years ago
-
ADS client comms - noob questions
2 years ago
- 17 Forums
- 267 Topics
- 942 Posts
- 0 Online
- 722 Members