Coder Social home page Coder Social logo

Strings about pycomm HOT 4 CLOSED

ruscito avatar ruscito commented on July 26, 2024
Strings

from pycomm.

Comments (4)

rkrupnek avatar rkrupnek commented on July 26, 2024

ControlLogix strings can be a bit tricky. pycomm does not really handle the STRING type as a true native type, but I have some code I posted earlier which does the job pretty well. Actually, if anyone else who read the earlier stuff sees this, I have made some improvements. It's just a couple short "add-on" functions for reading / writing strings with pycomm's existing functionality.

Unfortunately, GitHub does considerable violence to the formatting of Python text for inline comments like this, so I'll try to post it in a different way.

***Edit: I just took a screenshot and added below:

readwrite

from pycomm.

two7 avatar two7 commented on July 26, 2024

Thanks rkrupnek, I'll have a look at that and see if I can put it to use. Do you have any documentation on the Ethernet/IP standard?

from pycomm.

rkrupnek avatar rkrupnek commented on July 26, 2024

Cool. Hope you find it useful. Ruscito has this posted on the front GitHub page. I think there is a later version of it available as well: http://literature.rockwellautomation.com/idc/groups/literature/documents/pm/1756-pm020_-en-p.pdf

from pycomm.

ruscito avatar ruscito commented on July 26, 2024

ok guys I added two temporary method to read and write string. I was holding off to do so because I wanted to do it right (using read/write fragment wrapped around a "Multiple Service Packet") but is taking longer than what I expected so for the moment this two methods can do the trick. @rkrupnek thanks for

from pycomm.

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.