On 2014-08-20 10:42, Michael Haberler wrote:
> Am 20.08.2014 um 10:33 schrieb Marius Liebenberg <[email protected]>:
>
>> What will be the best way to handle a timeout or delay of several
>> seconds in a component?
>> I have a state machine in the comp already.
> here's a comp with a FSM and timeout: 
> http://git.mah.priv.at/gitweb?p=emc2-dev.git;a=blob;f=src/hal/components/mvjun.comp;h=bf9b6106fbd679abe46a18b4b4e6e3238ce292be;hb=bd873dc4cb3bc4b021a0225aace0d976a23db9e7
>

Thanks Michael. I found a comp "timedelay" that will allow me to use 
variable timeouts form one single state. One just sets up the delay on a 
pin and then set the trigger and wait for a pin to go high.
I have taken note of the code though. I will need that in another comp 
for plasma that I am busy with.
>> -- 
>>
>> Regards /Groete
>>
>> Marius D. Liebenberg
>> +27 82 698 3251
>> +27 12 743 6064
>> QQ 1767394877
>>
>>
>> ------------------------------------------------------------------------------
>> Slashdot TV.
>> Video for Nerds.  Stuff that matters.
>> http://tv.slashdot.org/
>> _______________________________________________
>> Emc-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/emc-developers
>

-- 

Regards /Groete

Marius D. Liebenberg
+27 82 698 3251
+27 12 743 6064
QQ 1767394877


------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to