Sign in to follow this  
Followers 0
PLC_L

PLC to PLC Comm issue

13 posts in this topic

Hi All, I'm having some issue when trying to exchange data between two CJ series PLCs, any dude able help to enlighten me? Here are my setup, slave PLC CJ2x with onboard ethernet port (IP=192.168.1.11) master PLC CJ1x with etn21 card install (IP=192.168.1.10) Both connect via a switch and i'm using cpu011_receivedata FB to retrieve some data from slave PLC, unfortunately the comm doesnt seems work fine for me. Is configuring routing table a must for the comm of both PLC to work? FB configuration: ----------------------- network add = 0 (local network?) node add = 11 unit add = 0 (CPU unit?) Is recv or echrd work for my case? do i need any routing table setup if using either instruction?

Share this post


Link to post
Share on other sites
You do not need a routing table for connections in the same subnet.

Share this post


Link to post
Share on other sites
You don't need a routing table if you only have 1 CPU Bus module on the PLC that is sending the FINS command. If you have more than 1 CPU Bus module, and a PLC sends a FINS command to FINS Network 0, it will always go to the lowest CPU Bus Unit Number (the rotary switch on the card). I always suggest (and implement myself) proper FINS routing with a Routing Table. It is a small investment up front. For a quick tutorial on FINS routing, see the Youtube video here.

Share this post


Link to post
Share on other sites
Is the Etn consider CPU bus module? Because I'm having two Etn module. So how should I setup the routing table in this case? Both Plc need to create a routing table!?

Share this post


Link to post
Share on other sites
Yes, if you have more than one ETN module you will need a routing table. Both PLCs will need one.

Share this post


Link to post
Share on other sites
Ok, so the cj1x Plc with two Etn on it, and cj2x with onboard Ethernet. I'm using the 2nd Etn to link with cj2x, so i will need to create a local fins network? my Etn unit number configured as 1, then my cj2x unit number must configure the same as Etn? PLC Power cycle require after transferring routing table?

Share this post


Link to post
Share on other sites
The unit numbers on the 2 plcs communicating do not need to match.The FINS Network numbers assigned to the Ethernet card by the FINS Routing Table do need to match.You do not need to cycle power after transferring a FINS Routing Table. All CPU Bus modules are restarted after a routing table is downloaded.There is a video on Youtube that shows setting up a FINS routing table with CX Integrator. search for FINS Routing.

Share this post


Link to post
Share on other sites
Ok thanks a lot for the help. Finally got both Plc in comm. Now I'm facing another problem. The function block retrieve data in int, however the Plc data is in real. I'm trying to get 2 int but the value don't seems to be match with the reading in real.

Share this post


Link to post
Share on other sites
And after transfer the routing table to Plc, the first Etn module showing an erh alarm led lid on. Same happen for the cj2 Plc, however no error noticed from the program. Is that normal?

Share this post


Link to post
Share on other sites
If there were no errors, and downloading the Routing Table caused an error, then the routing table is probably incorrect.

Share this post


Link to post
Share on other sites
Ok i found the root cause finally, because i have two etn modules under the same plc, but routing table only configure for 2nd etn, hence 1st etn error. Alarm gone after include routing configuration for 1st etn also. However another concern arise, that is the 1st etn is link to scada(wonderware) network, so i'm abit worry if configure routing table for 1st etn will require any changes from the SCADA site in order to comm?

Share this post


Link to post
Share on other sites
If the SCADA software was communicating to the PLC without a Routing Table, that means it was configured to communicate using FINS Network Number 0. Any ETN card will respond to commands using FINS Network Number 0, even if the Ethernet card has a FINS Routing Table entry. You should be able to add the first ETN to the Routing Table without causing any probems for your SCADA software.

Share this post


Link to post
Share on other sites
Thanks dude, successful added routing table for both etn now and scada is working as usual :)

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
Sign in to follow this  
Followers 0