Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 1354

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
This instruction outputs values according to the function generator pattern consisting of n break points as specified by (s2)
with regard to the input value (E1).
Y
BW
(X
, Y
)
1
1
E1
The S.FG instruction performs the following operations.
Condition
E1X1
X
<E1X
(i=2 to n)
i-1
i
X
<E1
n
• If the value specified in (n) is 0, no processing is performed.
• If X
> X
, processing is stopped when n = i - 1. (The subsequent data is ignored.)
i - 1
i
• When there are two or more X
Operation error
Error code
3400H
3402H
3403H
3405H
11 PROCESS CONTROL INSTRUCTIONS
1352
11.4 Correction Operation Instructions
(X
, Y
)
2
2
(X
, Y
)
3
3
(X
for the same Y
, the Y with smaller i is selected.
i
i
Error content
An invalid operation (such as division by zero) is performed.
The value specified by (s1) or (d2) is a subnormal number or NaN (not a number).
An overflow has occurred.
The number of break points (SN) is less than 0 or greater than 48.
, Y
)
4
4
X
Output value (BW)
BW=Y1
Y
-Y
i
i-1
BW=
×(E1-X
)+Y
i-1
i-1
X
-X
i
i-1
BW=Y
n

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents