Join us today!

Notifications
Clear all

URGENT! Simulink with "To File" Block and "MAT-file logging" do not get activated into my Beckhoff runtime.

1 Posts
1 Users
0 Reactions
161 Views
Posts: 2
Topic starter
(@ylahdili)
Active Member
Joined: 3 months ago

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.

unable to get

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).

f213d756 335a 44cf b67f db008af19041

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.

Reply
Topic Tags
Share: