Protect The PLC

This week, we had our new E&I tech accidentally download the wrong program to the wrong controller. We have 8 almost identical process lines, but there are slight differences that are enough to cause a real problem if we put the wrong program file on the wrong line. He did not pay attention to the file name or the comments that list which process line a specific file is for.

I know the controller has a serial number (All L55s). They are all on an Ethernet IP network, so is there any way I can compare the controller serial number to a static number buried deep in the program file and compare the ip address of that PLC (ENBT card) as well, and if it's not correct, fault the controller somehow or better yet, somehow set it so it won't run.

Not sure if anyone has done this or even if it can be done, but I thought I would at least ask.
 
If the CPUs have unique names, the tech would have been warned that the file they were downloading did not match the processor. And the project path wouldnt have matched, so they would have had to deliberately select a different IP. Sometimes you can't protect against ignorance.

If there are eight machines and eight programs, use digital inputs, and binary hardwire encode those three inputs to each machine. Then if the program that goes with that machine doesn't have the right inputs on, don't run the machine and alarm. If you want to fault the processor, compare the 3 bits and if they don't match, purposely move a value into a non existent array index.
 
This week, we had our new E&I tech accidentally download the wrong program to the wrong controller. We have 8 almost identical process lines, but there are slight differences that are enough to cause a real problem if we put the wrong program file on the wrong line. He did not pay attention to the file name or the comments that list which process line a specific file is for.

I know the controller has a serial number (All L55s). They are all on an Ethernet IP network, so is there any way I can compare the controller serial number to a static number buried deep in the program file and compare the ip address of that PLC (ENBT card) as well, and if it's not correct, fault the controller somehow or better yet, somehow set it so it won't run.

Not sure if anyone has done this or even if it can be done, but I thought I would at least ask.
If you are downloading the program, It has to be stopped anyways. Since it is networked, I would unplug the network. If you are editing, well it is running, that is a different story. I like the digital identifier.
George
 
Is it impractical to leave the CPU in RUN instead of REM? then at least you could not target it for downloads without first physically verifying that it's the station you intended to access.
I say that but every CPU in my place lives in REM 24/7
The problem with that is on some faults the CPU stops, but if in RUN immediately restarts and continues running. In REM it stops and shuts down the machine.

For the OP it may be a little involved, but maybe have the IO of each machine different from each other.

I worked in a shop that had a Siemens run system filling a room with 11 PLC's, 8 HMI's and a SCADA PC on one PPI network. For that they called in a programmer from the local Siemens office that was familiar with the system and even he occasionally, and more than once while I was there, downloaded a program to the wrong PLC.
 
This week, we had our new E&I tech accidentally download the wrong program to the wrong controller. We have 8 almost identical process lines, but there are slight differences that are enough to cause a real problem if we put the wrong program file on the wrong line. He did not pay attention to the file name or the comments that list which process line a specific file is for.

I know the controller has a serial number (All L55s). They are all on an Ethernet IP network, so is there any way I can compare the controller serial number to a static number buried deep in the program file and compare the ip address of that PLC (ENBT card) as well, and if it's not correct, fault the controller somehow or better yet, somehow set it so it won't run.

Not sure if anyone has done this or even if it can be done, but I thought I would at least ask.
This is a common problem for ALL network devices.

Comparing serial number won't work because you need to be able to easily replace a faulty PLC - without having to make changes in the progam.

If you need to protect the machine from mistakes like this, I'm with @robertmee . You need to have a key in the I/O that the program can check before executing the program. Like 3 hardwired digital inputs to identify which one of the 8 machines it's connected to.

From a network security point of view, you should avoid having different machines on the same network segment. And you can have network access control to prevent some of these mistakes. But that is another topic.
 
If the CPUs have unique names, the tech would have been warned that the file they were downloading did not match the processor. And the project path wouldnt have matched, so they would have had to deliberately select a different IP. Sometimes you can't protect against ignorance.

If there are eight machines and eight programs, use digital inputs, and binary hardwire encode those three inputs to each machine. Then if the program that goes with that machine doesn't have the right inputs on, don't run the machine and alarm. If you want to fault the processor, compare the 3 bits and if they don't match, purposely move a value into a non existent array index.
I thought about that but didn't know if it was too Rube Goldberg to be practical.
 
For plants like that I make the first 2 rungs first extract the IP address. The second compares the IP to what the internal tags are set for. If they are not equal it jumps backwards until it fault the PLC.
 
one good habit to get into is to open studio5000 directly then upload the program from the plc to your laptop before you do anything.

then open the one you want to download to it and download it, then you have a backup of the existing program incase you need to put it back on and if you mess up and accidently flash the wrong file there is no harm done other than some downtime.

ive seen it a few times and ive done it before where i have downloaded an old program to the plc rather than uploading from it and caused myself grief so i always open studio and select from upload to makesure
 
For a CompactLogix, you can configure a MSG instruction:
Service code: e
Class: f5
Instance: 1
Attribute: 5
Destination is a SINT[70] (I don't remember why it's so big...)

You have to copy the bits of each SINT element into an INT.

There is probably a better/more elegant way to do this. I found that MSG configuration somewhere but I don't remember where. Might have been on here somewhere....
 
For a CompactLogix, you can configure a MSG instruction:
Service code: e
Class: f5
Instance: 1
Attribute: 5
Destination is a SINT[70] (I don't remember why it's so big...)

You have to copy the bits of each SINT element into an INT.

There is probably a better/more elegant way to do this. I found that MSG configuration somewhere but I don't remember where. Might have been on here somewhere....
For example you could always use a gsv to read the controller name or serial and push that to a tag

Then simply use a equ instruction to only allow it to run if the name/serial matches the one in the program

It would be relatively simple then to add an error to the hmi to say the wrong program is loaded
 

Similar Topics

I’ve seen repeated field failures where small built-in relays inside level controllers, meters or relay-type PLC outputs drive 120VAC contactor...
21
Replies
853
Views
Hello Everyone, I have in an electrical panel a simple 220VAC to 24VDC power supply (as shown on the picture bellow) can this type of power...
6
Replies
2,815
Views
Hi I'm trying to re-program a Mitsubishi FX0-20MR-ES plc but when i Initiate transfer from GX developer it keeps asking for an 8 digit Hexi...
1
Replies
3,410
Views
Hi there, I’m wiring a PLC with relay outputs (LM3109). Relay outputs have an on/off capacity of 2A resistance load. I would like to protect the...
2
Replies
2,866
Views
hi every body i have aproblem with a s7 program which is write protected by the designer i can't do any thing in the program when i go to...
0
Replies
4,168
Views
Top