Running PLC Programm

RockyWells

Member
Join Date
Mar 2020
Location
Edmonton
Posts
7
Hi All, I am writing a piece of software for some research and would like to retrieve a running program from a PLC using python or some other available API.

I would be testing this on a MicroLogix AllenBradley shoebox PLC

Does anyone know what API or Library calls I could use to achieve this?

Is this in one of the Protocols like Modbus?

Thx!
 
Thanks Steve, I believe modbus may support this, the protocol suggests there is a read and write file operation.

The program file is supposed to be file 2 . I need to confirm this.

I want to be able to draw my own image from the ladder logic in the file.
 
You can buy a copy of RSLOGIX500 from your local Rexell dealer for around 150.00 dollars. I have never heard of using the comm protocol ModBus for a MicroLogix program download. But alas...I am mildly retarded at times. There are free options for students I believe. Hope this helps.
 
Yes I have a copy, I am looking to connect some advanced technology I am working on *** TOP SECRET *** to download running programs from PLC via API or some lib.

It is for some cloud analytics,so I want to have my own driver stack, it will all be driven from backend servers.

No Upload, just download as step 1.
 
In this context, a "file" is not something stored in a conventional filesystem. It's a section of application code memory. "Modbus files" are literally little 16-bit data memory registers used to exchange small amounts of data between controllers and supervisory systems.

In general, the functions used to upload (from the PLC to a PC/Server) or download (the other direction) are not documented, nor an API well supported, for use by third-party software. It's largely proprietary.

Doesn't mean you can't figure it out. And just because I can't think of a "cloud analytics" reason to read the application code of a MicroLogix doesn't mean there isn't one.

There is already a disaster recovery / automated archive / upload-and-compare product on the market, called FactoryTalk AssetCentre.
 
Thank-you for all the options, the source forge lib is probably the best place to look into. I was hoping there were some more public APIs for this or standard protocols I could implement.

Time to dig out the old protocol analyzers! :geek:

To the stuxnet guy, pssst buy more gold. :sleep:
 

Similar Topics

How to fix if appears code “$115 plc-restart running” on the screen OP17
Replies
5
Views
242
A new point I/O rack is to be hooked up with the running PLC. In point I/O, it is supposed to be the OA4 card to be installed as per the...
Replies
1
Views
91
Hello everybody, I am working on a project which has HMI FTView SE 13 (Local) and controllogix L71 PLC. I have a question how does PLC detect a...
Replies
0
Views
510
Just had the anomaly. Stamping press, 20 years old, SLC5/04 CPU with EEPROM memory module. The customer says suddenly a couple days ago they...
Replies
25
Views
9,542
Good Morning , I should know this . I would like to import some rungs into a running ControlLogix PLC . Can you actually keep a...
Replies
3
Views
1,623
Back
Top Bottom