0.1.1 • Published 6 months ago

ethercat-cstruct2json v0.1.1

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 months ago

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'
0.1.1

6 months ago

0.1.0

8 months ago