Errore di compilazione TON – Support Elsist https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/feed/ Fri, 30 Oct 2026 07:56:23 +0000 https://bbpress.org/?v=2.6.20 it-IT https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-81717 Errore di compilazione TON https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-81717 Mon, 28 Apr 2025 08:49:13 +0000 MBottarelli Stò usando l’ultima versione di LogicLab e del pacchetto librerie, su un PLC Mps053 XTarget mi dà un errore stranissimo in compilazione.

Provo a inserire un blocco TON dalla libreria ELLabStdLib, compilo e mi dà l’errore

TON(32) – error S1305:  TO_TIME => Unknown function.

Possibile che sia un errorre interno alla libreria o sto trascurando io qualcosa?

]]>
https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-81745 Rispondi a: Errore di compilazione TON https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-81745 Tue, 29 Apr 2025 08:34:22 +0000 Sergio Bertana Il problema è nel dispositivo che essendo ancora di tipo XTarget non supporta il tipo TIME di definizione tempo.

Quindi se vuoi mantenere l’architettura XTarget devi utilizzare la vecchia versione del timer eTON dove il tempo era definito in mS con una variabile di tipo UDINT. Il FB eTON si trova nella libreria eLLabObsoleteLib.

Il mio consiglio è di eseguire un upgrade del sistema (Vedi articolo) utilizzando la nuova architettura XUnified, modificare il progetto utilizzando la raccolta librerie ed a questo punto potrai utilizzare tutte le ultime funzioni ed FB disponibili.

]]>
https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-82037 Rispondi a: Errore di compilazione TON https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-82037 Tue, 06 May 2025 15:26:45 +0000 MBottarelli Ho capito la differenza tra i due target… Grazie mille

]]>
https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-85588 Rispondi a: Errore di compilazione TON https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-85588 Wed, 20 May 2026 08:54:48 +0000 George I have MPS050 xUnified as target with Pck055a050 library I get

ON(32) – error S1305: TO_TIME => Unknown function,

If I use TON and eTON function blocks in the same project.

If I use only TON or eTON, there is no problem. I need to use eTON in old projects where I have configurations with preset time in UDINT variables.
It would be convenient to have a way to convert UDINT to TIME, to be possible the use only TON.

If I have mps054 xUnified or mps056 xUnified the mentioned error is not appeared. So I can use TON and eTON FBs in the same project without problem. The problem appeared in mps050 xUnified target.

]]>
https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-85637 Rispondi a: Errore di compilazione TON https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-85637 Tue, 26 May 2026 12:34:26 +0000 Sergio Bertana I have tried the same scenario in a simple project without any issues. This is my program:

VAR
    T1 : eTON;
    T2 : TON;
END_VAR

    T1(IN:=NOT(T1.Q), PT:=1000);
    T1(IN:=NOT(T1.Q), PT:=TO_UDINT(T#1s));

    T2(IN:=NOT(T2.Q), PT:=T#1s);
    T2(IN:=NOT(T2.Q), PT:=TO_TIME(1000));

TON and TOF timers are defined and used as a blinker.

  • The TO_UDINT function converts a TIME value to a UDINT (the returned value is expressed in ms).
  • The TO_TIME function converts a UDINT value (which must be given in ms) to TIME.

So I cannot verify the problem you are complaining. It could be related to the operating system version you are using. Could you please report it to me?

]]>
https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-85671 Rispondi a: Errore di compilazione TON https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-85671 Wed, 27 May 2026 20:54:28 +0000 George Windows 11 Pro for Workstations (25H2).

It should be noted that the problem appear in MPS050 xUnified as target with Pck055a050 library.
In mps054 xUnified or mps056 xUnified targets there is no problem.

]]>
https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-85673 Rispondi a: Errore di compilazione TON https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-85673 Thu, 28 May 2026 05:42:24 +0000 Sergio Bertana I would like to know the exact code of the MPS050 you have and the firmware version installed on it.

It seems the issue may be caused by an outdated firmware version.

]]>
https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-85697 Rispondi a: Errore di compilazione TON https://support.elsist.biz/forums/topic/errore-di-compilazione-ton/#post-85697 Thu, 28 May 2026 14:09:18 +0000 George I should check it in the field.
Maybe the image that I have made my tests is outdated.
Next week I could check it.

]]>