On 7 July 2010 08:08, yann jautard <brico...@free.fr> wrote:

> In the end, I can turn my grafcet to a physical Dlatch schema that will
> be implemented with HAL. But I suspect this is not the funny way to do...

Hopefully somebody can answer the question you actually asked, but it
might not be too bad in HAL.
You could also consider writing a very simple HAL component using Comp.
Define input pins for tank1 empty, tank2 empty and perhaps end-of-cycle
Output pins for valve1, valve 2 and stop

Then a few lines of if-else-endif logic in C code.

Comp makes it really pretty easy.
http://linuxcnc.org/docs/html/hal_comp.html
Look at the examples at the bottom to see how easy it can be.


-- 
atp

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to