Use the snap7 library to read / write to Siemens PLCs. The classdef file is suitable for compilation via RTW, using in "normal" Simulink, or scriptable via MATLAB.
Linux only. Requires some work to setup.
thomas (2021). sim7 (https://github.com/thomas169/sim7), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!