PLC /Machine Network DHCP Persistence

I've recently started a new job where the Maintenance team and IT seem to have very little knowledge of machine / PLC networks. I've only ever worked in facilities that use static IP's for pretty much all machine devices. Shortly into second week, there was a power outage and when everything came back up, one of the PLC's would have a network error. I don't have a laptop to actually connect to any of the PLC's yet. Apparently they've been get help from a corporate engineer when they can't figure issues out and need to get into a PLC.

The issue was noticed because the machine HMI would lose connection to the PLC. I found the only way to get communication back was to either cycle power to the PLC, or remove the ethernet cable from it for a moment and then plug it back in. 15 minutes later, the same thing would happen. This has been going on for over a week where the maintenance staff is unplugging the cable to get communication back.

While I was looking into possible issues, I noticed that the MS and NS lights on the Compact Logix were red. MS flashing and NS solid. One indicates a firmware update in progress, the other a duplicate IP. I scanned the network with the PLC disconnected and there was no response on the IP address it's assigned. I can't imagine the PLC is trying to do a firmware update on it's own.

As a test, I unplugged the PLC from the Cisco switch it was connected to and ran it directly to the HMI while the machine was down for a day. No loss of communication and no network errors indicated by the PLC LED's. I then found out from IT that the network switch has 13 connections to it. 8 are unknown "production" devices. 7 are Apple devices, which I'm currently assuming are their somewhat new TV's as part of their SCADA system.

I reached back out to their IT team with concerns when I found out I could ping the PLC that's been having issues from a random office PC anyone in the building has access to. Apparently IT set up all the switches in the building so we attempted to get into it via a console port, but it just responds back with a low memory error. Tomorrow most of the building will be down so I'm going to reboot the switch and try to get back into the console with IT to see what may be going on.

While I was talking to the head of IT, they asked me about using DHCP for all of the PLC's and using DHCP Persistence to assign address per port. I can understand networking well enough to do my job but maybe not well enough to give good reasons to why that may be a bad idea. I understand if a PLC is plugged into a specific port, the switch would assign the address. Obviously if someone troubleshooting were to switch cables around, the wrong IP address would be assigned to the wrong PLC. The worst I can think would happen, is that potential messaging could still function and send the wrong information to a machine causing something unexpected to happen. For example, if a there were a read from a PLC that was being used to start a system, and the IP was set to the wrong device, the system could start at the wrong time. Specifically with a Micrologix or SLC that has the same bit addressing scheme. I'm not even sure if those devices would be capable of using DHCP in that way though.

After doing some research, I understand it's not uncommon to use Stratix switches with DHCP persistence in a local machine to make devices like drives easier to swap. I can't seem to find much on an entire machine network level though. Other than Controls guys disliking the idea of IT getting involved in their network for many legitimate and some not so legitimate reasons. That being said, I'd prefer to separate all of IT from the machine network for obvious security reasons and stick with Static IP's. I'm just hoping I can get some valid reasons why using DHCP persistence in this way is a bad idea. Or reasons why it's perfectly acceptable and I just don't understand enough.

Thanks,
Jason.
 
Well, if a cable is swapped like you said, and the PLC is assigned the wrong IP, then the HMI communicating to that PLC could toggle a bit that could have disastrous results. Imagine PLCA has a bit B3:0/0 that starts a pump and another PLCB has a B3:0/0 that starts a conveyor. PLCB gets PLCAs address, the HMI tries to start the pump in PLCA but sets the bit in PLCB that starts the conveyor. A simplistic example, but you get the idea.
 
Yes, that was my original concern. And it's good enough to push back with. I just want as much information as I can get. I couldn't find anything on Rockwell's knowledgebase specifically addressing it and most of the information I'm finding on forums is a decade old. I'd hate to just be stuck in my ways and overlook something that's perfectly okay.
 
I could potentially see DHCP persistence by MAC. That sidesteps all the "cable swap gives wrong IP" issues, but it also complicates device replacement. Now you need to go to IT when you need to swap a component, so they can adjust the DHCP table. Fair enough for planned maintenance, but a nightmare for on the fly changes. I'm not hearing that you have a ton of faith in the IT team at this point, so I'd sure try to avoid going that direction.

Most of the devices I use have a memory card or similar that transfers the IP and settings to the new device when swapping in a spare part, so we don't need the network to do it for us. DHCP sounds great at the IT level, but except for dedicated uplink interfaces I'd avoid it at the automation level.
 
DHCP is the enemy of control system maintainability and reliability. Your root problem is that IT is controlling your plant network and it appears to have no architecture to speak of. Prime opportunity to become 'the OT network guy'.
 
