Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strings #17

Closed
two7 opened this issue Nov 1, 2016 · 4 comments
Closed

Strings #17

two7 opened this issue Nov 1, 2016 · 4 comments

Comments

@two7
Copy link

two7 commented Nov 1, 2016

Is anyone having trouble retrieving strings from pycomm ?

@rkrupnek
Copy link

rkrupnek commented Nov 1, 2016

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

@two7
Copy link
Author

two7 commented Nov 1, 2016

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?

@rkrupnek
Copy link

rkrupnek commented Nov 1, 2016

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

@ruscito
Copy link
Owner

ruscito commented Apr 23, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants