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.
Length
Execution Time in s
tion
ID
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 – – – –