ecatmod

2.2.4 • Public • Published

Synapticon EtherCAT Model

Wrapper library for EtherCAT Slave Information (ESI) data structure parsed with Jsonix.

Install

$ npm install ecatmod

Usage

const fs = require('fs');
const ecatmod = require('ecatmod');

const contents = fs.readFileSync('esi.xml', 'utf8');
const esi = ecatmod.unmarshalEsiString(contents);
ecatmod.applyToEsi(esi);

Sample ESI files

https://github.com/synapticon/ecatapi/tree/master/public/esi

Development

$ git pull https://github.com/synapticon/ecatmod
$ cd ecatmod
$ npm run watch

Grunt command watches files for changes in src and specs directories and then runs linter and tests and builds documentation.

How to reformat and reindent profile JSON files:

$ npm -g install js-beautify
$ js-beautify --config .vscode/formatter.json -r src/profiles/SNCN.json

Documentation

https://synapticon.github.io/ecatmod

Readme

Keywords

none

Package Sidebar

Install

npm i ecatmod

Weekly Downloads

61

Version

2.2.4

License

ISC

Unpacked Size

12.2 MB

Total Files

108

Last publish

Collaborators

  • markosankovic