Mitsubishi Electronics FX2N-5A Insect Control Equipment User Manual


 
FX2N-5A Special function block Example program 9
9-2
Figure 9.1: Example program
M8002
K0 K0 H1100 K1
K0 K1 H0000 K1
K0 K10 D110 K4
K0 D114
Specifies the input mode of CH1 to CH4.
Specification of analog output channel's
output mode.
Average value data reading of CH1 to CH4.
(CH1
D106, CH2
D107. . . CH4
D109)
Immediate data reading of CH1 to CH4.
(CH1
D110, CH2
D111. . . CH4
D113)
Analog output value (0V)
FNC 79
TO
FNC 79
TO
FNC 78
FROM
FNC 12
MOV
RUN monitor
Analog output value (5V)
M8000
Initial pulse
K0 K2 K10 K4
FNC 79
TO
Number of averaging times setting of CH1 to
CH4. (10)
K0 K6 D106 K4
FNC 78
FROM
X000
Change of analog
output value
K16000
D114
FNC 12
MOV
X000
K0 K14 D114 K1
M8000
RUN monitor
FNC 79
TO
Writing of analog output value
RUN monitor
M8000
K0 K28
K4M100
K1
FNC 78
FROM
Reading of the scale over
CH1 less than lower bound
M100
CH1 upper bound excess
M101
:
CH4 less than lower bound
M106
CH4 upper bound excess
M107
K2M100 K2Y000
FNC 12
MOV
Output of the scale over
CH1 less than lower bound
Y000
CH1 upper bound excess
Y001
:
CH4 less than lower bound
Y006
CH4 upper bound excess
Y007