List of Files Generated for Model Reference Hierarchies
When you generate IEC 61131-3 Structured Text code for a model reference hierarchy,
Simulink®
PLC Coder™ creates a plcsrc
subfolder in your current working directory
that contains the generated code for the top model. In addition, Simulink
PLC Coder creates a slprj > plc >
Release Name >
model name
subfolder in
your current working folder, and places the generated Structured Text code for the referenced
models in these folders. If your top model contains multiple referenced models, there are
multiple folders under slprj > plc >
Release Name >
with each folder named after the referenced
model name.
Generated Files for the Top Model
In a model reference hierarchy, Simulink PLC Coder generates these Structured Text files for the top model:
top_model_name.*
— IEC61131-3 Structured Text code for the top model top subsystemtop_model_name_symbols.*
— Symbol file that contains the global symbol definition for both the top and referenced models. To use the generated code, you must import the generated code files and the symbol file into your target IDE.
This table lists the file extensions by integrated development environment (IDE) for the files generated for the top model:
IDE Name | Generated File Names |
---|---|
CODESYS 2.3 |
|
CODESYS 3.5 |
|
Rockwell Automation® Studio 5000 IDE: Routine |
|
Siemens® TIA Portal IDE |
|
Siemens TIA Portal Double IDE |
|
KW-Software MULTIPROG® 5.0 |
|
Phoenix Contact® PC WORX™ 6.0 |
|
Generic |
|
Generated Files for the Referenced Models
In a model reference hierarchy, Simulink PLC Coder generates these Structured Text files for the referenced models:
reference_model_name.*
— IEC 61131-3 Structured Text code for the referenced model subsystem
This table lists the file extensions by IDE for the files generated for the referenced models:
IDE Name | Generated File Names |
---|---|
CODESYS 2.3 |
|
CODESYS 3.5 |
|
Rockwell Automation Studio 5000 IDE: Routine |
|
Siemens TIA Portal IDE |
|
Siemens TIA Portal Double IDE |
|
KW-Software MULTIPROG 5.0 |
|
Phoenix Contact PC WORX 6.0 |
|
Generic |
|
If there are multiple referenced models, Simulink PLC Coder generates a Structured Text code file for each referenced model.