Herunterladen Inhalt Inhalt Diese Seite drucken

Gleitpunktarithmetik (32 Bit) A; Addition Von Konstanten A - Siemens IM 151-7 CPU Handbuch

Interfacemodul
Vorschau ausblenden Andere Handbücher für IM 151-7 CPU:
Inhaltsverzeichnis

Werbung

A.25
Gleitpunktarithmetik (32 Bit)
Das Ergebnis der arithmetischen Operationen steht im AKKU1. Die Ausführungs-
zeit der Operation hängt ab vom Wert, der berechnet werden soll.
Ope-
Operand
ration
+R
Addiere 2 Realzahlen (32 Bit)
(AKKU1)=(AKKU2)+(AKKU1)
–R
Subtrahiere 2 Realzahlen (32 Bit)
(AKKU1)=(AKKU2)–(AKKU1)
R
Multipliziere 2 Realzahlen (32 Bit)
*
(AKKU1)=(AKKU2)
/R
Dividiere 2 Realzahlen (32 Bit)
(AKKU1)=(AKKU2)
Statuswort für:
+R, –R,
Operation hängt ab von:
Operation beeinflusst:
NEGR –
Negiere Realzahl im AKKU1
ABS
Bilde Betrag der Realzahl im AKKU1
Statuswort für:
NEGR, ABS
Operation hängt ab von:
Operation beeinflusst:
A.26
Addition von Konstanten
Addition von Integer-Konstanten zum AKKU1. Die Anzeigen werden nicht beein-
flusst.
Ope-
Operand
ration
+
i8
Addiere eine 8-Bit-Ganzzahl-Konstante
+
i16
Addiere eine 16-Bit-Ganzzahl-Konstante
+
i32
Addiere eine 32-Bit-Ganzzahl-Konstante
ET 200S Interfacemodul IM 151-7 CPU
A5E00058779-02
Bedeutung
(AKKU1)
*
(AKKU1)
:
R, /R
BIE
*
BIE
Bedeutung
Länge
in
typische Ausführungszeit
Wor-
ten
1
1
1
1
A1
A0
OV
OS
ja
ja
ja
ja
1
1
A1
A0
OV
OS
Länge
in
typische Ausführungszeit
Wor-
ten
1
2
3
Operationsliste
in ms
< 15
< 15
< 12
< 15
OR
STA
VKE
/ER
0,3
0,3
OR
STA
VKE
/ER
in ms
0,1
0,1
0,2
A-35

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis