Mitsubishi MELSEC-Q series Programming Manual page 208

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

Advertisement

S.FG
Set Data
Set Data
(1) Data specified in S.FG instruction
Specified position
Symbol
+0
S1
Input data
E1
+1
Block
+0
D1
BW
memory
+1
Operation
SN
+0
S2
constant
+0
D2
X1
+1
+2
Y1
+3
+4
X2
Local
+5
work
+6
Y2
memory
+7
+4SN-4
Xn
+4SN-3
+4SN-2
Yn
+4SN-1
*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.FG instruction performs the following operation.
Condition
E1  X1
< E1  X
X
(i = 2 to n)
i-1
i
Xn < E1
(2) When n = 0 there is no processing.
(3) When X
> X
, the value is cut off to n = i-1 (Data after that is ignored.)
i-1
i
When there are multiple Y
Operation Error
In the following cases, the error flag (SM0) turns ON and the error code is stored in SD0.
Error code
When an operation error occurs
When the values of
4100
normalized number
When (SN < 0) or (SN > 48)
When the values of
4140
normalized number
4141
When an operation error occurs
206
Name
Recommended range
Input value
-999999 to 999999
Output value
(-999999 to 999999)
Number of
0 to 48
polygon points
Polygon point
coordinates
Polygon point
coordinates
Polygon point
coordinates
Polygon point
-999999 to 999999
coordinates
Polygon point
coordinates
Polygon point
coordinates
Output value (BW)
BW = Y1
Y
Y
i
i
1
BW
(E1 X
i
X
X
i
i
1
BW = Yn
for the same X
, the lowest i is selected.
i
i
Error definition
,
are either a non-numeric or non-
S1
D2
,
are either a non-numeric or non-
S1
D2
*1
Unit
––
––
––
––
)
Y
1
i
1
QnPHCPU
––
––
Standard
Data format
value
Real number
––
Real number
––
BIN
0
16Bit
Real number
––
QnPRHCPU
QnUDPVCPU
––
––
––
––
Set
by
U
S
U
U

Advertisement

Table of Contents
loading

Table of Contents