Herunterladen Inhalt Inhalt Diese Seite drucken

Festpunktarithmetik (32 Bit) A - Siemens IM 151-7 CPU Handbuch

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

Werbung

Operationsliste
A.24
Festpunktarithmetik (32 Bit)
Arithmetische Operationen zweier 32-Bit-Zahlen. Das Ergebnis steht im AKKU1.
Ope-
Operand
ration
+D
Addiere 2 Ganzzzahlen (32 Bit)
(AKKU1)=(AKKU2)+(AKKU1)
–D
Subtrahiere 2 Ganzzahlen (32 Bit)
(AKKU1)=(AKKU2)–(AKKU1)
D
Multipliziere 2 Ganzzahlen (32 Bit)
*
(AKKU1)=(AKKU2)
/D
Dividiere 2 Ganzzahlen (32 Bit)
(AKKU1)=(AKKU2):(AKKU1)
MOD
Dividiere 2 Ganzzahlen (32 Bit) und lade
den Rest der Division in AKKU1:
(AKKU1)=Rest von [(AKKU2):(AKKU1)]
Statuswort für:
+D, –D,
Operation hängt ab von:
Operation beeinflusst:
A-34
Bedeutung
(AKKU1)
*
D, /D, MOD
BIE
*
Länge
in
typische Ausführungszeit
Wor-
ten
1
1
1
1
1
A1
A0
OV
OS
ja
ja
ja
ja
ET 200S Interfacemodul IM 151-7 CPU
in ms
0,7
1,0
3,5
2,7
1,9
OR
STA
VKE
/ER
A5E00058779-02

Quicklinks ausblenden:

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis