Purpose: The purpose is to show how to use tag data links to establish communication between two CJ2 PLCs to send data between the PLCs
Procedure:
[Step 1]
Get online with the CJ2H and give it an IP address.
[Step 2]
Click on the IO table and unit setup and make sure you are in program mode.
[Step 3]
You will see this tab. Put in an IP address and a subnet mask.
[Step 4]
For this example the CJ2H will have 192.168.250.3 with a subnet mask of 255.255.255.0
[Step 5]
Go to network configurator make a new project and make an EthernetIP connection.
[Step 6]
Set the communications for the network configurator software. In this example I am using EthernetI/F
[Step 7]
Go to “network” and then press connect to get online with the network configurator software.
[Step 8]
Be on the same subnet and press OK.
[Step 9]
Press OK.
[Step 10]
Use existing network and press OK.
[Step 11]
Press network and then press upload.
[Step 12]
Press no.
[Step 13]
Press no.
[Step 14]
Press OK. You can click “delete offline devices” as well. In this example you can press OK.
[Step 15]
Here are both the PLCs the CJ2M and the CJ2H for the network.
[Step 16]
Double click on the CJ2M PLC
[Step 17]
Click on the “tag sets” tab and then press “Edit tags”.
[Step 18]
Click the new tab. Make sure you are on the Out – Produce tab. The output will send data from the CJ2M to the CJ2H.
[Step 19]
Create a tag and put a byte size. This example is using a CJ memory address D100 with 4 bytes (2 words) of data.
[Step 20]
Press Close.
[Step 21]
Press In – Consume.
[Step 22]
For input: coming from the CJ2H to the CJ2M.
[Step 23]
Press close.
[Step 24]
Press OK. You should be able to see the tag(s) in the chart.
[Step 25]
Press “yes” to create the tag sets.
[Step 26]
Press “OK”.
[Step 27]
Double click the CJ2H (it shows CJ2B-EIP21 which is what they call the EIP portion of the CJ2H-CPU__-EIP model).
[Step 28]
Click on the “tag Sets” and press “edit tags”.
[Step 29]
Press Out – Produce and select “new”.
[Step 30]
The image below is showing H100 which is holding relay memory which is memory retentive and bit level addressable.
[Step 31]
Press close.
[Step 32]
Go to the In-Consume and press “New”.
[Step 33]
For the consume tag in this example is a holding area word 0 and is 4 bytes (2 words) so H0 and H1.
[Step 34]
Press close
[Step 35]
Press OK.
[Step 36]
Press Yes
[Step 37]
Press OK.
[Step 38]
Double click the CJ2M
[Step 39]
Press the arrow button to register the connection
[Step 40]
Double click the registered connection
[Step 41]
Press the arrow down and select the 4 byte data at D0
[Step 42]
This step shows the CJ2H is sending data from H100 to D0 in this established connection.
[Step 43]
Press close
[Step 44]
Press OK
[Step 45]
Now the CJ2M from D100 will send data to the CJ2H H0 memory
[Step 46]
Press Close
[Step 47]
Double click the CJ2H
[Step 48]
Register the connection
[Step 49]
Double click the registered connection
[Step 50]
This screen will appear below and match the output tag to the input tag
[Step 51]
Press OK
[Step 52]
Go to `network` and press `Connect`
[Step 53]
Press OK when on the correct subnet
[Step 54]
Press OK
[Step 55]
Go to `network` and press `download`
[Step 56]
This is what it looks like when the configuration is getting downloaded
[Step 57]
Press OK
On the CJ2M we have FFFF that we got from the CJ2H PLC
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article