News:

  • November 23, 2026, 11:38:28 AM

Login with username, password and session length

Author Topic: Cannot connect via ethernet  (Read 18716 times)

RaymondC

  • Full Member
  • ***
  • Posts: 27
Cannot connect via ethernet
« on: November 03, 2021, 03:48:07 PM »
Hello,

I started a new project with a BRX PLC (BX-DM1E-10ED13-D). This is my third with these PLCs (exact same model). On the previous two it was very easy to assign an IP address to the PLC and then connect. For some reason I cannot connect to this PLC. I cannot connect with the DoMore software nor can I ping the address. The DoMore software does show the IP address that I assigned.

I have ruled out any issue related to the PC or the cable by using the exact same PC and cable to connect to the other two PLCs.

I am using DoMore software  version 2.8.3 and the PLC (connected via USB) is reporting an OS version of 2.8.4. I can't imagine this slight version discrepancy is a problem.

Is there a way to reset the PLC to factory defaults?  Any suggestions? I'm truly baffled.

Thanks.

Ray

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3858
    • Host Engineering
Re: Cannot connect via ethernet
« Reply #1 on: November 04, 2021, 09:19:29 AM »
1. Using NetEdit (or USB connection using Designer), what is the PLC's IP Address and Subnet Mask
2. What is your PC's IP Address and Subnet mask (from cmd.exe box, type "ipconfig" on the cmd prompt)

RaymondC

  • Full Member
  • ***
  • Posts: 27
Re: Cannot connect via ethernet
« Reply #2 on: November 04, 2021, 12:47:25 PM »
I use a USB connection and Designer. The PLC's address is set to 192.168.8.45 with a subnet of 255.255.255.0. My other two PLCs are set to .43 and .44. I can connect to those two just fine.

The PC is set to a fixed IP of 192.168.8.10 with 255.255.255.0.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3858
    • Host Engineering
Re: Cannot connect via ethernet
« Reply #3 on: November 04, 2021, 02:10:31 PM »
I use a USB connection and Designer. The PLC's address is set to 192.168.8.45 with a subnet of 255.255.255.0. My other two PLCs are set to .43 and .44. I can connect to those two just fine.

The PC is set to a fixed IP of 192.168.8.10 with 255.255.255.0.

Try power cycling your switch that the PLC and the switch your PC is connected to (possibly the same one).  I've had issues with switches "remembering" too much.

Greg

  • HostTech
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 702
  • Hmmm...
    • Host Engineering, Inc.
Re: Cannot connect via ethernet
« Reply #4 on: November 04, 2021, 06:24:42 PM »
I use a USB connection and Designer. The PLC's address is set to 192.168.8.45 with a subnet of 255.255.255.0. My other two PLCs are set to .43 and .44. I can connect to those two just fine.

The PC is set to a fixed IP of 192.168.8.10 with 255.255.255.0.
Also, could anything else on your network have that same .45 address? Address conflicts will do weird things like this.
There are two types of people in the world; those that can extrapolate from incomplete data sets.

RaymondC

  • Full Member
  • ***
  • Posts: 27
Re: Cannot connect via ethernet
« Reply #5 on: November 05, 2021, 01:42:48 PM »
Power cycled the switch and that didn't help. Only the PLC and the PC are connected to the switch so there are no other network devices that could be in conflict. I also tried bypassing the switch and plugging the PC directly into the PLC's ethernet port. As a reminder, I have two other PLCs of the exact same model and those connect just fine. I think I need to return it as defective.

The only thing I can think of trying is a reset of the entire PLC to factory defaults. Does such a feature exist?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6180
  • Yes Pinky, Do-more will control the world!
Re: Cannot connect via ethernet
« Reply #6 on: November 05, 2021, 03:30:45 PM »
Power cycled the switch and that didn't help. Only the PLC and the PC are connected to the switch so there are no other network devices that could be in conflict. I also tried bypassing the switch and plugging the PC directly into the PLC's ethernet port. As a reminder, I have two other PLCs of the exact same model and those connect just fine. I think I need to return it as defective.

The only thing I can think of trying is a reset of the entire PLC to factory defaults. Does such a feature exist?

Yes.

1. Power down.
2. Set all 8 DIP switches to ON.
3. Set mode switch to TERM.
4. Power up. Unit will power up in bootloader, as evidenced by the 4 LED chase pattern.
5. While in the bootloader, do this mode switch sequence starting with TERM: RUN/TERM/RUN/TERM/STOP/TERM/STOP/TERM.
6. On the last couple of steps of the sequence, you'll see the chase pattern stop, then start scanning again.
7. The yellow MEM LED will be on at that point indicating it is erasing.
8. When the yellow LED goes off, it's done.
9. Power down, turn all DIPs back off and power back up.

...we affectionately refer to that as the "magic handshake". Works on all Do-more PLCs.
« Last Edit: November 05, 2021, 03:47:05 PM by BobO »
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Re: Cannot connect via ethernet
« Reply #7 on: November 05, 2021, 05:48:49 PM »
I had a BRX with this problem too and the above procedure worked.

DanielM

  • Newbie
  • *
  • Posts: 2
Re: Cannot connect via ethernet
« Reply #8 on: November 13, 2021, 06:55:21 AM »
Have you considered that the new Whitelisting feature could be the culprit?

In my case, I think I misunderstood how whitelisting tables work and it further appears to me that deselecting the Enable Server Whitelist on the DmD System Configuration does not switch the whitelisting checking off completely.
Make no mistake, I like the Whitelist feature.
Refer to paragraph 5 at the bottom of page 4 of ?Do-more Updates Rel 2.8.3, February 1, 2020?

