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

CompactLogix Strings #3

Closed
oso0690 opened this issue Apr 16, 2018 · 3 comments
Closed

CompactLogix Strings #3

oso0690 opened this issue Apr 16, 2018 · 3 comments

Comments

@oso0690
Copy link

@oso0690 oso0690 commented Apr 16, 2018

Hello,

I cannot read strings from a CompactLogix PLC. I saw an example Slc500Strings that did this. I am able to read how many characters exist in the string but not the actual characters. Any advice on how I can get this to work?

@mesta1

This comment has been minimized.

Copy link
Owner

@mesta1 mesta1 commented Apr 16, 2018

Hi,
it reads an array of chars, so you have to manually convert the chars to character.
Here is an example on the original library:
https://github.com/kyle-github/libplctag/blob/master/src/examples/string.c

@oso0690

This comment has been minimized.

Copy link
Author

@oso0690 oso0690 commented Apr 17, 2018

Thanks a lot, it worked!

@mesta1

This comment has been minimized.

Copy link
Owner

@mesta1 mesta1 commented Apr 22, 2018

closing

@mesta1 mesta1 closed this Apr 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.