Can I generate PLC code from an S-function using PLC Coder?
显示 更早的评论
I designed a controller in an S-function and after trying to generate a code with PLC Coder I get the following error:
PLC Coder does not support S-function controller invoked from block 'simulink_modell/Subsystem/S-Function'.
"Block 'Subsystem/Subsystem/S-Function' is a non-inlined s-function, which is not supported with the current configuration. Consider selecting the support 'non-inlined s-functions' option on the Configuration Parameters > Real-Time Workshop > Interface page."
I don't have this support option 'non-inlined s-functions'.
What can I do? In fact, is it possible to generate code from an s-function using PLC Coder?
采纳的回答
更多回答(1 个)
Kaustubha Govind
2011-2-2
0 个投票
The "Support noninlined S-functions" option only appears for ERT-based targets - since PLC Coder is not an ERT-based target, this option does not apply here.
From the error, it appears that it is possible to generate PLC code only for inlined S-functions. Therefore you will need to define a TLC script for your S-function as described here.
类别
在 帮助中心 和 File Exchange 中查找有关 Simulink PLC Coder 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!