ANY_TO_SINT

L'istruzione ANY_TO_SINT converte un valore in Short Integer.
Lingue supportate: Diagramma a blocchi funzione, Diagramma Ladder, Testo strutturato.
Questa istruzione vale per i controllori Micro810, L20E, L50E e L70E.
ANY_TO_SINT
ANY_TO_SINT
Parametri ANY_TO_SINT
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
USINT
BYTE
INT
UINT
WORD
DINT
UDINT
DWORD
LINT
ULINT
LWORD
REAL
LREAL
TIME
DATE
STRING
Qualsiasi valore non-Short Integer.
o1
Uscita
SINT
Qualsiasi valore Short Integer.
ENO
Uscita
BOOL
Abilita l'uscita. Applicabile alle programmazioni in diagramma ladder.

Esempio di testo strutturato ANY_TO_SINT

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