Herunterladen Inhalt Inhalt Diese Seite drucken

Gleitpunktarithmetik (32 Bit) B; Addition Von Konstanten B - Siemens ET 200S Handbuch

Simatic interfacemodul im 151/cpu
Vorschau ausblenden Andere Handbücher für ET 200S:
Inhaltsverzeichnis

Werbung

B.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:
B.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 200SInterfacemodul IM 151/CPU
A5E00058779-01
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 s
< 35
< 35
< 35
< 40
OR
STA
VKE
/ER
0,3
0,3
OR
STA
VKE
/ER
in s
0,3
0,3
0,6
B-39

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis