Is there a way to set the pulse length of T14

71 visualizzazioni
Passa al primo messaggio da leggere

Frank Müller

da leggere,
4 giu 2017, 15:52:0004/06/17
a souliss
As i see, the pulse length of ON in T14 is one cycle. I don't find a way to give it more than one cycle.

"It control a digital output with a pulse of the duration of one execution cycle."

For my garage I need the possibility to set the pulse length for at least 500ms.

Can this be done with T14?

Greetings,

Frank

Frank Müller

da leggere,
5 giu 2017, 05:42:4105/06/17
a souliss
It is not perfect, but i found the solution that works for me.

I use for this T14  in the Excecution  FAST_710ms. It does not react at the moment i press the button, but the delay is acceptable. And the On State is long enough to open/close the Garage.

And I learned about the Excecution Cycles :-)

Greetings Frank

Di Maio, Dario

da leggere,
5 giu 2017, 10:10:1105/06/17
a sou...@googlegroups.com
Hi Frank,

your solution is the only applicable one, as there is no reference with the current time in T14.

Regards,
Dario.

--
You received this message because you are subscribed to the Google Groups "souliss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to souliss+unsubscribe@googlegroups.com.
To post to this group, send email to sou...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/souliss/60d36e17-6eb2-4e3b-b428-b9be3dacbdb8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jarek Andrzejewski

da leggere,
5 giu 2017, 12:08:1905/06/17
a souliss
I did something similiar using T11 (my idea is in bold font):

void loop()
{
    EXECUTEFAST() {                    
        UPDATEFAST();  
       
        FAST_50ms() {
         
            LowDigIn(GATE_SWITCH, Souliss_T1n_ToggleCmd, GATE_LOGIC);
            if (Souliss_T1n_OnCmd == memory_map[MaCaco_IN_s + GATE_LOGIC] || Souliss_T1n_ToggleCmd == memory_map[MaCaco_IN_s + GATE_LOGIC]) {
              memory_map[MaCaco_IN_s + GATE_LOGIC] = Souliss_T1n_Timed + GARAGE_SW_TIME;
            }
            Logic_SimpleLight(GATE_LOGIC);
            DigOut(GATE_RELAY, Souliss_T1n_Coil, GATE_LOGIC);  
            DigOut(LED_BUILTIN, Souliss_T1n_Coil, GATE_LOGIC);  
        }
             
        FAST_GatewayComms();                                       
        FAST_1110ms() {
          Timer_SimpleLight(GATE_LOGIC);
        }
      
    }
}

Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi