I have hovered over MATLAB help, and I don't want to use the code generator for PLC. I was wondering if there are any means to use pre-programmed black boxes with adjustable settings. I'd appreciate any comments
My recommendation is to go to the MathWorks website and look if anyone has worked with this topic, honestly this is the first time I see this relationship between Matlab and PLC.
In Matlab you can model a Discrete Event Systems with graphical tool called StateChart of simulik. You can see in (http://www.mathworks.com/discovery/state-chart.html)
This tool is not a standard PLC language, but the logic of the system can be simulated with this tool.
Translation from PLC ladder diagram to state chart to test prototype code is as under:
Thank you so much. it was very helpful. however in complicated circuits with multiple plc devices, once translated to state chart, is there a way to detect bugs in the logic directly, without having to translate back to ladder diagram ?
Thank you so much, but unfortunately I'm not a member and due to regional issues, it's not quiet possible for me to purchase it. I'd appreciate if you could introduce another resource for this matter.
thank you for the input; however, my problem is I was trying to find a similar environment in MATLAB to the ladder diagram of a PLC, let's say S7, and be able to apply the designed circuit to simulation without having to code it.
Just for the record, it happens that I am currently working on developing an 'Automation Toolbox' that can be used to simulate both relay-logic circuits (RLC) and PLC systems. You may find the link here. Soon enough, I will make it available for everyone. You may have a look at this video