Можно ли добавлять новое устройство не через "Репозиторий устройств" (*.devdesc.xml), а каким нибудь другим способом? Скрипт, или например .bat файл?. На форуме не нашел.
Можно ли добавлять новое устройство не через "Репозиторий устройств" (*.devdesc.xml), а каким нибудь другим способом? Скрипт, или например .bat файл?. На форуме не нашел.
А Вы с какой целью интересуетесь?
С целью автоматизации, добавления/удаления устройств
Есть задача, написать утилиту, которая будет импортировать данные в файл конфигурации devdesc.xml из стороннего проекта, сделанного не на CoDeSys, а следующий шаг - внедрение нового полученного файла уже в систему написанную на CoDeSys.
Особая благодарность 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. Причина: закрытие темы
Тема закрыта.