Switch to desktop version  
Sending Strings by Modbus/TCP - Printable Version

+- Ewon Technical Forum (https://techforum.ewon.biz)
+-- Forum: Development (https://techforum.ewon.biz/forum-50.html)
+--- Forum: BASIC Script (https://techforum.ewon.biz/forum-52.html)
+--- Thread: Sending Strings by Modbus/TCP (/thread-1169.html)



Sending Strings by Modbus/TCP - LennonEletronor - 06-02-2020

Hello!
I am working with a message exchange using HTTPS and I receive some text response on flexy205.
I need to send those responses to my Allen Bradley's PLC, but that communication does not allow me to exchange Strings, only for DWORD.
I can turn these STRINGs into DWORDs and then send them to my PLC? Is there a function to use in this case? Or is there any other way to send those messages?
If anyone has any sample code to use in this scenario, it would be perfect.
Thanks in advance.


RE: Sending Strings by Modbus/TCP - simon - 09-02-2020

Hi,

What PLC do you use ? I am asking that because if the PLC can be polled using the ABLogix/DF1 IOserver, then you can poll String tags (as of fwr 14).
If you have to use Modbus TCP, then you have to read registers and assemble them to compose your string like : https://techforum.ewon.biz/thread-166.html

Simon