EasyManua.ls Logo

Mitsubishi Electric Q172CPU - Functions (SQRT, ABS, BIN, BCD, LN, EXP, RND, FIX, FUP)

Mitsubishi Electric Q172CPU
634 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...
7 - 142
7 MOTION PROGRAMS FOR POSITIONING CONTROL
7.16.9 Functions (SQRT, ABS, BIN, BCD, LN, EXP, RND, FIX, FUP)
Code
SQRT, ABS, BIN, BCD,
LN, EXP, RND, FIX,
FUP
Function Functions
Operations of SQRT (square root), ABS (absolute value), BIN (BCD to
BINARY conversion), BCD (BINARY to BCD conversion), LN (natural
logarithm), EXP (base e exponent), RND (round off), FIX (round down)
and FUP (round up) are executed.
Format
u
Numerical value (Indirect setting is possible)
nto
;
f[]ci n n
Function
(SQRT, ABS, BIN, BCD, LN, EXP, RND, FIX, FUP)
[Explanation]
(1) Operation of the specified function is executed.
(2) Refer to Items (5), (6), (7) in Section 7.11.3 for the operation result.
[Program Example]
#2010L = SQRT [100] 10 enters [D2011, D2010].
#2020L = ABS [-25] 25 enters [D2021, D2020].
#2030L = BIN [100] 64 enters [D2031, D2030].
#2040L = BCD [100] 256 enters [D2041, D2040].
#2050L = LN [1000000] 13 enters [D2051, D2050].
#2060L = EXP [20] 485165195 enters [D2061, D2060].
#2070F = RND [14/3] 5 enters [D2073, D2072, D2071, D2070]
(64-bit floating-point type).
#2080F = FIX [14/3] 4 enters [D2083, D2082, D2081, D2080]
(64-bit floating-point type).
#2090F = FUP [14/3] 5 enters [D2093, D2092, D2091, D2090]
(64-bit floating-point type).
#2170F = RND [-14/3] -5 enters [D2173, D2172, D2171, D2170]
(64-bit floating-point type).
#2180F = FIX [-14/3] -5 enters [D2183, D2182, D2181, D2180]
(64-bit floating-point type).
#2190F = FUP [-14/3] -4 enters [D2193, D2192, D2191, D2190]
(64-bit floating-point type).

Table of Contents

Other manuals for Mitsubishi Electric Q172CPU

Related product manuals