%% 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.
% 
%   Copyright 2007-2016 The MathWorks, Inc.

%% Open the Model
open_system('plcdemo_airport_conveyor')
%%
% To start the simulation, click *Run*. Observe the conveyor belt
% animation.
%
%% Generate Code
%
% To generate code for the Controller subsystem, use <docid:plccoder_ref.bsei6je_1
% plcgeneratecode>:
%
% generatedfiles = plcgeneratecode('plcdemo_airport_conveyor/Controller')



