Why can't I enable the "treat as atomic unit"? To use the PLC coder generator.

조회 수: 27 (최근 30일)
Yunxiang
Yunxiang 2014년 7월 7일
댓글: Yunxiang 2014년 7월 8일
Why can't I enable the "treat as atomic unit" to generate PLC coder after I created an enable subsystem in simulink?
I want to generate plc code from the enable subsystem from plclib, but the treat as atomic unit is displaying grey with default selected "treat as atomic unit", and that subsystem is unable to generate PLC code. Please help me

답변 (1개)

Bill Chou
Bill Chou 2014년 7월 7일
Hi Yunxiang,
Which version of MATLAB/Simulink do you have?
You may need to create a (virtual) subsystem around your enabled subsystem first (select an area around the enabled subsystem, right-click, and "create subsystem from selection") before you can make the subsystem atomic.
Try it and let us know if that works.
  댓글 수: 2
Yunxiang
Yunxiang 2014년 7월 8일
편집: Yunxiang 2014년 7월 8일
Hi, Bill,
Thank you for your reply, I am using 2012b. The problem I described is happening after I create the subsystem. Do you mean I cannot create a subsystem which includes the "enable" block? Because I want to use the enable block as an input in my subsystem which can enable the function block generated by the plc.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink PLC Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by