Diy plc

james13

Member
Join Date
Apr 2014
Location
Brisbane
Posts
10
So I decided to build a very simple PLC to put all my knowledge into one fun project. The question I'd like to throw out there relates to the real time program updates. Does anyone know how they allow program changes with out stopping the process or altering the scan time?

I guess there's a few ways one could program the microcontroller but I'd like to learn what people know/think and weigh up the easier vs. the technically better options.

If you know of a link to other projects feel free to post them as well.

Thanks
 
In a Siemens PLC, I think they store the new code in memory while it is being downloaded, and the old code continues executing. When the scan finishes, it switches the calls to point to the new version of the code and delets the old version. Then it starts back at the new beginning.
 
So I decided to build a very simple PLC to put all my knowledge into one fun project. The question I'd like to throw out there relates to the real time program updates. Does anyone know how they allow program changes with out stopping the process or altering the scan time?

I guess there's a few ways one could program the microcontroller but I'd like to learn what people know/think and weigh up the easier vs. the technically better options.

If you know of a link to other projects feel free to post them as well.

Thanks

Well, honestly, aside from the original reply (which sounds familiar), I really don't know how they do it. But, I can tell you that in the Early Days, OnLine program changes was one of the Really Big Things that was introduced that really made these PLC things a usable tool. I do remember when I came out, and I thought "this just doesn't get any cooler....what will they come up with next - a way to store the program on something other than cassette tapes (!)"
 
In a Siemens PLC, I think they store the new code in memory while it is being downloaded, and the old code continues executing. When the scan finishes, it switches the calls to point to the new version of the code and delets the old version. Then it starts back at the new beginning.
That is exactly how it works in a Siemens PLC.
So new code and data can be downloaded while the old code is running, and the scantime is unaffected. even when the execution switches over from old code to new code.

But I think it is not totally trivial to implement.
The difficult bit is how to handle what the code must do if data declarations are changed.
 

Similar Topics

I have been working for my employer for almost two years now. Getting into PLC's right after high school makes me still relatively new to this...
Replies
28
Views
11,043
I have PLC programming cable circuit diagram for FX0,FX2N, FX and A series. It's very easy making in low cost.
Replies
6
Views
7,022
The cable download program for the seimens S5 cpu,have any body DIY before ,cause the cable very hard to buy in market now. If the body DIY...
Replies
7
Views
4,600
Im trying to make my own DIY ControlLogix power supply and have had some success, but not every module powers up. I am using 4 seperate power...
Replies
7
Views
929
Hi! My friend is an electrical technitian who wants to know if it's possible to build a DIY memory cartridge with an EEPROM for use in S7-200 PLCs...
Replies
0
Views
1,149
Back
Top Bottom