Instructions de conversions numériques
(Traduction du document original anglais)
Introduction
La conversion remplace les instructions PL7 par leur équivalent Control Expert.
Liste des instructions
Le tableau suivant décrit toute correspondance et différence entre les instructions PL7 et Control Expert.
PL7
Control Expert
Etat
BCD_TO_INT
BCD_TO_INT
Convertie
INT_TO_BCD
INT_TO_BCD
Convertie
GRAY_TO_INT
GRAY_TO_INT
Convertie
INT_TO_REAL
INT_TO_REAL
Convertie
DINT_TO_REAL
DINT_TO_REAL
Convertie
DINT_TO_DWORD
DINT_TO_DWORD
Convertie
DINT_TO_INT
DINT_TO_INT
Convertie
DINT_TO_WORD
DINT_TO_WORD
Convertie
DWORD_TO_DINT
DWORD_TO_DINT
Convertie
DWORD_TO_INT
DWORD_TO_INT
Convertie
DWORD_TO_WORD
DWORD_TO_WORD
Convertie
INT_TO_DINT
INT_TO_DINT
Convertie
INT_TO_WORD
INT_TO_WORD
Convertie
REAL_TO_DINT
REAL_TO_DINT
Convertie
REAL_TO_INT
REAL_TO_INT
Convertie
WORD_TO_DINT
WORD_TO_DINT
Convertie
WORD_TO_INT
WORD_TO_INT
Convertie
WORD_TO_DWORD
WORD_TO_DWORD
Convertie
TRUNC
REAL_TRUNC_INT
REAL_TRUNC_DINT
Modifiée (1)
DEG_TO_RAD
DEG_TO_RAD
Convertie
EF
RAG_TO_DEG
RAG_TO_DEG
Convertie
CONCATW
INT_AS_DINT
Modifiée (2)
DBCD_TO_DINT
DBCD_TO_DINT
Convertie
DBCD_TO_INT
DBCD_TO_INT
Convertie
DINT_TO_DBCD
DINT_TO_DBCD
Convertie
HW
HIGH_INT
Modifiée (2)
INT_TO_DBCD
INT_TO_DBCD
Convertie
LW
LOW_INT
Modifiée (2)
Légende :
(1)
Remplacé par une EF dont le nom dépend du type de l’opérande.
(2)
Le nom de la fonction est modifié mais l'opération reste la même.