has somebody worked with PicoPLC?
StefanL38
Posts: 2,292
Hi,
has somebody worked already with PicoPLC from Attila Kolinger?
see this thread: http://forums.parallax.com/showthread.php?121404-PICoPLC-Free-DIY-PLC-with-Propeller
There is some documentation. But I still find it hard to understand. What I would need is a diagramm and description
of a simple automated process like
There are the switches S1 and S2 if both are pressed at the same time output A2 will be turned on for three seconds ... etc.
and the related ladder-logic for this example.
Even better if there would be an example for each ladder-element.
Otherways I have would have to do try and error with each and every combination trying to understand what the ladder is doing.
best regards
Stefan
has somebody worked already with PicoPLC from Attila Kolinger?
see this thread: http://forums.parallax.com/showthread.php?121404-PICoPLC-Free-DIY-PLC-with-Propeller
There is some documentation. But I still find it hard to understand. What I would need is a diagramm and description
of a simple automated process like
There are the switches S1 and S2 if both are pressed at the same time output A2 will be turned on for three seconds ... etc.
and the related ladder-logic for this example.
Even better if there would be an example for each ladder-element.
Otherways I have would have to do try and error with each and every combination trying to understand what the ladder is doing.
best regards
Stefan
Comments
I understand a few first things. If my knowledge will grow is anybody interested in explained examples?
If yes drop a short answer.
best regards
Stefan
No, I haven't tried PicoPLC but it intrigued me.
Thanks!
Duane J
I have experience with programming other PLC's such as Siemens and maybe could help once i've played with picoPLC
For your example you would put two inputs in series with a timer and an internal relay then use that relay in series with an output
Not knowing the program I can't help yet with what settings , labels, inputs,outputs ,timers etc
Ditto.
I try to attach a zipfile to this posting ...
seems to work.
I found out some basic things myself. And-function is clear. How would you design a "self-keeping-switch"?
best regards
Stefan
hope that's what you intended to happen
regards
skylight
S1&s2 timed output.txt
S1&2 timed outputprogram.txt
edit actually i've just re-read your original post and it wasn't a 3 second delay you wanted but an output for 3 seconds, i'll re-do the files and attach them later, sorry about that.
Also attached is the compiled Spin file for the one shot circuit, although I have to say I havn't tested it, perhaps someone could? It uses pins 1(PA0) and 2 (PA1) for inputs and pin 3 (PA2) for output
S1&2 timed outputprogram revised.txt
S1&s2 timed outputrevised.txt
S1 &S2 timed output with one shot.txt
S1 &S2 timed output with one shot.spin
Also, Did you want an example of a toggle? Added that one, as well...
In fact, I was just starting to dig out my Quickstart when I saw your post! Great minds and all that...
I'm going to post in the propeller forum a compiled spin file and see if anyone has any ideas
thank you very much for all the example files! Have to go through them.
I made progress myself in understanding ladder-logic.
I found to bugs in the spin-code:
The autoerated spin-code from picoPLC produces a wrong textline for the chrystal setup.
The direction register DIRA for outputs are not setup properly
The outcommented lines are the wrong ones generated by picoPLC.
I have already sended an Email to the author of picoPLC. He answered me that he will send me
the newest version of picoPLC in a few days. Have to ask if I'mallowed to upload it here.
(He's busy with his daily work for making money.)
@skylight: The IO-Pin-numbers of the quickstart-board are the same as with the DIP-version.
picoPLC and spin uses the logical pin-numbers. There are IO-pins numbered from 0 to 31
Edit: the autogenerated code produces the codelines
DIRA := $00000000
DIRB := $00000000
which set ALL IO-Pins as input.
So you ave to look up the code manually how Outputs are named and you have to insert
new lines of code
The hardware-pin-numbers of the housing may differ but the logical pin-numbers are always the same
for each propeller-chip and each propeller-board.
try these corrections and post the results here.
best regards
Stefan
You may also be interested in a thread I have started in the Propellor forum regarding this program?
I was wondering where I could get the required software, as the links show a 404 page not found.
Thanks,
Devin