Python & RSLogix 500 (Micrologix 1400)

Tremaino

Member
Join Date
Sep 2013
Location
London
Posts
6
Hi there,

I've managed to get Python to talk to my Micrologix 1400 using Pycomm. (Using read & write commands). My question is, is it possible to write actual PLC code to the PLC using ASCII or other ways. i.e XIC B3:0/3 XIC B3:0/4 OTE O:0/4??

I've seen examples from https://github.com/ruscito/pycomm but wanted to know if the above is possible.

If anyone has any other code examples with Python and SLC500 / Micrologix PLC's, then that would be greatly appreciated if they could reply to this post.

Many thanks!
 
I'd be fairly surprised if anything other than logix 500 could create new logic and insert it for compiling. I think it's a fairly closely held company secret, the programming language/protocols.
 
Sure if you do years of reverse engineering.

What you can do is generate a SLC file with python and then import it to RS 500 and "Download" it to the controller.

it's not great but it works.

I have some C# code that does this.
 
My question is, is it possible to write actual PLC code to the PLC using ASCII or other ways. i.e XIC B3:0/3 XIC B3:0/4 OTE O:0/4??
The problem is that RSLogix 500 doesn't download the text you enter. It gets compiled to some form that the ML 1400 can execute. Converting python, or even the text you show, to code the ML1400 can execute would be a super big challenge.


I would stick to view and changing variables or maybe bits that can activate or deactivate desired rungs.
 

Similar Topics

Hello Guys, I want to establish profinet communication between siemens plc and my system using python programming. Which python lib can i use to...
Replies
12
Views
362
Hi! I'm trying to communicate with an old Kinetix 300 drive that is fully functioning. Is there any library I can use to monitor this drive with...
Replies
0
Views
426
Hi! I'm trying to communicate with an old Kinetix 300 drive that is fully functioning. Is there any library I can use to monitor this drive with...
Replies
0
Views
479
I have previously shared this elsewhere, so I apologize if you have already seen it. Here is a basic and quick introduction to Python for PLCs...
Replies
10
Views
2,245
Read and write the Tags direct using pycomm3 and LogixDriver. Just in case anybody wanted to know. Here's a sample: from pycomm3 import...
Replies
0
Views
798
Back
Top Bottom