Instruction List
B-46
ET 200S Interface Module IM 151/CPU
A5E00058783-01
B.35
Data Type Conversion Instructions
Result
The results of the conversion are in ACCU1.
The execution time for the conversion of real numbers depends on the value.
In-
struc-
tion
Address
ID
Description
Length
in
Words
Typical Execution Time in
s
BTI
–
Convert contents of ACCU1 from BCD to
integer (16 bits) (BCD To Int)
1
4.7
BTD
–
Convert contents of ACCU1 from BCD to
double integer (32 bits) (BCD To Doubleint)
1
11.5
DTR
–
Convert contents of ACCU1 from double
integer (32 bits) to real (32 bits) (Doubleint
To Real)
1
< 15
ITD
–
Convert contents of ACCU1 from integer
(16 bits) to double integer (32 bits) (Int To
Doubleint)
1
0.1
Status word for:
BTI, BTD, DTR, ITD
BR
A1
A0
OV
OS
OR
STA
RLO
/FC
Instruction depends on:
–
–
–
–
–
–
–
–
–
Instruction controls:
–
–
–
–
–
–
–
–
–
ITB
–
Convert contents of ACCU1 from integer
(16 bits) to BCD (Int To BCD)
1
5.1
DTB
–
Convert contents of ACCU1 from double
integer (32 bits) to BCD (Doubleint To
BCD)
1
11.8
Status word for:
ITB, DTB
BR
A1
A0
OV
OS
OR
STA
RLO
/FC
Instruction depends on:
–
–
–
–
–
–
–
–
–
Instruction controls:
–
–
–
Yes
Yes
–
–
–
–
RND
–
Convert real number to 32-bit double inte-
ger.
1
< 20
RND–
–
Convert real number to 32-bit double inte-
ger. Rounded up to next integer.
1
< 20
RND+
–
Convert real number to 32-bit double inte-
ger. Rounded up to next integer.
1
< 20
TRUN
C
–
Convert real number to 32-bit double inte-
ger. Digits after the decimal point are trun-
cated.
1
< 20
Status word for:
RND, RND–, RND+,
TRUNC
BR
A1
A0
OV
OS
OR
STA
RLO
/FC
Instruction depends on:
–
–
–
–
–
–
–
–
–
Instruction controls:
–
–
–
Yes
Yes
–
–
–
–
Summary of Contents for SIMATIC IM 151/CPU
Page 6: ...Important Information vi ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 14: ...Contents xiv ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 42: ...ET 200S in the PROFIBUS Network 3 12 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 68: ...Commissioning and Diagnostics 4 26 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 98: ...Technical Specifications 6 8 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 108: ...Cycle and Response Times 7 10 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 190: ...Execution Times of the SFCs and SFBs C 4 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...
Page 196: ...Migration of the IM 151 CPU D 6 ET 200S Interface Module IM 151 CPU A5E00058783 01 ...