This example shows how to autogenerate structured text code for integer to enum conversion model.
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_system('plc_int_to_enum.slx')