mesta1 / libplctag-csharp

MIT License
68 stars 35 forks source link

CompactLogix Strings #3

Closed bradbbarnett closed 6 years ago

bradbbarnett commented 6 years ago

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 commented 6 years ago

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

bradbbarnett commented 6 years ago

Thanks a lot, it worked!

mesta1 commented 6 years ago

closing