ethercat-cstruct2json

0.1.1 • Public • Published

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'

Readme

Keywords

Package Sidebar

Install

npm i ethercat-cstruct2json

Weekly Downloads

2

Version

0.1.1

License

MIT

Unpacked Size

21 kB

Total Files

5

Last publish

Collaborators

  • blogo3x