Panasonic FP7 Series Command Reference Manual page 596

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

Advertisement

11.32 ROFF (Conversion: Floating Point Real Number Data → Integer (Round
to the Nearest Unit))
Operation unit
US
SS
UL
SL
Processing
Example 1) Unsigned 16 bits (US) (positive value)
[i]...US
[S]...DT10
DT10・DT11
DT12・DT13
DT14・DT15
Example 2) Unsigned 16 bits (US) (negative value)
[i]...US
[S]...DT10
DT10・DT11
DT12・DT13
DT14・DT15
* Operation error occurs if an unsigned integer is specified for the operation unit and
a negative value is converted.
Example 3) Coded 16 bits (SS) (positive value)
[i]...SS
[S]...DT10
DT10・DT11
DT12・DT13
DT14・DT15
Example 4) Coded 16 bits (SS) (negative value)
[i]...SS
[S]...DT10
DT10・DT11
DT12・DT13
DT14・DT15
Example 5) Unsigned 32 bits (UL) (positive value)
[i]...UL
[S]...DT10
DT10・DT11
DT12・DT13
DT14・DT15
11-76
Minimum value
[D]...DT0
SF 2.345670E+ + 02
SF 3.456780E+02
SF 4.567890E+02
[D]...DT0
SF -2.345670E+ + 02
SF -3.456780E+02
SF -4.567890E+02
[D]...DT0
SF 2.345670E+ + 02
SF 3.456780E+02
SF 4.567890E+02
[D]...DT0
SF -2.345670E+ + 02
SF -3.456780E+02
SF -4.567890E+02
[D]...DT0
SF 1.234567E+ + 05
SF 2.468000E+02
SF 1.357000E+02
0.00
-32768.49
0.00
-2147483648.49
DT0
DT1
DT2
DT0
DT1
DT2
DT0
DT1
DT2
DT0
DT1
DT2
DT0・DT1
DT2・DT3
DT4・DT5
Maximum value
65535.49
32767.49
4294967295.49
2147483647.49
U 235
U 0
U 0
U 0
U 0
U 0
K 235
K 0
K 0
K -235
K 0
K 0
U 123457
U 0
U 0
WUME-FP7CPUPGR-12

Advertisement

Table of Contents
loading

Table of Contents