How to write ladder logic in Simulink?
2 views (last 30 days)
Show older comments
I've used Matlab for many years now. Back in the early 1990's, as a control systems engineer, I used ICOM software very effectively to write PLC programs and emulate them. I would like to actually write ladder logic and see it operating in emulation mode like I used to do with ICOM which was bought by Rockwell and never was quite as good and a lot more expensive. Anyway, it may be wishful thinking, but it would be nice to be able to write and run "live" in emulation mode like I used to do (in ICOM and early RSlogic) plus add all the great stuff Matlab and Simulink have to offer. Logic is really easy to see in the ladder graphic versus the CS if-then and-or text style. I may have missed something, but it appears that the efforts so far have been to convert "if-then" logic to PLC code rather than utilize the power of a ladder "circuit" graphic coding environment. Hopefully its already there and I've just missed it. Thanks, John Rodgers
0 Comments
Accepted Answer
Kiran Kintali
on 22 Apr 2019
Hi John,
Import Rockwell Automation Studio 5000 Ladder Diagrams into Simulink for simulation and verification. Generate Ladder Logic for CODESYS, Studio 5000, and PLCopen XML formats. Validate generated Ladder Diagrams by generating and executing the test bench running on the IDE’s emulator.
0 Comments
More Answers (0)
See Also
Categories
Find more on Ladder Diagram Integration 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!