Main Content

Structured Text Code Generation for Integer To Enum Conversion

This example shows how to autogenerate structured text code for integer to enum conversion model.

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