Hauptinhalt

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.

example

Examples

collapse all

plccoderpref('plctargetide')
ans =

    'codesys35'
plccoderpref('plctargetide', 'rslogix5000')
ans = 
'rslogix5000'

Assume that you have previously changed the installation path of the CoDeSys 2.3 target IDE. Return the current target IDE installation paths.

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: ''
                   schneider: ''
                       stone: ''
           omron_iec61131_10: ''
                    gxworks3: ''
                  indraworks: ''
                   selectron: ''
                       omron: ''
    schneider_machine_expert: ''
                     alsmart: ''

If you disable Show full target list, the drop down for Target IDE shows only a subset of the supported IDEs. Customize this reduced list to contain only the IDEs CoDeSys 2.3 and Rockwell Automation RSLogix 5000 Series for AOI format.

targetlist = {'codesys23','rslogix5000'};
plccoderpref('plctargetlist',targetlist)
ans = 1×2 cell
    {'codesys23'}    {'rslogix5000'}

Reset the reduced Target IDE list to the default subset.

plccoderpref('plctargetlist','default')
ans =

  1×6 cell array

    {'codesys35'}    {'studio5000'}    {'tiaportal_double'}    {'schneider'}    {'omron'}    {'gxworks3'}

Append the IDE CoDeSys 2.3 to the default reduced Target IDE list.

plccoderpref('plctargetlist', [plccoderpref('plctargetlist', 'default') 'codesys23'])
ans =
  1×7 cell array
    {'codesys35'}    {'studio5000'}    {'tiaportal_double'}    {'schneider'}    {'omron'}    {'gxworks3'}    {'codesys23'}

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

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

schneider

Schneider Electric - EcoStruxure Control Expert

schneider_machine_expert

Schneider Electric - EcoStruxure Machine Expert

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
alsmartDanfoss Alsmart Design

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

              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: ''
                   schneider: ''
                       stone: ''
           omron_iec61131_10: ''
                    gxworks3: ''
                  indraworks: ''
                   selectron: ''
                       omron: ''
    schneider_machine_expert: ''
                     alsmart: ''

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