Main Content

plccoderpref

Manage user preferences

Syntax

plccoderpref
plccoderpref('plctargetide')
plccoderpref('plctargetide', preference_value)
plccoderpref('plctargetide', 'default')
plccoderpref('plctargetidepaths')
plccoderpref('plctargetidepaths','default')
plccoderpref('plctargetlist')
plccoderpref('plctargetlist',targetlist)

Description

plccoderpref displays the current set of user preferences, including the default target IDE.

plccoderpref('plctargetide') returns the current default target IDE. This default can be the target IDE set previously, or the factory default. The factory default is 'codesys23'.

plccoderpref('plctargetide', preference_value) sets the default target IDE to the one that you specify in preference_value. This command sets the preference_value to persist as the default target IDE for future MATLAB® sessions.

plccoderpref('plctargetide', 'default') sets the default target IDE to the factory default target IDE ('codesys23').

plccoderpref('plctargetidepaths') returns a 1-by-1 structure of the installation paths of supported target IDEs.

plccoderpref('plctargetidepaths','default') sets the contents of the 1-by-1 structure of the installation paths to the default values.

plccoderpref('plctargetlist') displays the target IDEs that appear in the reduced Target IDE list in the Simulink® Configuration Parameters dialog box. For more information, see Target IDE and Show Full Target List.

plccoderpref('plctargetlist',targetlist) sets the target IDEs that appear in the reduced Target IDE list to the values that you specify in targetlist.

Input Arguments

plctargetide

String directive that specifies the default target IDE.

ValueDescription
codesys23

3S-Smart Software Solutions CoDeSys Version 2.3 (default) target IDE

codesys33

3S-Smart Software Solutions CoDeSys Version 3.3 target IDE

codesys35

3S-Smart Software Solutions CoDeSys Version 3.5 target IDE

brautomation30

B&R Automation Studio® 3.0 target IDE

brautomation40

B&R Automation Studio 4.0 target IDE

generic

Generic target IDE

indraworks

Rexroth IndraWorks version 13V12 IDE

multiprog50

PHOENIX CONTACT (previously KW) Software MULTIPROG® 5.0 or 5.50 target IDE

omron

OMRON® Sysmac® Studio

plcopen

PLCopen XML target IDE

pcworx60

Phoenix Contact® PC WORX™ 6.0

rslogix5000

Rockwell Automation® RSLogix™ 5000 Series target IDE for AOI format

rslogix5000_routine

Rockwell Automation RSLogix 5000 Series target IDE for routine format

step7

Siemens® SIMATIC® STEP® 7 Version 5 target IDE

studio5000

Rockwell Studio 5000 Logix Designer target IDE for AOI format

studio5000_routine

Rockwell Studio 5000 Logix Designer target IDE for routine format

twincat211

Beckhoff® TwinCAT® 2.11 target IDE

twincat3

Beckhoff TwinCAT 3 target IDE

tiaportal

Siemens TIA Portal

tiaportal_double

Siemens TIA Portal with support for double precision (LREAL type)

Default: codesys23

plctargetidepaths

String that specifies the target IDE installation path. Contains a 1-by-1 structure of the installation paths of supported target IDEs.

codesys23: 'C:\Program Files\3S Software'
codesys33: 'C:\Program Files\3S CoDeSys'
codesys35: 'C:\Program Files\3S CoDeSys'
studio5000: 'C:\Program Files\Rockwell Software'
studio5000_routine: 'C:\Program Files\Rockwell Software'
rslogix5000: 'C:\Program Files\Rockwell Software'
rslogix5000_routine: 'C:\Program Files\Rockwell Software'
brautomation30: 'C:\Program Files\BrAutomation'
brautomation40: 'C:\Program Files\BrAutomation'
multiprog50: 'C:\Program Files\KW-Software\MULTIPROG 5.0'
pcworx60: 'C:\Program Files\Phoenix Contact\Software Suite 150'
step7: 'C:\Program Files\Siemens'
tiaportal: 'C:\Program Files\Siemens\Automation'
tiaportal_double: 'C:\Program Files\Siemens\Automation'
plcopen: ''
twincat211: 'C:\TwinCAT'
twincat3: 'C:\TwinCAT'
generic: ''
indraworks: ''
omron: ''

default

String that sets your preferences to the factory default.

plctargetlist

Cell array of strings. Each string specifies a target IDE. You can specify any target IDE that is available for the plctargetide argument.

Use the string default to reset the reduced Target IDE list.

Examples

collapse all

  • plccoderpref('plctargetide')
    ans = 
    'rslogix5000'
    
  • plccoderpref('plctargetide', 'rslogix5000')
    ans = 
    'rslogix5000'
    
  • plccoderpref('plctargetidepaths')
    ans = struct with fields:
                  codesys23: 'C:\Program Files (x86)\3S Software'
                  codesys33: 'C:\Program Files\3S CoDeSys'
                  codesys35: 'C:\Program Files\3S CoDeSys'
                 studio5000: ''
         studio5000_routine: ''
                rslogix5000: ''
        rslogix5000_routine: ''
             brautomation30: 'C:\Program Files\BrAutomation'
             brautomation40: 'C:\Program Files\BrAutomation'
                multiprog50: 'C:\Program Files\KW-Software\MULTIPROG 5.0'
                   pcworx60: 'C:\Program Files\Phoenix Contact\Software Suite 150'
                      step7: 'C:\Program Files\Siemens'
                  tiaportal: 'C:\Program Files\Siemens\Automation'
           tiaportal_double: 'C:\Program Files\Siemens\Automation'
                    plcopen: ''
                 twincat211: 'C:\TwinCAT'
                   twincat3: 'C:\TwinCAT'
                    generic: ''
                 indraworks: ''
                      omron: ''
                  selectron: ''
    
    
  • targetlist = {'codesys23','rslogix5000'};
    plccoderpref('plctargetlist',targetlist)
    ans = 1×2 cell
        {'codesys23'}    {'rslogix5000'}
    
    
  • plccoderpref('plctargetlist','default')
    ans = 1×5 cell
        {'codesys23'}    {'studio5000'}    {'step7'}    {'omron'}    {'plcopen'}
    
    
  • plccoderpref('plctargetlist', [plccoderpref('plctargetlist', 'default') 'codesys35'])
    ans = 1×6 cell
        {'codesys23'}    {'studio5000'}    {'step7'}    {'omron'}    {'plcopen'}    {'codesys35'}
    
    
  • plccoderpref('plctargetlist', [plccoderpref('plctargetlist') 'codesys35'])
    ans = 1×8 cell
        {'codesys23'}    {'studio5000'}    {'step7'}    {'omron'}    {'plcopen'}    {'codesys35'}    {'codesys35'}    {'codesys35'}
    
    

Tips

Use the Simulink Configuration Parameters dialog box to change the installation path of a target IDE (Target IDE Path).

Introduced in R2010a