Показано с 1 по 5 из 5

Тема: Альтернативное добавление target-файла

  1. #1

    Question Альтернативное добавление target-файла

    Можно ли добавлять новое устройство не через "Репозиторий устройств" (*.devdesc.xml), а каким нибудь другим способом? Скрипт, или например .bat файл?. На форуме не нашел.

  2. #2

    По умолчанию

    А Вы с какой целью интересуетесь?

  3. #3

    По умолчанию

    С целью автоматизации, добавления/удаления устройств
    Есть задача, написать утилиту, которая будет импортировать данные в файл конфигурации devdesc.xml из стороннего проекта, сделанного не на CoDeSys, а следующий шаг - внедрение нового полученного файла уже в систему написанную на CoDeSys.

  4. #4

    По умолчанию

    Особая благодарность Vitalis Neufeld.

    Для этого можно использовать программу RepTool:


    "c:\Program Files\3S CoDeSys\CoDeSys\Common\RepTool.exe"

    Arguments:

    No profile name specified.

    Usage: RepTool --profile=[profile] [action]

    where [action] is one of:

    --createLibRepos <rootpath> <name>
    Create a new library repos
    --removeLibRepos <rootpath>
    Remove the specified library repos, but keep its contents
    --removeLibRepos <name>
    Remove the specified library repos, but keep its contents
    --destroyLibRepos <rootpath>
    Remove the specified library repos and delete its contents
    --destroyLibRepos <name>
    Remove the specified library repos and delete its contents
    --moveLibRepos --repos=<rootpath> <index>
    Move the specified library repos to another index
    --moveLibRepos --repos=<name> <index>
    Move the specified library repos to another index
    --installLib <libpath>
    Install library to the system repos
    --installLib --repos=<rootpath> <libpath>
    Install library to the specified repos
    --installLib --repos=<name> <libpath>
    Install library to the specified repos
    --installLibsRecurs <folderpath>
    Install all libraries in a folder to the system repos
    --installLibsRecurs --repos=<rootpath> <libpath>
    Install all libraries in a folder to the specified repos
    --installLibsRecurs --repos=<name> <libpath>
    Install all libraries in a folder to the specified repos
    --compileLib <libpath>
    Compiles the specified library into a .compiled-library
    --compileLibsRecurs <folderpath>
    Compiles all libraries in a folder into .compiled-library's
    --uninstallLib <libname>
    Uninstall library from the system repos
    --uninstallLib --repos=<rootpath> <libname>
    Uninstall library from the specified repos
    --uninstallLib --repos=<name> <libname>
    Uninstall library from the specified repos
    --createVisuElemRepos <reposname> <rootfolder>
    Create a repository for visuelements at the specified rootfolder.
    --createVisuElemRepos --internal=<boolvalue> <reposname> <rootfolder>
    Create a repository for visuelements at the specified rootfolder.
    --clearVisuElemRepos <reposname> <visuprofilename>
    Remove all installed elements from the specified profile in the specified repos
    --removeVisuElemRepos <reposname>
    Remove a repository for visual elements
    --destroyVisuElemRepos <reposname>
    Remove a repository for visual elements
    --moveVisuElemRepos <reposname> <index>
    Move the specified visualelement repos to another index
    --installVisuElements <reposname> <libname> <mainlibname> <visuprofilename> <element_1,...,element_n>
    Install the specified elements (comma separated list) from the specified library to the specified profile (will be created if not yet existi
    ng) in the specified repository.
    The <mainlibname> must be passed to be able to resolve the placeholders within the element libraries correctly. Normally, this is the librar
    y VisuElems in its according version.
    If you want to install elements that do not use placeholders, you can pass "none" to omit this parameter
    The libraries (<libname> <mainlibname>) must be specified with its displayname consisting of (Title, Vendor, Version).
    --uninstallVisuElements <reposname> <libname> <visuprofilename> <element_1,...,element_n>
    Uninstall the specified elements (comma separated list) from the specified library from the specified profile in the specified repository. T
    he library must be specified with its displayname consisting of (Title, Vendor, Version)
    --installDevice <deviceName> [<deviceName_2>...<deviceName_n>]
    Install the specified devdesc files
    --importDevice --converter=<guid> [--parameters="key1=vallue1;...keyn=valluen;"] <deviceName> [<deviceName_2>...<deviceName_n>]
    Import the specified device description files using the specified converter
    Currently supported:
    EthernetIP {a9889815-3b0a-4024-9177-73e55bbd6fd7}
    GSD {bc118cc4-7273-4ba0-ad4c-07eb2b94f315}
    Sercos3 {cdde0374-9efd-401e-93c8-f19443fb60ed}
    Native {d0f8e825-cb17-4699-ac62-b6878fc5b404}
    EDS {1ce4a9c1-37d3-496c-9e80-cd99ad3807ee}
    Ethercat {3992c588-7bdb-4a7c-908d-f444808d8cd2}
    GSDML {6066aef4-f19a-41ac-a249-721bdae32d40}
    --installDevicesRecurs <folderpath>
    Install all devdesc files in a folder to the system repository.

    p.s. тему можно закрывать.
    Последний раз редактировалось ripmag; 13.08.2012 в 11:06. Причина: закрытие темы

  5. #5
    Пользователь
    Регистрация
    22.03.2012
    Адрес
    Лермонтов
    Сообщений
    360

    По умолчанию

    Тема закрыта.

Похожие темы

  1. Ответов: 3
    Последнее сообщение: 12.11.2010, 15:27
  2. Target
    от Stalkergeo в разделе ПЛК1хх
    Ответов: 3
    Последнее сообщение: 30.04.2010, 13:05
  3. target 2.03
    от urfin в разделе ПЛК1хх
    Ответов: 12
    Последнее сообщение: 01.07.2008, 05:38
  4. Target
    от Ю р и й в разделе ПЛК1хх
    Ответов: 7
    Последнее сообщение: 23.05.2008, 14:40

Ваши права

  • Вы не можете создавать новые темы
  • Вы не можете отвечать в темах
  • Вы не можете прикреплять вложения
  • Вы не можете редактировать свои сообщения
  •