Boolean vector Size inconsistency in L5x files generated by PLC coder

1 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
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 个)

类别

Help CenterFile Exchange 中查找有关 Simulink PLC Coder 的更多信息

标签

尚未输入任何标签。

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by