picoPROPplc V0.0. A small PLC with PropBasic.
jnogues
Posts: 25
Hi All,
Here is my first project with Propeller picoPROPplc.
Is a small PLC, like Industrial PLC's but only with the simply functions.
This example have:
8 Inputs ( I(0) to I(7) )
8 Outputs ( Q(0) to Q(7) )
4 Timers ( T(0) to T(3) )
4 Counters ( C(0) to C(3) )
10 Aux. Relays ( M(0) to M(9) )
5 Set-Reset functions for Grafcet ( E(0) to E(4) )
5 Telerrupteurs ( TR(0) to TR(4) )
But is possible add more of this functions. The user decided how many of them want use it.
For program it, only need the logic equations.
In the example I(0) and I(1) are the On-Off pushbuttons for a timered cascade of Q(0), Q(1) and Q(2).
If we push 5 times I(2) we turn on Q(3), and reset it by I(3).
Q(4) is edge controlled by a Telerrupteur connect to I(4).
Q(5) is On Off by a set-reset function.
Q(6) toggle every 1000 scans of the program and Q(7) toggle every 1/10 seconds.
The next step of this project is have the inputs and outputs distributed in diferents slaves via RS485.
Best regards and sorry for my english (spanglish)
Jaume Nogu
Here is my first project with Propeller picoPROPplc.
Is a small PLC, like Industrial PLC's but only with the simply functions.
This example have:
8 Inputs ( I(0) to I(7) )
8 Outputs ( Q(0) to Q(7) )
4 Timers ( T(0) to T(3) )
4 Counters ( C(0) to C(3) )
10 Aux. Relays ( M(0) to M(9) )
5 Set-Reset functions for Grafcet ( E(0) to E(4) )
5 Telerrupteurs ( TR(0) to TR(4) )
But is possible add more of this functions. The user decided how many of them want use it.
For program it, only need the logic equations.
In the example I(0) and I(1) are the On-Off pushbuttons for a timered cascade of Q(0), Q(1) and Q(2).
If we push 5 times I(2) we turn on Q(3), and reset it by I(3).
Q(4) is edge controlled by a Telerrupteur connect to I(4).
Q(5) is On Off by a set-reset function.
Q(6) toggle every 1000 scans of the program and Q(7) toggle every 1/10 seconds.
The next step of this project is have the inputs and outputs distributed in diferents slaves via RS485.
Best regards and sorry for my english (spanglish)
Jaume Nogu
Comments
· Very nice.
· I wish I knew more about PLC, but I've never used it so I'm not sure how it works.
· I see you used LMM for the TASK, do you have any problems with the slow execution speed ?
Bean
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Use BASIC on the Propeller with the speed of assembly language.
PropBASIC thread http://forums.parallax.com/showthread.php?p=867134
March 2010 Nuts and Volts article·http://www.parallax.com/Portals/0/Downloads/docs/cols/nv/prop/col/nvp5.pdf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
There are two rules in life:
· 1) Never divulge all information
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you choose not to decide, you still have made a choice. [noparse][[/noparse]RUSH - Freewill]