How to stop dead code elimination when using Simulink to PLC coder?
显示 更早的评论
For instance I have this Simulink model. When I generate PLC code, it leaves out the part of the model for which the conditions in the switches aren't true. How do I get it to generate code for the entire model regardless the choices of the switches?

1 个评论
Akshay Khadse
2018-12-14
Please provide the following information so that the community members can better understand the issue:
- The Target IDE for which you are trying to generate the PLC Code.
- Please confirm if the Simulink model has any unit delay blocks.
回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink PLC Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!