Mitsubishi MELSEC-Q series Programming Manual page 234

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

Advertisement

S.ABS
Set Data
Set Data
(1) Data specified in S.ABS instruction
Specification
Symbol
position
Input
+0
S1
E1
data
+1
+0
D1
BW
+1
BB
Block
BB1
memory
+2
BB2
*1
The data of the item(s) where the values within the recommended range are given in the parentheses are stored by the
system. Users cannot set the data.
Set Data
Processing contents
(1) The S.ABS instruction performs the following operation.
BW = |E1|
(2) The sign of the input value 1 (E1) is judged and the result is output to BB1 and BB2.
E1 Status
E1 > 0
E1 < 0
E1 = 0
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
Error code
When the value of
4100
normalized number
When the value of
4140
normalized number
232
Name
Recommended range
Input value
-999999 to 999999
Output value
(0 to 999999)
b15
b12
Judgment of
input value
When E1
0: BB1
(E1) sign
When E1
0: BB2
When E1
0: BB1
BB1
1
0
0
Error definition
is either a non-numeric or non-
S1
is either a non-numeric or non-
S1
*1
Unit
––
––
––
b8
b4
b0
B
B
B
B
2
1
––
1
1
BB2
0
BB2
0
1
0
QnPHCPU
––
Data
Standard
Set by
format
value
Real
––
number
Real
––
number
BIN
––
16Bit
QnPRHCPU
QnUDPVCPU
––
––
U
S
S

Advertisement

Table of Contents
loading

Table of Contents