Heuve Posted January 4, 2019 Report Posted January 4, 2019 Hello all, I'm trying to send data between 2 Q06UDEH PLC's using the built in Ethernet port. I'm using the SOCSND and SOCRCV commands and have successfully sent a command, but the received data is not correct. I think my problem is with the send frame I've built, but I can't figure out what I did wrong. If someone has an example I could use to set up the frame it would be very appreciated! Thanks,
collinsd70 Posted January 4, 2019 Report Posted January 4, 2019 Welcome Heuve. Found this manual with some examples in LAD and IL, hope it helps. http://www.accs.cz/Files/FA/PLC/QnUCPU_User_s_Manual_Communication_via_Built_in_Ethernet_Port.pdf Regards Daniel
Heuve Posted January 4, 2019 Author Report Posted January 4, 2019 Hey thanks, I've seen that manual but it doesn't actually describe how to set up the frame (just uses 12345678901 as an example). The way I tried setting it up is on page 42 of this manual: http://dl.mitsubishielectric.com/dl/fa/document/manual/plc/sh080008/sh080008x.pdf And here's the frame I come up with: 5000 00FF FF03 00 0800 0000 0104 0100 B80B 0090 0800 Doesn't seem to work though
Heuve Posted January 4, 2019 Author Report Posted January 4, 2019 Sorry, I should add I'm trying to use the MC protocol on the PLC that has the data I'm trying to read. If possible I don't want to do any programming on the second PLC, just set up one of the ports to MC protocol.
WattUp Posted January 7, 2019 Report Posted January 7, 2019 EthernetLink.gxw I have posted this example in the past. It is not using SOCSEND/RECV but using the GP.READ i was able to get reliable communication between 2 PLCs. Only requires the one PLC to be modified, and you pick what addresses you want to read/write to on the other PLC.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now