ecomatDisplay
9.5.19
Word_To_2Byte
Baustein-Typ:
Funktion (FUN)
Verhaltensmodell:
--
Bibliothek:
ifmFileUtil.library
Symbol in CODESYS:
>
Beschreibung
Die Funktion konvertiert ein WORD in ein Array mit 2 Bytes.
Beispiel:
wInData = 0xFFEE
Word_To_2Byte[0] = 0xEE
Word_To_2Byte[1] = 0xFF
>
Eingangsparameter
Parameter
Datentyp
wInData
WORD
>
Ausgangsparameter
Parameter
Datentyp
Word_To_2Byte
ARRAY
[0..1] OF
BYTE
Bedeutung
Daten
Bedeutung
Rückgabewert der Funktion
Mögliche Werte
0x0000 ... 0xFFFF
Mögliche Werte
Pro Byte:
0x00 ... 0xFF
21634
21635
21623
21636
289