Main Content

plccoderpref

Manage user preferences

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.

Examples

collapse all

  • plccoderpref('plctargetide')
    ans = 
    'rslogix5000'
    
  • plccoderpref('plctargetide', 'rslogix5000')
    ans = 
    'rslogix5000'
    
  • plccoderpref('plctargetidepaths')
    ans = 
    
      struct with fields:
    
                  codesys23: 'X:/share/apps/3S-Software/CoDeSys/v2.3'
                  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: ''
                      stone: ''
          omron_iec61131_10: ''
                   gxworks3: ''
                 indraworks: ''
                  selectron: ''
                      omron: ''
                testplcopen: ''
                         ge: ''
  • 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'}
    
    

Input Arguments

collapse all

String directive that specifies the default target IDE.

ValueDescription
codesys23

CODESYS Version 2.3 (default) target IDE

codesys35

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

gxworks3

MITSUBISHI ELECTRIC MELSOFT GX Works3

indraworks

Bosch Rexroth IndraWorks version 13V12 IDE

multiprog50

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

omron

OMRON® Sysmac® Studio

omron_iec61131_10

OMRON Sysmac Studio IEC61131-10 XML Version 1.30 and later

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 Automation Studio 5000 Logix Designer target IDE for AOI format

studio5000_routine

Rockwell Automation 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)

stoneCAREL STone version 1.6

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

              codesys23: 'X:/share/apps/3S-Software/CoDeSys/v2.3'
              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: ''
                  stone: ''
      omron_iec61131_10: ''
               gxworks3: ''
             indraworks: ''
              selectron: ''
                  omron: ''
            testplcopen: ''
                     ge: ''

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.

Tips

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

Version History

Introduced in R2010a