S.abs Absolute Value - Mitsubishi MELSEC-Q series Programming Manual

Process control instructions
Hide thumbs Also See for MELSEC-Q series:
Table of Contents

Advertisement

11.6
S.ABS
Absolute Value
11.6
S.ABS
S.ABS
Structured ladder/FBD
EN
s1
s2
Input argument
EN
S1
S2
Output argument
ENO
D1
D2
Internal devices
Setting
data
Bit
Word
––
S1
––
D1
––
S2
––
D2
*1
Special register SD1506 can be specified as a dummy device.
Function
The input value (E1) absolute value is output.
Input (E1)
0
Ladder diagram
Start contact
S_ABS
ENO
d1
d2
: Execution condition
: Input data start device
*1
: Dummy device
: Execution result
: Block memory start device
*1
: Dummy device
J
\
R, ZR
Bit
t
S.ABS
S1
D1
Structured text language
ENO:=S_ABS(EN,s1,s2,d1,d2);
: Bit
: Real data type
: Real data type
: Bit
: Array of any 16-bit data (0..2)
: Real data type
U
\G
Word
––
––
––
––
Output (BW)
ABS
0
BB1
BB2
S.ABS
S2
D2
Zn
Constant
Other
t
231
1
2
11
6
7
8

Advertisement

Table of Contents
loading

Table of Contents