README
Synapticon EtherCAT Generator
Synapticon EtherCAT Generator lets you generate slave source code for SOMANET COM EtherCAT modules from EtherCAT Slave Information (ESI) files.
Installation
$ npm install -g ecatgen
Usage
Usage: ecatgen [options]
Options:
-V, --version output the version number
-d, --dictionary generate source code for the 'module_generated_files/src/co_dictionary.c' path
-e, --esi <file> generate source code from an EtherCAT Slave Information (ESI) file
-p, --path <path> generate source code for a path (see help for the list of available paths)
-z, --zip <file> [all|documentation] generate source code for all paths and zip to a file
-m, --motorcortex-sdos <file> generate motorcortex sdos
-s, --eds generate EDS (Electronic Data Sheet) from ESI
--property-to-xml generate ESI file with documentation moved from Property to XML element
--assign-profile-documentation assign profile object documentation to profile objects in dictionary without documentation
-h, --help output usage information
Paths:
module_generated_files/include/dictionary_symbols.h
module_generated_files/src/co_dictionary.c
documentation.html
motorcortex_sdos.xml
eds
Examples:
$ ecatgen --esi SOMANET_CiA_402.xml --path module_generated_files/src/co_dictionary.c
$ ecatgen -e SOMANET_CiA_402.xml -p module_generated_files/src/co_dictionary.c > co_dictionary.c
$ ecatgen --dictionary --esi SOMANET_CiA_402.xml
$ ecatgen -d -e SOMANET_CiA_402.xml > co_dictionary.c
$ ecatgen -e SOMANET_CiA_402.xml -z code.zip all
$ ecatgen -e SOMANET_CiA_402.xml -z documentation.zip documentation
$ ecatgen -e SOMANET_CiA_402.xml -z code.zip && unzip code.zip -d code
$ ecatgen --esi SOMANET_CiA_402.xml --path documentation.html
$ ecatgen --motorcortex-sdos SOMANET_CiA_402.xml --path motorcortex_sdos.xml
$ ecatgen --eds -e SOMANET_CiA_402.xml
$ ecatgen --property-to-xml -e SOMANET_CiA_402.xml
$ ecatgen --assign-profile-documentation -e SOMANET_CiA_402.xml