Format
DTR
Beschreibung
DTR (Umwandlung einer Ganzzahl, 32 Bit, in eine Gleitpunktzahl, 32 Bit, IEEE 754) wertet den Inhalt von AKKU 1 als eine Ganzzahl (32 Bit) aus und wandelt diese in eine Gleitpunktzahl (32 Bit, IEEE 754) um. Sofern erforderlich, rundet die Operation das Ergebnis (eine Ganzzahl, 32 Bit, hat eine höhere Genauigkeit als eine Gleitpunktzahl, 32 Bit, IEEE 754). Das Ergebnis wird in AKKU 1 gespeichert.
Statuswort
BIE A1 A0 OV OS OR STA VKE /ER
schreibt: - - - - - - - - -
Beispiel
AWL Erläuterung
L MD10 //Lade die Ganzzahl (32 Bit) in AKKU 1.
DTR //Wandle die Ganzzahl (32 Bit) in eine Gleitpunktzahl (32-Bit, IEEE- FP) um, speichere das Ergebnis in AKKU 1.
T MD20 //Transferiere das Ergebnis (BCD-Zahl) nach MD20.