WORD_TO_BIT : conversion de type
Traduction de la notice originale
Description du fonctionnement
Cette procédure convertit une valeur d’entrée du type de données WORD en seize valeurs de sortie du type de données BOOL.
Les différents bits du mot d'entrée sont affectés aux sorties en fonction des noms de sorties.
Les paramètres supplémentaires EN et ENO peuvent être configurés.
Représentation dans FBD
Représentation :
Représentation dans LD
Représentation :
Représentation dans IL
Représentation :
LD WORD_variable
WORD_TO_BIT BOOL_variable1, BOOL_variable2,
             BOOL_variable3, BOOL_variable4, BOOL_variable5,
     BOOL_variable6, BOOL_variable7, BOOL_variable8,
     BOOL_variable9, BOOL_variable10, BOOL_variable11,
     BOOL_variable12, BOOL_variable13, BOOL_variable14,
     BOOL_variable15, BOOL_variable16
Représentation dans ST
Représentation :
WORD_TO_BIT (WORD_variable, BOOL_variable1
    BOOL_variable2, BOOL_variable3, BOOL_variable4,
    BOOL_variable5, BOOL_variable6, BOOL_variable7,
    BOOL_variable8, BOOL_variable9, BOOL_variable10,
    BOOL_variable11, BOOL_variable12, BOOL_variable13,
    BOOL_variable14, BOOL_variable15, BOOL_variable16);
Description des paramètres
Description des paramètres d'entrée :
Paramètres
Type de données
Signification
WORD_variable
Entrée
Description des paramètres de sortie :
Paramètres
Type de données
Signification
BOOL_variable1
Sortie BIT0
:
:
:
BOOL_variable16
BOOL
Sortie BIT15