Good day everyone,
I am needing some examples of how to open the socket communication with the Mitsubishi PLC.
I am using a Q series processor and I need to send some information via Ethernet to another device.
The manuals are not very clear on how this is done.
I have defined my settings in the Built In Ethernet Port Options window as:
TCP/Socket Communication/Active
Now this is where I get a little lost, I have another PLC with Ethernet coms and the Host station Port is set at 9101/Destination Port is 9100 and then the IP address obviously is straight forward.
So first off what determines and why the port numbers.
So now with those settings done, my other PLC that has the socket coms via Ethernet uses a POU that is structured text and I would rather use ladder/FB.
So I would assume I need to use the SP_SOCOPEN instruction, and then also the receive and close instructions as well.
Does anyone have a good example of how to write this in logic? I think I can use I/O instead of Ethernet for this project, but if not, or later on I might not have that option, so I would like to know how the socket coms work and what ladder logic looks like with these instructions.
If anyone has any knowledge concerning this it would be greatly appreciated!
I am needing some examples of how to open the socket communication with the Mitsubishi PLC.
I am using a Q series processor and I need to send some information via Ethernet to another device.
The manuals are not very clear on how this is done.
I have defined my settings in the Built In Ethernet Port Options window as:
TCP/Socket Communication/Active
Now this is where I get a little lost, I have another PLC with Ethernet coms and the Host station Port is set at 9101/Destination Port is 9100 and then the IP address obviously is straight forward.
So first off what determines and why the port numbers.
So now with those settings done, my other PLC that has the socket coms via Ethernet uses a POU that is structured text and I would rather use ladder/FB.
So I would assume I need to use the SP_SOCOPEN instruction, and then also the receive and close instructions as well.
Does anyone have a good example of how to write this in logic? I think I can use I/O instead of Ethernet for this project, but if not, or later on I might not have that option, so I would like to know how the socket coms work and what ladder logic looks like with these instructions.
If anyone has any knowledge concerning this it would be greatly appreciated!