%% Structured Text Code Generation for Integer To Enum Conversion
% This example shows how to autogenerate structured text code for 
% integer to enum conversion model.

% Copyright 2019 The MathWorks, Inc.
%% Load enum class
% For this example, the |myColor.m| script loads the enum class definition.
% Place this script file in the same project folder as the
% |plc_int_to_enum| model file.
%% Open the model
open_system('plc_int_to_enum.slx')