marchinoktm Inserito: 24 aprile 2020 Segnala Inserito: 24 aprile 2020 buon giorno Come posso fare a fare un confronto sul valore di caricamento di conteggio di un timer in SCL ? sempre se questa funzione è possibile #Data[#step_active]."Time" := Time IF #Data[#step_active]."Time" > 0 THEN #Timer_Step(IN := #ok_step, PT := #Data[#step_active]."Time", Q => #end_step, ET => #CountDown); END_IF ;
acquaman Inserita: 24 aprile 2020 Segnala Inserita: 24 aprile 2020 Intendi questo IF #IEC_Timer_0_Instance.ET > T#5s THEN END_IF;
marchinoktm Inserita: 24 aprile 2020 Autore Segnala Inserita: 24 aprile 2020 Esatto proprio questo Grazie mille
marchinoktm Inserita: 24 aprile 2020 Autore Segnala Inserita: 24 aprile 2020 Comunque invece si usare direttamente la variabile di ingresso del Timer #timer_step_next.PT si può usare la stessa espressione direttamente della variabile IF #Data[#id_load]."Time">t#0ms THEN ; #timer_step_next(IN := #ok_step, PT := #Data[#id_load]."Time", Q => #end_step, ET => #CountDown); ; ELSE #ok_step := false; #step_active := #step_active + 1; END_IF;
Messaggi consigliati
Crea un account o accedi per commentare
Devi essere un utente per poter lasciare un commento
Crea un account
Registrati per un nuovo account nella nostra comunità. è facile!
Registra un nuovo accountAccedi
Hai già un account? Accedi qui.
Accedi ora