I initially interpreted the services marked with a cross in the tick-box on the left-hand-side table as services that one would want to be controlled by the whitelist feature, and I interpreted the whitelist entries table on the right-hand side to be for all the services and not only for the service selected, i.e. the one with the dotted rectangle around it.
After spending a lot of time trying to figure out why the webserver wouldn?t work, I realised that there are separate whitelist entry tables for each of the services.
In retrospect, it is evident that separate whitelists for each of the services provide the most comprehensive degree of flexibility in configuring access rights.
I want to propose a simple solution to make it more apparent that there is a ?Whitelist Entries? table for each service, especially for someone starting to use the DmD whitelist feature or someone who hasn?t used it for a while.

I want to suggest adding the service name after the ?Whitelist Entries? heading in the Whitelist Entries table.
With my proposal the heading would then be reading:
Whitelist entries for @IntEthernet: Programming, or
Whitelist entries for @IntEthernet: DL/NetEdit/Misc, etc.

In my view, it would help anyone to immediately understand that the whitelist is for the selected service only.

Lastly, deselecting the Enable Server Whitelist on the DmD System Configuration does not switch the whitelisting checking off!
I found that if there is an X against any of the Services in the Server Whitelist Settings panel, and there are no entries in the Whitelist Entries for that Service, the BRX will not respond.

That's why I couldn't find the PLC even with NetEdit3, and why DmD wouldn't connect to the PLC.
Surely if one deselects Enable Server Whitelist it should disable whitelist checking and allow connections from any of the subnet addresses.
I wonder if it is a bug?


BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6180
  • Yes Pinky, Do-more will control the world!
Re: Cannot connect via ethernet
« Reply #9 on: November 15, 2021, 08:38:48 PM »
I want to suggest adding the service name after the ?Whitelist Entries? heading in the Whitelist Entries table.
With my proposal the heading would then be reading:
Whitelist entries for @IntEthernet: Programming, or
Whitelist entries for @IntEthernet: DL/NetEdit/Misc, etc.

In my view, it would help anyone to immediately understand that the whitelist is for the selected service only.

Good idea. Easy.

Lastly, deselecting the Enable Server Whitelist on the DmD System Configuration does not switch the whitelisting checking off!
I found that if there is an X against any of the Services in the Server Whitelist Settings panel, and there are no entries in the Whitelist Entries for that Service, the BRX will not respond.

That's why I couldn't find the PLC even with NetEdit3, and why DmD wouldn't connect to the PLC.
Surely if one deselects Enable Server Whitelist it should disable whitelist checking and allow connections from any of the subnet addresses.
I wonder if it is a bug?

I duped it, and it is absolutely a bug. Will fix pronto.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6180
  • Yes Pinky, Do-more will control the world!
Re: Cannot connect via ethernet
« Reply #10 on: November 16, 2021, 01:44:09 PM »
Whitelist master enable fixed. Big hole. Sorry.

Tweaked the UI a bit to be more intuitive.

"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

DanielM

  • Newbie
  • *
  • Posts: 2
Re: Cannot connect via ethernet
« Reply #11 on: November 17, 2021, 04:38:52 AM »
Thanks that is excellent.  I like those changes. When and how will it be available as an update, please?
I found though that after I fixed the permission entries that I had to CLEAR the PLC Memory and reprogram to restore access. (The link to the PLC wouldn't establish, even while all the connection parameters were correct.
Could you try and replicate that?

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6180
  • Yes Pinky, Do-more will control the world!
Re: Cannot connect via ethernet
« Reply #12 on: November 17, 2021, 11:40:22 AM »
Thanks that is excellent.  I like those changes. When and how will it be available as an update, please?
I found though that after I fixed the permission entries that I had to CLEAR the PLC Memory and reprogram to restore access. (The link to the PLC wouldn't establish, even while all the connection parameters were correct.
Could you try and replicate that?

The corrected implementation is working as I would expect. I enable, it filters, I disable, it stops filtering. I will ensure that a disabled/empty config still works.

 I know of no specific reason that clearing the config wouldn't correct it now, although I could easily see that there could be reconfig hole that it might fall in if there were no config. I don't think clearing the PLC would be necessary though, but rebooting it might be. Either way, I more interested in whether the fix works correctly, and it does.

We will be releasing next month.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

RaymondC

  • Full Member
  • ***
  • Posts: 27
Re: Cannot connect via ethernet
« Reply #13 on: November 23, 2021, 03:10:42 PM »
Sorry for taking so long to get back to this. We had another PLC available so I switched to that one to finish the project.

Today, I powered up the problematic one, applied your "magic handshake" procedure and it worked. I set the IP address and connected successfully.

Thank you all.

Ray

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6180
  • Yes Pinky, Do-more will control the world!
Re: Cannot connect via ethernet
« Reply #14 on: November 23, 2021, 05:31:22 PM »
Sorry for taking so long to get back to this. We had another PLC available so I switched to that one to finish the project.

Today, I powered up the problematic one, applied your "magic handshake" procedure and it worked. I set the IP address and connected successfully.

Thank you all.

Ray

Earlier versions of Windows were a bit friendlier on how they handled the broadcast packets that we use for device discovery in NetEdit and DmD, and rarely did devices ever disappear. As they've improved security (I assume) they've become less friendly, and if devices get configured with subnets outside your NICs, we don't get the answers back even though the device did answer. In that case, it is sometimes best to wipe the PLC and start over...as worked for you. Not ideal I know, but we've never found a way to tell Windows to trust us.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO