Absolute Value : Abs - Mitsubishi Electric Melsec Q Series Programming Manual

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS

5.6.10 Absolute value : ABS

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S)
[Setting data]
Setting data
[Functions]
[Errors]
[Program examples]
ABS(S)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
Data on which absolute value conversion will be
(S)
(1) The absolute value of the data specified with (S) is found.
(1) An operation error will occur if:
• (S) is 16-bit integer type and other than -32767 to 32767.
• (S) is 32-bit integer type and other than -2147483647 to 2147483647.
• (S) is an indirectly specified device and its device No. is outside the range.
(1) Program which finds the absolute value of D0F and substitutes the result to #0F
#0F = ABS(D0F)
#3
#2
#0F
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
performed
#1
#0
33.0
5 - 36
F/FS
Number of basic steps
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
Data type of (S)
D3
D2
D0F
-33.0
G
2
Bit
Comparison
conditional
expression
: Usable
D1
D0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents