ethercat-cstruct2json
v0.1.1
Published
convert ethercat cstruct output into json file
Downloads
7
Readme
Ethercat cstruct2json
Generate slave json configuration file from ethercat cstruct
command, to be used with etherlab-nodejs.
EtherCAT Master cli tool must be installed.
Installation
npm i -g ethercat-cstruct2json
Usage
$ cstruct2json --help
Usage: cstruct2json [options]
Options:
-o, --output output path. If omitted output will be saved to '/tmp/slaves.json'
-t, --tab indentation of generated json file. accept number or character
-p, --presets path to presets file or directory containing presets files
to be appended to selected slave(s)
-v, --verbose verbosity level
Examples:
cstruct2json --output ./slave.json -t4 -vv
cstruct2json -o ./slave.json -p ./preset-el6224.json -t4
cstruct2json --output=./slave.json -t2 -v2
cstruct2json -o ./slave.json --tab '\t'