Main Content
Structured Text Code Generation for Enum To Integer Conversion
Autogenerate structured text code for enum to integer conversion model.
Load enum class
For this example, the myEnum.m
script loads the enum class definition. Place this script file in the same project folder as the plc_enum_to_int
model file.
Open the model
open_system('plc_enum_to_int.slx')