Rifet

Sending data from CJ2M to CJ1M

5 posts in this topic

Hi guys. I need help. I have 2 plcs: CJ2M CPU15 & CJ1M CPU13

 

I need siply to send D300 and D301 from CJ2M to CJ1M

What is the easiest way for achieving this? 

What cable do I need to use to connect these 2 plcs?

Share this post


Link to post
Share on other sites

If your CPUs have RJ45, Omron FINS ethernet is the easiest choice. I usually wire multiple CP1L-E that talk to each other in a network like this. It doesn't work to the same extend with a regular CP1L with CP1W-CIF41 - this can only REPLY back data. It won't process any network commands in the program but can answer a call.

Set up the IP address and the FINS node on the configuration page of each PLC - nothing else needed. CPU1 is 250.1 node 1, CPU2 is 250.2 node 2, and so forth.

1.png.47dc9a8aa646e897659c139bfc267a66.p

Drag the SendData function block from the CX-Programmer library and set the parameters.

2.png.e48e9773624c465e36ceed55c867068e.p

  • Network address should be local network (0 - default).
  • Node address is the node of the CPU you want to send data to.
  • Unit address is the type of device (0 for a PLC - default).
  • Send/receive area ID is the type of memory you want to exchange (P_WR for Ws, P_CIO for I/Os, P_DM for Ds)
  • Send/receive area number is the starting channel to write from/write to.
  • Data size is the number of channels.

This is all in the pdf you bring by hitting right click -> function block reference.

You can use the opposite function, RecvData, to read from a PLC that can't send commands, like the aforementioned CP1L.

Share this post


Link to post
Share on other sites

For your application and small amount of data you could use Serial PLC Link to exchange data via the serial ports of each PLC.

Very simple, reliable and easy to setup. Requires NO PROGRAMMING in the PLC.

It is setup/configured in the PLC settings.

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