RobotStudio event

[RW6.08] Problem with network between LAN3 and WAN

DenisFR
DenisFR ✭✭✭
Hello,
In our case, we have an IRC5 controller using Profinet to dialog with PLC.
This is defined to use LAN3 with in SIO.cfg:
IP_SETTING:
      -Name "PROFINET Network" -Address "10.238.255.79"\
      -SubnetMask "255.255.255.224" -Interface "LAN3"
STATIC_VLAN:
      -Name "X5" -Interface "LAN3"

To have RS working in the same wired network, we defined WAN like this in ctrlsettings.xml:
  <WAN type="FIXED" ip="10.238.255.106" subnetMask="255.255.255.224" defaultGateway="10.238.255.106">
    <!--WAN type can be FIXED, DHCP or NONE-->
  </WAN>

In my computer I set IP to 10.238.255.116 with 255.255.255.224 subnet mask.
Profinet works well, but WAN doesn't.
When pinging it most of packet are lost (not all, so RS can add controller in OnLine but failed some time after on timeout).
Connecting to Service port works well too.

Comments

  • We have seen this before and are looking into the cause of it.

    I'll try to remember to keep you posted on the progress.

    Maxim Riabichev
    PC Software Support Engineer
  • DenisFR
    DenisFR ✭✭✭
    edited June 2020
    Hello,
    For your information, I've changed WAN to 10.238.254.116 with 255.255.255.224. This still doesn't works.
    I have to change mask to 255.255.255.0 to get it working.
    EDIT: In fact this works just after boot, but after not.
    Seems that ProfiNet make this failed...
    EDIT2: After isolating LAN and WAN (with first config) all works well. But I can't have access at all in one connection as expected.
    Post edited by DenisFR on
  • dnilsson
    dnilsson mod
    edited June 2020
    The problem seems to be that you have miscalculated your subnet mask.
    Using a 224 mask with the IP 10.238.255.79 gives you an IP-Range of 10.238.255.65 - 10.238.255.94. That's why you can't get your WAN to work with the IP set to 10.238.254.116, unless you ease up the the network mask which you do by setting it to 0, since that allows the full ip range.
  • DenisFR
    DenisFR ✭✭✭
    Hello,
    @dnilsson: No, that's what I want.
    LAN3 @10.238.255.79/27 for PN: 10.238.255.64 to 10.238.255.95. PLC is @10.238.255.70/24
    WAN @10.238.255.106/27 for socket and RS: 10.238.255.96 to 10.238.255.127. Some devices using socket @10.238.255.107/27 & 108/27
    And Computer @10.238.255.116/24 to communicate to WAN and PLC.

    This configuration is like that because you can't have RS link (maybe socket too) where ProfiNet is defined.

    This theoretically should works. But connecting LAN3 and WAN does WAN failed.
    For now, I've added a switch for WAN and all works fine. But I have to change my computer wire to switch between PLC and RS.
  • DenisFR
    DenisFR ✭✭✭
    Hello,
    I think I have a reason.
    LAN3 and WAN are the same interface: they have the same MAC address.

  • DenisFR
    DenisFR ✭✭✭
    Hello,
    Does it exist an easy fix to allow other protocol in LAN3 when PROFINET is defined?
  • lemster68
    lemster68 ✭✭✭
    Hi Denis,

    Some years ago I had Profinet and the plant network both on the LAN port.  The plant was only using FTP/NFS option.
    Lee Justice
  • DenisFR
    DenisFR ✭✭✭
    I need plant could connect with RS, and robot communicate with other device with Sockets.
    Yes, some years (more than 2) ago this works well, but since a few time you can't do anything else than Profinet on the dedicated port. Maybe to prevent network lost packet...