Ladder Logic Editor

Are you writing your own components and need help with how to set them up or have questions about the components you are deriving from ? Ask them here.
Post Reply
bakabai
In need of some credit
In need of some credit
Posts: 1
Joined: Fri Nov 05, 2010 5:21 pm
Contact:

Ladder Logic Editor

Post by bakabai »

First things first, hello everyone.

I am currently dreaming up a ladder logic editor for a home project I am working on but have run into a little snag in how it should be designed. Specifically the Rung editor/viewer.

One of the ideas I have been trying to figure out is using a type of Node Connection like mentioned in one of the wxWidgets FAQ's. But they seem to be free floating which is something you would more or less expect from a flow chart.

The second idea is to use a customized grid with the first cell column being the Rung number and the sequential columns making up the logic of the rung and each row a separate rung. Although this may run into excessive memory usage from spacial formating for aesthetics. [empty cells for visual spacing]

I am unsure as to which method I should use or if there may be a better way of doing this. I would like to go with node connections though I need the rungs to stay in a straight line flowing from left to right for readability.

Any thoughts and suggestions would be post appreciated.
The attached image is simplified sample of what I would like to achieve for now.

(For those who may not know of ladder logic programming here is example similar to what I am trying to achieve using RSLogix 5000: http://www.youtube.com/watch?v=OH9Ypk5X ... re=related)

The eventual goal would be to make this a component.
Attachments
Screenshot of RSlogix ladder logix programming
Screenshot of RSlogix ladder logix programming
NinjaNL
Moderator
Moderator
Posts: 899
Joined: Sun Oct 03, 2004 10:33 am
Location: Oosterwolde, Netherlands

Post by NinjaNL »

Not sure if this is somewhat in the direction of what you're looking for but take a look at http://wxart2d.org/moin/WxArt2dSamples#wires which might offer some insight.
Follow the development of my screenplay authoring program at http://wxscreenplaywriter.blogspot.com/
Post Reply