EasyManua.ls Logo

Mitsubishi Electric R64MTCPU - Round-Down: FIX

Mitsubishi Electric R64MTCPU
354 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...
156
4 OPERATION CONTROL PROGRAMS
4.7 Standard Functions
Round-down: FIX
Setting data
Usable data
: Usable
Description, data type of result
Processing details
The largest integer not greater than the data specified with (S) is found.
If the (S) value is positive, the absolute value will be smaller, and if it is negative, the absolute value will be greater.
If (S) is an integer type, its value is returned unchanged, with no conversion processing performed.
Operation error
An operation error will occur if:
(S) is an indirectly specified device and its device No. is outside the range.
Program example
Program which finds the rounded-down fractional portion value of D0F and substitutes the
result to #0F
Program which finds the rounded-down fractional portion value of D4F and substitutes the
result to #0F (when D4F is a negative number)
Format Number of basic steps Usable steps
F/FS G
FIX(S) 4 
Setting
data
Usable Data
Bit
device
Word device Constant Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
16-bit
integer
type
(K/H)
32-bit
integer
type
(K/H, L)
64-bit
floating
point
type (K)
(S) 
Setting data Description Data type of result
(S) Data whose fractional portion will be rounded down Data type of (S)
#0F = FIX(D0F)
33.0
#2 #1#3 #0
#0F 33.54
D2 D1D3 D0
D0F
#0F = FIX(D4F)
-34.0
#2 #1#3 #0
#0F -33.54
D6 D5D7 D4
D4F

Table of Contents

Other manuals for Mitsubishi Electric R64MTCPU

Related product manuals