Herunterladen Inhalt Inhalt Diese Seite drucken

Siemens SIMATIC S5 CPU 946R Handbuch Seite 402

Automatisierungsgerät ag s5-155u
Inhaltsverzeichnis

Werbung

Kapitel
3
Programmbearbeitung
Beispiele:
+5,7
+
5
-2,3
+
-3
-0,6
+
0
+0,9
+
0
Exponent
Mantisse
3 1
0
Beispiele
a) KEW
Bedeutung:
Das 1 er-Komplement von AKKU-1 -L (Bits 0-1 5) bilden.
(2er-Komplement)
V
Der lnhalt des Datenwortes 64 soll Bit für Bit invertiert ('umgekehrt') und in Datenwort 78
abgelegt werden.
..
230
...
.20
I I
GFD
32-bit-Gleitpunktzahl
3 1
...
24 23
22
0
b) KZW
Bedeutung:
Das 2er-Komplement von AKKU-1-L (Bits 0-15) bilden. Ergebnis über
ANZ 1
i
ANZ 0 und OV auswertbar.
STEP 5-Programm
:L DW64
: KEW
:T
DW78
Der lnhalt des Datenwortes 207 ist als Festpunktzahl zu interpretieren und mit umgekehrtem
Vorzeichen im Datenwort 51 abzulegen.
(2er-Komplement)
V
Inhalt der Datenwörter
KM
=
0011111001011011
KM
=
1
1 000001 101 001 00
Programmieranleitung C79000-88500.C637-03
26...
...
20
STEP 5-Programm
:L DW207
:KZW
:T DW51
Inhalt der Datenwörter
KF
=
+
51
KF
=
- 5 1
V
2' 1
...
2-23

Werbung

Inhaltsverzeichnis
loading

Diese Anleitung auch für:

Simatic s5 cpu 947Simatic s5 cpu 947rSimatic s5 cpu 946

Inhaltsverzeichnis