Boolean vector Size inconsistency in L5x files generated by PLC coder
조회 수: 1 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2018년 12월 14일
답변: MathWorks Support Team
2018년 12월 17일
Why do boolean variables change dimensions in generated code for Rockwell Studio 5000: Routine targets?
채택된 답변
MathWorks Support Team
2018년 12월 14일
The array dimension mismatch is expected.
Rockwell file formats require 'boolean' array values to have dimension size to round up to multiples of 32. As result, the array dimension (for initial value) is 32 even if a lower dimension is specified. In other words, this is required by Target IDE, otherwise, the code will not compile on the IDE.
As a workaround please use 'Rockwell Studio 5000: AOI' Target IDE in Configuration Parameters > PLC Code Generation. This will not implement the auto conversion.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Simulink PLC Coder에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!