PICoPLC: Free DIY PLC with Propeller

APStech-AttilaAPStech-Attila Posts: 38
edited December 2012 in Propeller 1 Vote Up0Vote Down
Hi Proppers,

I have been working on adopting an old PLC software to support Propeller.

The concept is straight-forward: You draw the LADDER logic diagram in a GUI, switch to simulation mode and simulate your ladder program. When the simulation is done and you ladder works as expected, simply hit F12 and download the prop code into your demoboard!

As you can set all the IO assignments for your ladder diagram, you can develop your own PLC (or use Parallax relay card, etc.) !

The source .spin file is generated, so you can visualize your ladder variables with TVtext, implement special functions (like I2C expanders, etc.)

The software is totally free, and I am still searching for ways of improving this tool. (You can download the software from my homepage - please select English language smile.gif )

If you are an Assembler programmer, you could be interested in FlowProg as well.

Ideas, comments are welcome.

Kind regards,
Attila
800 x 521 - 25K
800 x 521 - 14K
Tagged:

Comments

  • 18 Comments sorted by Date Added Votes
  • APStech-AttilaAPStech-Attila Posts: 38
    edited April 2010 Vote Up0Vote Down
  • kf4ixmkf4ixm Posts: 529
    edited April 2010 Vote Up0Vote Down
    @Attila

    This is great! i have been wondering, and was about to post the question, has anyone thought about ladder logic programming for the prop. i have worked in industrial maintenance for over 20 years and anyone that has knows the influence that ladder logic has in industrial machinery utilizing plc's as most are standardized to AB's and thier unrealistically high priced software. (although they do offer a free, chopped down version now, after many years). I think that a ladder logic based programming language coupled with the processing power of the prop is a perfect match for industrial use. as most maintenance and industrial engineers have over the years been forced to use and learn ladder logic in machine development, diagnosing and troubleshooting, we simply are comfortable with the concept of ladder logic and use in machinery control. A program like this, i believe, will open up the flood gates of embedded control designers and machine builders to lovingly adopt the Propeller (and the propeller 2 with the addition of onboard adc's) as a more affordable and more feature rich control enviroment for machine control!

    Thank you very much for this and i commend you on you developmet of this software! Keep up the great work and if you like, i would definatly love to beta test this for you in a prop and digital i/o board setting.

    Does this software have any analog functions or pid functions yet?
  • APStech-AttilaAPStech-Attila Posts: 38
    edited April 2010 Vote Up0Vote Down
    Thank you for your words kf4ixm!

    I would be grateful for beta testing [noparse]:)[/noparse] For the current release, the tests took weeks! 16 weeks actually [noparse]:)[/noparse]

    The software software has analog functions, but not tested. I am sure, I will have time to implement if for Propeller by end of this year [noparse]:)[/noparse] PID will be implemented in summer.
  • WurlitzerWurlitzer Posts: 234
    edited April 2010 Vote Up0Vote Down
    @Attila

    Good grief! This is great.

    While I prefer to program in Basic (no longer a valid name for such a rich language) VB6 & assembler I have spent years programming in Ladder so that people in an industrial environment can maintain and troubleshoot their process.

    Thanks for the effort creating this and I hope it takes off for you.
    Craig
  • Bill HenningBill Henning Posts: 6,316
    edited April 2010 Vote Up0Vote Down
    Very nice!

    Can you tell us what function blocks are implemented?
    APStech-Attila said...
    Hi Proppers,

    I have been working on adopting an old PLC software to support Propeller.

    The concept is straight-forward: You draw the LADDER logic diagram in a GUI, switch to simulation mode and simulate your ladder program. When the simulation is done and you ladder works as expected, simply hit F12 and download the prop code into your demoboard!

    As you can set all the IO assignments for your ladder diagram, you can develop your own PLC (or use Parallax relay card, etc.) !

    The source .spin file is generated, so you can visualize your ladder variables with TVtext, implement special functions (like I2C expanders, etc.)

    The software is totally free, and I am still searching for ways of improving this tool. (You can download the software from my homepage - please select English language smile.gif )

    If you are an Assembler programmer, you could be interested in FlowProg as well.

    Ideas, comments are welcome.

    Kind regards,
    Attila
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.mikronauts.com E-mail: mikronauts _at_ gmail _dot_ com 5.0" VGA LCD in stock!
    Morpheus dual Prop SBC w/ 512KB kit $119.95, Mem+2MB memory/IO kit $89.95, both kits $189.95 SerPlug $9.95
    Propteus and Proteus for Propeller prototyping 6.250MHz custom Crystals run Propellers at 100MHz
    Las - Large model assembler Largos - upcoming nano operating system
    www.mikronauts.com / E-mail: mikronauts _at_ gmail _dot_ com / Products and Projects:
    RoboPi: The most advanced Robot controller for the Raspberry Pi (Propeller based)
    SchoolBoard ][ Solderless Educational Development Board (Propeller, FPGA, more)
    Advanced prototyping & Parallax Propeller boards - Follow @Mikronauts on Twitter
  • FredBlaisFredBlais Posts: 292
    edited April 2010 Vote Up0Vote Down
    Hey this is really insane, I was trying to do the same thing!
    please give some credits to Jonathan Westhues @ www.cq.cx for his software [noparse]:)[/noparse]

    by the way, did you used his interpretable bytecode generator to create the spin code?
    I was not able to run his source code on visual studio, how did you managed to get it work, with the perl scripts?

    Fred
  • APStech-AttilaAPStech-Attila Posts: 38
    edited April 2010 Vote Up0Vote Down
    @FredBlais

    Hi, You are absolutely right, Jonathan Westhues did the base, and I am not very happy that the current version on the web does not contains his name. The story behind is a bit complex, however I have also tracked down, that the original sourcecode was Jonathan's work.

    Anyway if you check out the upcoming release (the hungarian manual for it is already published, check pg 21-22) the well deserved credits will go to Jonathan Westhues.


    Answering the other question: No, I did not use the bytecode generator for SPIN . The internal software structure has been radically changed. Basically the GUI editor, and the simulator part remain the same as for LDmicro.
  • rtarb41323rtarb41323 Posts: 3
    edited January 2012 Vote Up0Vote Down
    Question for you Attila,

    Thanks very much for sharing your work with us! --> After downloading the flowprog.jar.zip file, can you tell us how to actually "run" the program? The folder has the JAR extension in it, but the folder is a "folder", not a "file", so JRE doesn't know how to run it. I'm at a loss as to how to actually start the program after it has been downloaded and extracted...
  • CircuitsoftCircuitsoft Posts: 993
    edited January 2012 Vote Up0Vote Down
    Rename the .jar.zip to .jar and it should work.
  • rtarb41323rtarb41323 Posts: 3
    edited February 2012 Vote Up0Vote Down
    It worked! Thank you Circuitsoft! A simple renaming from .jar.zip to .jar fixed the problem!
  • Reset_VectorReset_Vector Posts: 55
    edited February 2012 Vote Up0Vote Down
    Whow, it's amazing !

    I've worked on the same project !!!

    Modified LDmicro to fit the propeller chip !
    My version creates a SPIN file too !!
    I'm tyrying to add a configuration file to give LDmicro the possibility to use any SPIN object ,
    at this time I can make any logic , use uart, and analog via a specific SPIN object (analog.spin) using an PCF8591 converter.

    Atilla, you're my double !!!!

    And yes, tanks to Jonathan Westhues who made his software free and give all the sources !!!

    Best regards

    Olivier
  • Joe SchisslerJoe Schissler Posts: 22
    edited April 2012 Vote Up0Vote Down
    Has anyone proven that this software works with props
  • Mike GreenMike Green Posts: 22,000
    edited April 2012 Vote Up0Vote Down
    Be careful of the word "proven". The responsibility for making sure this software works with Props and works reliably as expected is yours.
  • evanhevanh Posts: 2,012
    edited April 2012 Vote Up0Vote Down
    Looks to me like it's discontinued or withdrawn for relaunch as a more comercial product or something to that effect. The links are dead and the site no longer seems to have any sign of PICoPLC for any chip.
    Respect is earned, only the insane demand loyalty.
  • NoodlesNoodles Posts: 19
    edited June 2012 Vote Up0Vote Down
    I would really like to test this as well. If it works I would gladly send out a few dollar, bits or euros. I dev on Allen Bradley PLCs currently. If anyone could provide me a copy to try rjdaggett@gmail.com
  • skylightskylight Posts: 1,857
    edited December 2012 Vote Up0Vote Down
    From a post in General Discussion here's the link to picoplc

    http://forums.parallax.com/showthread.php?144658-has-somebody-worked-with-PicoPLC&p=1151467&viewfull=1#post1151467

    The program is awesome!
Sign In or Register to comment.