Fix (Conversion: Floating Point Real Number Data → Integer (Round Decimal Digits)) - Panasonic FP7 Series Command Reference Manual

Cpu unit
Hide thumbs Also See for FP7 Series:
Table of Contents

Advertisement

11.30 FIX (Conversion: Floating Point Real Number Data → Integer (Round
Decimal Digits))
11.30 FIX (Conversion: Floating Point Real Number Data → Integer
(Round Decimal Digits))
Ladder diagram
Available operation units (●: Available)
Operatio
bit
n unit
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
W
W
X
Y
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 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 down).
● 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.
11-68
US
16-Bit device:
W
W
W
S
D
L
R
L
S
D
T
D
SS
UL
32-Bit
device:
(Note 1)
TS
TE
U
W
WI
C
C
M
O
S
E
SL
SF
Real
Integer
numbe
r
IX
(N
D
K
H
SF
F
ote
3)
WUME-FP7CPUPGR-12
DF
St
rin
g
Index
modifie
r
(Note 2)
" "

Advertisement

Table of Contents
loading

Table of Contents