Herunterladen Inhalt Inhalt Diese Seite drucken

Festpunktarithmetik (32 Bit) B - Siemens ET 200S Handbuch

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

Werbung

Operationsliste
B.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:
B-38
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 200SInterfacemodul IM 151/CPU
in s
2,0
2,7
9,9
10,8
11,3
OR
STA
VKE
/ER
A5E00058779-01

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis