leicht / TuxPLC

Set of softwares allowing communication with industrial PLC
Other
79 stars 39 forks source link

Reading Strings #8

Open zshootz opened 9 years ago

zshootz commented 9 years ago

I get "Reserved for future expansion" when trying to read strings. Are there any upcoming plans to add support for reading strings?

joaomello-zz commented 8 years ago

Wich PLC did you try?

leicht commented 8 years ago

Hi Flexlogix

Le 27 septembre 2015 02:05:50 GMT+02:00, "João Mello" notifications@github.com a écrit :

Wich PLC did you try?


Reply to this email directly or view it on GitHub: https://github.com/leicht/TuxPLC/issues/8#issuecomment-143506323

Envoyé de mon appareil Android avec K-9 Mail. Veuillez excuser ma brièveté.

zshootz commented 8 years ago

Sorry, I didn't see that this was replied to. I was using a ControlLogix.

ghost commented 7 years ago

Hi @zshootz - can you provide any more information about this issue?

evaldes2015 commented 7 years ago

You should be able to read strings as a SINT array. Read the string length from MYSTRING.LEN, then read the data from MYSTRING.DATA[0] specifying the length. You then have to reassemble the string in your application.

ghost commented 7 years ago

If you are comfortable submitting a pull request, please feel free to submit one. Otherwise I'll add this to the 'nice to have' list and get to it after I've updated the codebase to use autotools.