This site uses cookies for functional purposes. To continue please read and agree to our Data Privacy.

By closing this message, you consent to our use of cookies on this device.

Share questions in our PLCnext forum

  1. Danyel van Tol
  2. PLCnext Technology & PLCnext Controls
  3. Thursday, 04 October 2018
  4.  Subscribe via email

Hey there PLCnext community,

I've been looking into connecting the PLCnext to an existing webserver/database. I've looked into the command line for the interfaces and can only find eth0. 

The PLCnext has two ethernet interfaces however they are switched / integrated switch (as mentioned on the store page), what does that mean? 

The reason for this is that it would be preferable for the PLCnext to have 2 network adapters, so i can keep de controller pc attached while the PLCnext can also connected to the webserver. The webserver network has a different ip address range than the controller pc network.

Greetings,

Danyel

 

Mechatronics student - Intern at JBsystems Vlaardingen Netherlands 

Martin PLCnext Team Accepted Answer Pending Moderation
1
Votes
Undo

Hello Danyel,

There is a single Ethernet adapter in the AXC F 2152, with a single MAC address. However there are two physical ports, which are internally switched ... just like in a stand-alone unmanaged Ethernet switch (for example our FL SWITCH SFN 8TX).

It is possible to add multiple IP addresses to one Ethernet adapter, which may allow you to achieve what you want. Here's how:

https://plcnext-community.net/index.php?option=com_easydiscuss&view=post&id=610&Itemid=224&lang=en#reply-611

Alternatively, in future there will be the possibility to add a second Ethernet adapter to the left side of the AXC F 2152.

Hope this helps.

- Martin.

Phoenix Contact Electronics Headquarters - Support Center

Danyel van Tol Accepted Answer Pending Moderation
0
Votes
Undo

Hey Martin,

Thanks for the answer about the switch also, the suggested forum post worked!

Next time i wil search the forum more closely if i have a question before posting myself wink

Greetings,

Danyel

Mechatronics student - Intern at JBsystems Vlaardingen Netherlands 

Frank PLCnext Team Accepted Answer Pending Moderation
1
Votes
Undo

Hi Danyel,

I can give you an additional outlook to 2019.

Next to the left side extension module it will be possible (approx. mid of next year) to configure both ports of the AXC F 2152 to have independent MACs. Means you are able with the extension to have three independent MACs smile.

Take care!


Phoenix Contact Electronics Headquarter - Support Center

Danyel van Tol Accepted Answer Pending Moderation
0
Votes
Undo

Hey PLCnext community,

Even though it worked at first, right now i can no longer connect to the PLCnext with the controller pc. The moment i plug in the second ethernet cable, the connection is lost.

If i disconnect the second ethernet cable, and restart the PLCnext, a connection can be established.

I have also noticed that if i have uploaded a PCWE program to the PLCnext it even loses connection with the Di/o and Aio modules (i'm using the starterkit) and it restarts (booting led is on).

This is a screenshot of the network Interface file that i use:

interface file

Greetings,

Danyel

 

 

Mechatronics student - Intern at JBsystems Vlaardingen Netherlands 

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Hi Danyel, 

- When you say "the connection is lost", do you mean the connection between PC Worx Engineer and the AXC?

- Can you still ping the AXC on the "lost" network?

- Do all other activities seem OK on both networks - i.e. you can ping to and from the AXC on both networks, establish SSH sessions from both networks ... ?

- Does the AXC ever finish rebooting after this event, or do you always need to power-cycle to fix it?

- If it never runs again without power cycle - what exactly is the LED pattern on the AXC after this event?

- Are you able to send the Ouput.log file from the PLC, after this problem occurs? (there's more info about that log file, including where to find it, here).

If the AXC appears to reboot when you plug in the second network, then this would explain why you would lose the connection from PC Worx Engineer (but it doesn't explain why the AXC reboots).

Phoenix Contact Electronics Headquarters - Support Center

Danyel van Tol Accepted Answer Pending Moderation
0
Votes
Undo

Hey Martin,

- When you say "the connection is lost", do you mean the connection between PC Worx Engineer and the AXC?

- Can you still ping the AXC on the "lost" network?

All types of connections, the winscp / putty connection, and no ping.

- Do all other activities seem OK on both networks - i.e. you can ping to and from the AXC on both networks, establish SSH sessions from both networks ... ?

connection is lost, and the test program, flashing leds stop working as well.

- Does the AXC ever finish rebooting after this event, or do you always need to power-cycle to fix it?

- If it never runs again without power cycle - what exactly is the LED pattern on the AXC after this event?

Sometimes it does, but no connection can be made, even so after a while it will fail and the only indicating light, LED D will turn orange/amber. Usually i had to power cycle the controller.

- Are you able to send the Ouput.log file from the PLC, after this problem occurs? (there's more info about that log file, including where to find it, here).

https://drive.google.com/uc?export=download&id=11nNQNOlEF7IKYr_n_4O7huq4G_dHtZx3

This is the current logfile, this logfile will contain entries from today as well. If the log files are unclear, i will have to recreate the problem tomorrow, please let me know if this interest you.

----------------------------- current status --------------------------

I got the PLCnext running with just the Router attached, the controller pc now connects through the router network. However, if a leave the setup alone for some time, a couple of hours, i can no longer connect and i have to reset both the router and the PLCnext.

There is something about the router that the PLCnext does not like, or maybe the other way around couldn't really tell you.

If it helps, the router is a "tp-link wr841n", and i have set it to client mode; aka WDS. The main network it's running on is a "tp-link wr702n".

Please let me know if you wish for a more precise logfile, i will delete the logfile and recreate the problem, and send the new logfile.

Greetings,

Danyel

Mechatronics student - Intern at JBsystems Vlaardingen Netherlands 

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Thanks Danyel,

Based on the Current Status, it seems that the problem probably isn't with the two IP addresses on the PLC, but perhaps just a problem on one network between the PLC and the router ... does that match with what you're seeing?

I'll take a look at the log file tomorrow.

- Martin.

Phoenix Contact Electronics Headquarters - Support Center

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

For any Community members who are interested - this appears to be a routing problem between the two Ethernet networks connected to the PLC. The problem could be solved by making the appropriate entries in the PLC's Routing Table - this should be guided by a network administrator - or else an external router could be used to direct traffic between the PLC and the two Ethernet networks.

- Martin.

Phoenix Contact Electronics Headquarters - Support Center

lj962500@gmail.com Accepted Answer Pending Moderation
0
Votes
Undo

The given answers in the above comments are genuine and useful. It had really helped me a lot. I would suggest to follow the given instruction and resolve the issue efficiently. Even, similar answers I had found on Facebook. You can check the Facebook page for more information.

Martin PLCnext Team Accepted Answer Pending Moderation
0
Votes
Undo

Thank you for the feedback.

As an update - the Ethernet extension module mentioned in this thread can now be seen in our online catalog:

http://www.phoenixcontact.net/product/2403115

Figure may contain other products.

This can be used for applications where a separate physical Ethernet adapter is needed.

- Martin.

Phoenix Contact Electronics Headquarters - Support Center

  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

We have 85 guests and 2 members online