Herunterladen Inhalt Inhalt Diese Seite drucken

B.35 Datentyp-Umwandlungsoperationen; Datentyp-Umwandlungsoperationen B - Siemens ET 200S Handbuch

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

Werbung

Operationsliste
B.35
Datentyp-Umwandlungsoperationen
Ergebnis
Die Ergebnisse der Wandlung stehen im AKKU1.
Bei der Wandlung von Realzahlen ist die Ausführungszeit abhängig vom Wert.
Ope-
Operand
ration
BTI
Konvertiere AKKU1 von BCD nach Ganz-
zahl (16 Bit) (BCD To Int)
BTD
Konvertiere AKKU1 von BCD nach Ganz-
zahl (32 Bit) (BCD To Doubleint)
DTR
Konvertiere AKKU1 von Ganzzahl (32 Bit)
nach Real (32 Bit) (Doubleint To Real)
ITD
Konvertiere AKKU1 von Ganzzahl (16 Bit)
nach Ganzzahl (32 Bit) (Int To Doubleint)
Statuswort für:
BTI, BTD, DTR, ITD
Operation hängt ab von:
Operation beeinflusst:
ITB
Konvertiere AKKU1 von Ganzzahl (16 Bit)
nach BCD (Int To BCD)
DTB
Konvertiere AKKU1 von Ganzzahl (32 Bit)
nach BCD (Doubleint To BCD)
Statuswort für:
ITB, DTB
Operation hängt ab von:
Operation beeinflusst:
RND
Wandle Realzahl in 32-Bit-Ganzzahl um.
RND–
Wandle Realzahl in 32-Bit-Ganzzahl um.
Es wird gerundet zur nächsten ganzen
Zahl.
RND+ –
Wandle Realzahl in 32-Bit-Integerzahl um.
Es wird gerundet zur nächsten ganzen
Zahl.
TRUN
Wandle Realzahl in 32-Bit-Integerzahl um.
C
Es werden die Nachkommazahlen abge-
schnitten.
Statuswort für:
RND, RND–, RND+,
TRUNC
Operation hängt ab von:
Operation beeinflusst:
B-46
Bedeutung
BIE
A1
A0
BIE
A1
A0
BIE
A1
A0
Länge
in
typische Ausführungszeit
Wor-
in s
ten
1
4,7
1
11,5
1
< 15
1
0,1
OV
OS
OR
STA
1
5,1
1
11,8
OV
OS
OR
STA
ja
ja
1
< 20
1
< 20
1
< 20
1
< 20
OV
OS
OR
STA
ja
ja
ET 200SInterfacemodul IM 151/CPU
A5E00058779-01
VKE
/ER
VKE
/ER
VKE
/ER

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis