Mitsubishi Electric MELSEC FX3U Programming Manual page 710

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Program examples
1. Program example 1
In the program example shown below, the BCD data set in X020 to X037 is controlled by the zone from
"-1000" to "+1000", and the controlled value is output to D1 when X000 turns ON.
X000
FNC258
ZONEP
Operation
• In the case of "D0 < 0", "D0 + (-1000)" is output to D1.
• In the case of "D = 0", "0" is output to D1.
• In the case of "D0 > 0", "D0 + 1000" 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 zone from "-
10000" to "+10000", and the controlled value is output to D11 and D10 when X000 turns ON.
X000
FNC258
DZONEP
Operation
• In the case of "(D1, D0) < 0", "(D1, D0) + (-10000)" is output to
(D11, D10).
• In the case of "(D1, D0) = 0", the "0" is output to (D11, D10).
• In the case of "(D1, D0) > 0", "(D1, D0) + 10000" is output to
(D11, D10).
708
FNC 19
K4X020
BIN
K-1000
K1000
D0
FNC 19
K8X020
DBIN
K-10000 K10000
D0
29 Data Table Operation – FNC250 to FNC269
D0
D1
END
D0
D10
END
29.3 FNC258 – ZONE / Zone Control
Output
1000
-1000
0
1000
-1000
Output
10000
-10000
0
10000
-10000
Input
Input

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents