Herunterladen Inhalt Inhalt Diese Seite drucken

Umwandlungsoperationen - Siemens Simatic S5 CPU 928B Anleitung

Vorschau ausblenden Andere Handbücher für Simatic S5 CPU 928B:
Inhaltsverzeichnis

Werbung

Organisatorische
Operationen

Umwandlungsoperationen

Tabelle 3-21
Umwandlungsoperationen
Operation
Funktion
KEW
Bildung des 1er-Komplements von AKKU-1-L (16 bit)
KZW
Bildung des 2er-Komplements von AKKU-1-L (16 bit)
KZD
Bildung des 2er-Komplements von AKKU 1 (32 bit)
DEF
Festpunktwandlung (16 bit) von BCD in dual
DUF
Festpunktwandlung (16 bit) von dual in BCD
DED
Doppelwortwandlung (32 bit) von BCD in dual
DUD
Doppelwortwandlung (32 bit) von dual in BCD
FDG
Wandlung einer Festpunktzahl (32 bit) in eine Gleitpunktzahl (32 bit);
siehe OB 220 : Vorzeichenerweiterung
GFD
Wandlung einer Gleitpunktzahl in eine Festpunktzahl (32 bit)
DEF
DUF
3 - 62
Der im AKKU-1-L (Bit 0 bis Bit 15) stehende Wert wird als BCD-
codierte Zahl interpretiert. Nach der Umwandlung steht im AKKU-1-
L eine 16-bit-Festpunktzahl.
Der im AKKU-1-L (Bit 0 bis Bit 15) stehende Wert wird als 16-bit-Fest-
punktzahl interpretiert. Nach der Umwandlung steht im AKKU-1-L
eine BCD-codierte Zahl.
15 14
14
V 2
. . . .
DUF
15
V V V V
10
V (Vorzeichen):
0 = positiv
1 = negativ
DEF
2
1
10
Programmieranleitung CPU 928B
C79000-B8500-C898, 01
0
0
. . . . . . . . . . . 2
0
0
10

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis