ANY_TO_UINT

L'istruzione ANY_TO_UINT converte un valore in Unsigned Integer.
Lingue supportate: Diagramma a blocchi funzione, Diagramma Ladder, Testo strutturato.
Questa istruzione vale per i controllori Micro810, L20E, L50E e L70E.
ANY_TO_UINT
ANY_TO_UINT
Parametri ANY_TO_UINT
Parametro
Tipo di parametro
Tipo di dati
Descrizione
EN
Ingresso
BOOL
Quando è impostato su vero, l'istruzione è abilitata.
  • TRUE: Eseguire il calcolo corrente.
  • FALSE: Non viene eseguito alcun calcolo.
Applicabile alle programmazioni in diagramma ladder.
i1
Ingresso
BOOL
SINT
USINT
BYTE
INT
WORD
DINT
UDINT
DWORD
LINT
ULINT
LWORD
REAL
LREAL
TIME
DATE
STRING
Qualsiasi valore non-Unsigned Integer.
o1
Uscita
UINT
Un valore Unsigned Integer.
ENO
Uscita
BOOL
Abilita l'uscita. Applicabile alle programmazioni in diagramma ladder.

Esempio di testo strutturato ANY_TO_UINT

(* Equivalenza ST: *)
bres := ANY_TO_UINT (true);
(* bres is 1 *)
tres := ANY_TO_UINT (t#0s46ms);
(* tres is 46 *)
mres := ANY_TO_UINT ('0198');
(* mres is 198 *)
Fornire un feedback
Hai domande o feedback su questa documentazione? invia il tuo feedback qui.
Normal