Mitsubishi Electronics FX3G User Manual

Page of 964
663
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 Series
Programming Manual - Basic & Applied Instruction Edition
29 Data Table Operation – FNC250 to FNC269
29.1 FNC256 – LIMIT / Limit Control
21
FNC160
-F
NC1
69
R
eal
 T
ime C
lock
 
C
ontrol
22
FNC17
0-F
NC
179
E
xternal D
evice
23
FNC
180
Alternate 
Instructions
24
FN
C181-
FNC18
9
O
thers
25
FNC190
-F
NC1
99
Bl
oc
k D
ata
 
Op
er
ation
26
FNC20
0-F
NC209
C
har
ac
te
r S
trin
Con
tro
l
27
FNC2
10-
FNC21
9
Dat
Operati
on 3
28
FNC220
-F
NC2
49
Da
ta 
C
omp
ari
son
29
FNC25
0-F
N
C
269
D
ata T
abl
Operation
30
FNC2
70-
FNC276
Ex
-Dev
ice
Program examples
1. Program example 1
In the program example shown below, the BCD data set in X020 to X037 is controlled by the limit values “500” to
“5000”, and the controlled value is output to D1 when X000 turns ON.
Operation
• In the case of “D0 < 500”, “500” is output to D1.
• In the case of “500 
≤ D0 ≤ 5000”, the value of D0 is output to D1.
• In the case of “D0 > 5000”, “5000” is output to D1.
2. Program example 2
In the program example shown below, the BCD data set in X020 to X057 is controlled by the limit values “10000” and
“1,000,000”, and the controlled value is output to D11 and D10 when X000 turns ON.
Operation
• In the case of “(D1, D0) < 10000”, “10000” is output to (D11, 
D10).
• In the case of “10000 
≤ (D1, D0) ≤ 1,000,000”, the value of (D1, 
D0) is output to (D11, D10).
• In the case of “(D1, D0) > 1,000,000”, “1,000,000” is output to 
(D11, D10).
X000
K4X020
D0
FNC 19
BIN
K500
K5000
D0
D1
FNC256
LIMIT
END
Input (D0)
Output (D1)
500
5000
500
5000
X000
K8X020
D0
FNC 19
DBIN
K10000
K1000000
D0
D10
FNC256
DLIMIT
END
Input (D1,D0)
Output (D11,D10)
10000 1,000,000
10000
1,000,000