Main Content

Code Output Directory

Path to the output directory where the generated code is saved

Model Configuration Pane: PLC Code Generation


Enter a path to the target folder where the generated code is saved.


./plcsrc (default)

Default: ./plcsrc subfolder in your working folder


  • If the target folder path is empty, a default value of ./plcsrc is used as the Code Output Directory.

  • If, you want to generate code in the current folder use . as the output directory.

  • The Code Output Directory can have the same name as your current working folder.

Recommended Settings

DebuggingNo impact
TraceabilityNo impact
EfficiencyNo impact
Safety precautionNo impact

Programmatic Use

Parameter: PLC_OutputDir
Type: string
Value: string
Default: 'plcsrc'

Version History

Introduced in R2010a