villa31 Report Share Posted December 21, 2020 Buongiorno qual'è il modo più corretto di scrivere una variabile timer da weintek a omron con indirizzamento simbolico ? io un paio di anni fa impostavo la variabile lato weintek in 32bitunsig. poi la moltiplicavo e la convertivo.... esiste modo migliore? Quote Link to post Share on other sites
Ctec Report Share Posted December 21, 2020 Puoi usare la funzione Scalatura direttamente sul campo di immissione nel pannello, in modo da evitare calcoli nel PLC. Imposti un tempo, che so, in secondi e lo fai convertire automaticamente in microsecondi. Quote Link to post Share on other sites
villa31 Author Report Share Posted December 22, 2020 grazie ,speravo di sbagliare qualcosa e ci fosse qualcosa di meglio Quote Link to post Share on other sites
pcontini Report Share Posted December 22, 2020 Dipende un poco dai tempi che devi gestire, ma valuta anche l'istruzione TIMER, oltre alla TON Quote Link to post Share on other sites
Ctec Report Share Posted December 22, 2020 Purtroppo, al momento non mi risulta che il tipo TIMER sia supportato da Weintek. Quote Link to post Share on other sites
pcontini Report Share Posted December 22, 2020 No, ma all'istruzione TIMER puoi passare il tempo come UINT in decimi di secondo. Quote Link to post Share on other sites
villa31 Author Report Share Posted December 29, 2020 ok provo Quote Link to post Share on other sites