11.32 ROFF (Conversion: Floating Point Real Number Data → Integer
(Round to the Nearest Unit))
■
Ladder diagram
■
Available operation units (●: Available)
Operatio
n unit
bit US SS UL SL SF DF
i ● ● ● ●
■
List of operands
Operand Description
S Conversion target data (device address or constant (data format: according to the operation unit))
D Conversion target data (device address or constant (data format: according to the operation unit))
■
Available devices (●: Available)
Operan
d
16-Bit device:
32-Bit
device:
(Note 1)
Integer
Real
numbe
r
St
rin
g
Index
modifie
r
(Note 2)
W
X
W
Y
W
R
W
L
W
S
S
D
D
T
L
D
U
M
WI
W
O
TS
C
S
TE
C
E
IX
(N
ote
3)
K U H SF
D
F
" "
S ● ● ● ● ● ● ● ● ● ● ● ● ● ●
D ● ● ● ● ● ● ● ● ● ● ● ●
(Note 1) Cannot be specified when the operation unit is 16-bit integer (SS, US).
(Note 2) Only 16-bit devices, and 32-bit devices can be modified (real number constants, and character
constants cannot be specified).
(Note 3) Index register (I0 to IE)
■
Outline of operation
● According to the operation unit [i], the single-precision floating point real number value, which
is stored in the area starting with [S], is converted to an integer value (rounding the first
decimal point off).
● The calculation result is stored in the area starting with [D].
● The data setting ranges for conversion target data [S] by operation units are indicated below.
● The data setting ranges for conversion target data [S] by operation units are indicated below.
11.32 ROFF (Conversion: Floating Point Real Number Data → Integer (Round
to the Nearest Unit))
WUME-FP7CPUPGR-12 11-75