Using a raw socket would be simplier in his case than integrating a Modbus library or writing his own Modbus server.
thanks guys, but do you have any idea how to write a python scripts of server modbus tcp
so i can send the data to my plc
and any way to configure the unity pro to receive the data
I was under the impression that CPU supported ModbusTCP out of the box.
The Python library I linked does the Modbus server role quite well in my experience so far with conversions for data types and endianness as well.
You're right, I was also looking at it from the point of view that there is already a Python module for Modbus comms.However, implementing Modbus within a Python application is much harder than using a raw socket which is very standard for a PC application.
If the thread starter just need to send characters to print, just need to display values on his PC
It would probably be best if you started a new thread.Hi guys.
I'm triying communicate a M580 with a printer by ethernet IP because I want to send from the plc information to be printed but I don't know how do it.
Can someone help me please?