IT seem to have very little knowledge of machine / PLC networks.
From your lips to God's ears.
99% of the issues we have after installation/integration come from the IT department. Cameras, printers, desktops. One of their IT dorks refused to get off the subnet and gateway. We had to call corporate. They explained he was just hired for security three weeks before and was given two other properties, of which, he had made an entire mess of.

Get yourself an outside contractor (Stay on his/her Shoulder like a parrot). Change everything to static, with it's own subnet and gateway and stay off managed switches. If at all possible air gap. Tell IT if they come near your system again.................
Start taking classes at your local community college, hopefully at company expense.

It will be hard to understand how indispensable you will become until it happens.
 
Depending how big your operation is, you likely need an OT Network guy then get IT out of your world except some agree upon interface point like a iDMZ (industrial DMZ).

Persistent DHCP sounds like a good idea but the potential of it messing up is not worth the risk. OT is not plug and play, unlike IT, you have to check for physical operation and safety before you plug in a replacement device.

No, I'm not pretending for one second it would be easy, it's a battle at every place I ever worked at.
 
I'm doing an install right now. 6 24 port managed switches, 16 or so PLCs, three ignition servers, and twenty or so HMIs. IT put the PLCs on one VLAN, hmi ignition clients pcs on another, Ignition server on a third, and is using routing paths on EACH individual port on each switch. Such that a given port on a switch can only communicate via predesignated vlan paths. So plug an hmi into a "plc" port and nothing works. Worse, IT is remote and everything has to be done through a ticket system, so takes several hours to get a port reconfigured. It's been a nightmare.
 
DHCP not just a disaster in a PLC automation, it's a direct machine safety hazard.

Especially if you have any safety devices on the network, like safety PLCs, remote safety I/O, redundant I/O or VFDs/servodrives using for example profinet/profisafe.

But there can also be process safety issues like a VFD starting and running at speed when that was meant for another VFD. But someone mistakenly swapped the network cables somewhere when they replaced something in the middle of the night.

There are also plenty of industrial devices that don't support DHCP at all. They simply require a static IP address.

I wouldn't want to be the IT guys when an someone get hurt on the factory floor, because they made a mistake at a patch panel or downloaded the wrong switch config to a switch.

If the IT guys want's to be liable for machine safety then sure...go ahead.
 
DHCP not just a disaster in a PLC automation, it's a direct machine safety hazard.

Especially if you have any safety devices on the network, like safety PLCs, remote safety I/O, redundant I/O or VFDs/servodrives using for example profinet/profisafe.

But there can also be process safety issues like a VFD starting and running at speed when that was meant for another VFD. But someone mistakenly swapped the network cables somewhere when they replaced something in the middle of the night.

There are also plenty of industrial devices that don't support DHCP at all. They simply require a static IP address.

I wouldn't want to be the IT guys when an someone get hurt on the factory floor, because they made a mistake at a patch panel or downloaded the wrong switch config to a switch.

If the IT guys want's to be liable for machine safety then sure...go ahead.
Agree with everything you said except the safety devices part.

every networked safety device I remember using (admittedly almost always profisafe) has had some kind of password/secret assigned to it (profisafe address), and the documentation insists that you are strictly forbidden from repeating these addresses anywhere on the same network (intentionally defined as broadly as possible in the docs), and this is checked within the Portal project itself. If the profisafe addresses don't match in the safety data, they go straight to stop (or whatever the defined safe state is). Some newer devices take it a step further and compare the Source address (controller) in addition to the usual the Destination address (safety device). Your process won't run, but it'll be dang safe while it doesn't run. If you're repeating your profisafe addresses, that's on you, not the network.

Please don't take this as me saying "DHCP is a good idea, follow IT's plan", for sure, at the process level, giving device A signals meant for device B is a recipe for disaster. The safety IO comms specifically include measures to protect against stuff like that.
 

Similar Topics

-- Reposting out of the practice threads -- I was wondering if anyone had some experience viewing the logic ladder comments to see why my machine...
3
Replies
153
Views
I'm replacing physical buttons with an HMI screen on a fabric printing machine. The goal is to control X and Y axis manually via on-screen buttons...
20
Replies
1,535
Views
I have a customer that bought Mitsubishi software and a cable, he uploaded the program from a failing CPU that was running his machine, its a "Old...
0
Replies
428
Views
Hi, I'm Gonzalo from Argentina. I'm trying to retrieve data provided by a Haitian machine and send it through a Raspberry Pi to display it in...
2
Replies
633
Views
Hi All, I have an .rsp file which I suspect is what I need to have loaded onto our AB PLC/5 based machine. We had a power interruption, and now a...
17
Replies
1,501
Views
Top