Main Content

Simulate and Generate Code for Airport Conveyor Belt Control System

This example shows how to simulate and generate code for the Controller subsystem from an airport conveyor belt model.

Open the Model


To start the simulation, click Run. Observe the conveyor belt animation.

Generate Code

To generate code for the Controller subsystem, use plcgeneratecode:

generatedfiles = plcgeneratecode('plcdemo_airport_conveyor/Controller')