Herunterladen Inhalt Inhalt Diese Seite drucken

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

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

Werbung

B.23
Festpunktarithmetik (16-Bit)
Arithmetische Operationen zweier 16-Bit-Zahlen. Das Ergebnis steht im AKKU1–L.
Ope-
Operand
ration
+I
Addiere 2 Ganzzahlen (16 Bit)
(AKKU1-L)=(AKKU1-L)+
(AKKU2-L)
–I
Subtrahiere 2 Ganzzahlen (16 Bit)
(AKKU1-L)=(AKKU2-L)–
(AKKU1-L)
I
Multipliziere 2 Ganzzahlen (16 Bit)
*
(AKKU1-L)=(AKKU2-L)
(AKKU1-L)
/I
Dividiere 2 Ganzzahlen (16 Bit)
(AKKU1-L)=(AKKU2-L):
(AKKU1-L)
Im AKKU1-H steht der Rest der Division.
Statuswort für:
+I, –I,
I, /I
*
Operation hängt ab von:
Operation beeinflusst:
ET 200SInterfacemodul IM 151/CPU
A5E00058779-01
Bedeutung
*
BIE
A1
A0
ja
ja
Operationsliste
Länge
in
typische Ausführungszeit
Wor-
in s
ten
1
1,5
1
1,6
1
2,4
1
3,4
OV
OS
OR
STA
ja
ja
VKE
/ER
B-37

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis