Amsterdamstyle

Send data memory from PLC to other PLC with CX Programmer

14 posts in this topic

Hello people,
I hope someone can help me with this.
The system is connected with 8 PLC's.
I want to transfer the data memory of a PLC to another like this:

D850 from PLC2 to D900 PLC1
D850 from PLC3 to D901 PLC1
D850 from PLC4 to D902 PLC1
D850 from PLC5 to D903 PLC1
D850 from PLC6 to D904 PLC1
D850 from PLC7 to D905 PLC1
D850 from PLC8 to D906 PLC1

The data memory is an integer.

Share this post


Link to post
Share on other sites

Review the FINS commands SEND and RECV.

You do not tell us what plc you are using or the network type.

gtsuport

Share this post


Link to post
Share on other sites

Posted (edited)

CP1L-E
I have SEND/RECV some BOOLEAN (see picture), but no idea how to do that with data memory as integers.
Network type is Ethernet

send.JPG

Edited by Amsterdamstyle

Share this post


Link to post
Share on other sites

You just need to you the SEND and RECV instruction, NOT the function block.

Let's assume the FINS node numbers are the same as your plc numbers.

Network number is 1.  See attached.

RECV_Inst.jpg

1 person likes this

Share this post


Link to post
Share on other sites

If you are using Serial Communications between the PLC's I would use PLC Serial Links for such a small amount of exchanged data.

Requires NO programming in PLC!

Attached extract is for CJ2M PLC but available in most OMRON models.

Serial PLC Links.pdf

Share this post


Link to post
Share on other sites

Thanks for the replies! How do i know what network number i have and where can i define the D200. D2001, D2002, D2003, D2004?

Sorry i'm not that experienced, working on it

Share this post


Link to post
Share on other sites

Use MOV instructions.  See below.

 

Omron_MOV.jpg

Share this post


Link to post
Share on other sites

Got it working, thanks for that. Is it possible to receive more data from the same plc?

I also want to receive D902 from PLC node 4 and write it to D702 local node.

Tried to copy and paste this but it only receive the D901

Knipsel.JPG

Share this post


Link to post
Share on other sites

In your control word for the RECV instruction, change D300 to 2.

That is the number of words to receive.

Received data will go in words D701 and D702.

gtsuport

Share this post


Link to post
Share on other sites

Posted (edited)

Hi...If you are using the Ethernet module, you might want to look at the "socket services" functions. I haven't used sockets with Omron PLCs, but it seems to be reasonably well documented. The socket services just send and receive packets of bytes, with the meaning of those bytes being up to you.If you are using the sockets services to just do some basic handshaking, I would suggest just sending some bytes with each bit corresponding to some boolean state. This is probably easier to handle at the PLC end, and it should be straightforward to pack and unpack the bits at the PC end. There should be no problem sending integer values as well.

 

pcb manufacturing and assembly

Edited by AraldoJanes

Share this post


Link to post
Share on other sites

Send/Recv instructions are way easier to implement than socket services.  My 2 cents...

Share this post


Link to post
Share on other sites

hello,

What if i am using 2 CJ2m-CPU31,

PLC1 - Unit#0 - Node #2 - 

PLC2- Unit#6- Node#6

What should i put to may local and remote node of my rcv command.

Thank You in advance

 

Share this post


Link to post
Share on other sites

Depend on which plc the RECV instruction is in and where the data is coming from.

Check the CJ2M Instruction Reference manual:  CJ2 Instruction Reference

gtsuport

Share this post


Link to post
Share on other sites

Hello,

I need to send data from plc 1 to plc 2.

then send back to plc 1 one's i receive the data to reset or clear the data from plc 1.

thank you.

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now