EasyManua.ls Logo

Siemens CPU 414-2 - Page 86

Siemens CPU 414-2
160 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Data Type Conversion Instructions
84
S7-400 Instruction List
A5E00267845-01
Data Type Conversion Instructions,
continued
The real number to be converted is in ACCU1.
Instruc-
Address
Description
Length
in
Execution Time in s
Instruc-
tion
Address
ID
Description
Length
in
Words
CPU 412 CPU 414 CPU 416 CPU 417
RND+ Convert a real number into a
32-bit integer. The number is
rounded up to the next whole
number.
1 0.4 0.24 0.16 0.12
RND Convert a real number into a
32-bit integer.
1 0.4 0.24 0.16 0.12
RND- Convert a real number into a
32-bit integer. The number is
rounded down to the next whole
number.
1 0.4 0.24 0.16 0.12
TRUNC Convert a real number into a
32-bit integer. The places after
the decimal point are truncated.
1 0.4 0.24 0.16 0.12
Status word for: RND, RND-, RND+,
TRUNC
BR CC1 CC0 OV OS OR STA RLO /FC
Instruction evaluates:
Instruction affects: Yes Yes

Table of Contents

Related product manuals