GithubHelp home page GithubHelp logo

msvargas / node-logix Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 3.0 6.08 MB

Node.js package to read/write data from Allen Bradley Compact/Control Logix PLC's

License: MIT License

TypeScript 100.00%

node-logix's People

Contributors

dependabot[bot] avatar msvargas avatar punisher97 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

node-logix's Issues

Usage question: Tag change event

Not an issue per say, more a usage question.

Is it feasible/possible to code an event to trap when a PLC tag value changes? Some kind of a subscription system.
I would like to publish to a MQTT topic, but only if the tag value has changed.

If no built-in feature allows for this, I was planning to implement an array of "tag objects" that would hold something like
( tagName, lastValue, currentValue ) and then regularly poll & compare the currentValue with the lastValue for each tags to be monitored.

Not the most elegant. Do you have a better solution?

node-logix as Node-RED node

Hi,
Is there a way to get this as a node in Node-RED running on Hassio?
I cannot find it in the pallette.

Error: uv_signal_start EINVAL

Looks like node10 throws an error when trying to catch SIGKILL/SIGSTOP. Earlier versions (<8) did not do this.

Error: uv_signal_start EINVAL
at process. (internal/process/main_thread_only.js:92:15)
at process.emit (events.js:198:13)
at _addListener (events.js:224:14)
at process.addListener (events.js:272:10)
at process.once (events.js:301:8)
at new PLC (/usr/local/lib/node_modules/node-logix/build/commonjs/src/PLC.js:169:21)

PLC is not a constructor

When I try to run the Example with events, read and write tags the console prints TypeError: PLC is not a constructor

Make node red package of this code please

I am using node red and a micro850 within my house. i think you could help me creating your code into a node red compliant setup as i am not a programmer (rather an old plc programmer:-S).
Is their any possibility to help me with this as the node-red-contrib-cip-ethernet-ip gives me the connection error you are taking about...

would be great helpt to automatically read/write directly to tags from node red.

Thx

How to give a different slot number?

I don't see a slot property for PLC class, or how to give different slot in the examples.
Could you please provide an example for a diff slot?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.