Giter Club home page Giter Club logo

Comments (3)

kyle-github avatar kyle-github commented on July 22, 2024

One of the difficulties with the AB protocol is that it is very flexible. This is good for users and bad for me :-)

A path can transition from one kind of PLC (e.g. ControLogix) through the backplane, out a DH/RIO module and to a PLC5 for instance. The data sent then is different from the data sent directly to a PLC5. So, the "type" of CPU is a bit strange because it depends somewhat on the how you get to that CPU.

from libplctag.

kyle-github avatar kyle-github commented on July 22, 2024

BTW, this is why I ended up with an API that takes a string that looks a bit like part of a URL. I realized that having a function with fixed inputs was:

  1. really limiting when the protocol allowed some strange things like CIP does.
  2. painful for wrappers like Java, Python etc. that do not really have pointers exposed and do not necessarily do arrays like C does.
  3. painful for supporting multiple protocols. Each protocol would either need its own tag creation functions (possible, but annoying) or I would need to have all possible arguments all the time. I opted for a formatted string which is really a key-value pair array in string form.

I did start with an API that had specific arguments for the different parts.

from libplctag.

kyle-github avatar kyle-github commented on July 22, 2024

Please move this to the new forum:

libplctag

Thanks!

from libplctag.

Related Issues (20)

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.