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.
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.