Absolute value
S.ABS
RnPCPU
RnCPU RnENCPU
(Process)
This instruction outputs the absolute value of input data.
Ladder
(s1)
FBD/LD
EN
ENO
s1
d1
s2
s3
■Execution condition
Instruction
S.ABS
Setting data
■Description, range, data type
Operand
Description
(s1)
Input data start device
(d1)
Block memory start device
(s2)
Empty string specification
(Specify "" in ladder. Specify '' in ST or FBD/LD.)
(s3)
Empty string specification
(Specify "" in ladder. Specify '' in ST or FBD/LD.)
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L,
SM, F, B, SB,
FX, FY
(s1)
(d1)
(s2)
(s3)
■Input data
Operand: (s1)
Device
Symbol
+0
E1
+1
11 PROCESS CONTROL INSTRUCTIONS
1378
11.5 Arithmetic Operation Instructions
RnPCPU
RnSFCPU RnSFCPU
(Redundant)
(Standard)
(Safety)
(d1)
(s2)
(s3)
Execution condition
Word
J\
T, ST, C, D, W,
SD, SW, R, ZR,
RD
Name
Recommended range
Input value
-999999 to 999999
ST
ENO:=S_ABS(EN,s1,s2,s3,d1);
Range
Refer to "Input data".
Refer to "Block memory".
Double word Indirect
U\G, J\,
Z
LT, LST,
U3E\(H)G
LC
Data type
Single-precision real
number
Word
String
String
Bit
Bit
Constant
specification
LZ
K, H E
Data type
Standard
value
Single-precision
real number
Others
$
Set by
User