IEC 61131-3 Motion Control and PLC Coder

5 views (last 30 days)
I would like to use Simulink, especially Stateflow, to develop the PLC control logic of a system where the final result is to drive a PMSM with a dedicated driver (via CAN). To control the motor, now I'm using the usual Motion Control function blocks defined by the IEC 61131 standard.
How is this implemented with automatic code generation with PLC Coder? It automatically recognize that I want to drive a motor and so it uses the MC function blocks, or I've to "define" this behaviour in some way (eg by creating a "custom function" like some sort of wrap)?
Anyway, my doubt is in general about the use of IEC 61131-3 function block (eg Ton, Toff, etc...) by PLC Coder, if it automatically recognize when to use them.
Thank you

Answers (0)

Categories

Find more on Simulink PLC Coder in Help Center and File Exchange

Products


Release

R2019a

Community Treasure Hunt

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

Start Hunting!