Hello, We are trying to make connection with a matlab (SimuLink) application . After reading different topics on the forum and articles in the community, we know this is possible using so called “data ports” to exchange data between different types of programs and types in a consistent way via the GDS (Global Data Space). We can use some help because progress in testing is going slowly. does anyone have programming examples or “How to’s” to give us a push in the right direction? Kind regards, Pieter van Daal
Hi Pieter, as you already read in some other articles it will be possible to add Matlab Simulink® models in your PLCnext application.
It will work, and there you are also right, in a similar way like for C++ real-time programs. We will offer an extension for Matlab Simulink® (called PC Worx Target for Simulink®) which integrates the toolchain for the PLCnext Controls and also the definition of the data interfaces (ports). In fact you create your model, add the GDS in and out ports as data interface, configure the target (e.g. AXC F 2152) and compile.
Afterwards you’ll get a .pcwlx file (PC Worx Engineer library) which consist the shared object with all meta information which you can add as a normal program. As I sad, the same like for C++ or IEC 61131-3 programs. The PC Worx Target for Simulink® is already existing, but supports in the current version only our “classic” PLCs. With the upcoming version 1.30 (end of January) it will support than also the AXC F 2152, you’ll find directly after the release also a short description in this community. Regards Frank