Mitsubishi Electronics FX2N-8AD TV Converter Box User Manual


 
FX2N-8AD Analog input block Example program 10
10-3
Figure 10.1:Example program
M8002
K0 K0 H3300 K1
K0 K1 HFF99 K1
K0 K22 H0002 K1
K0 K10 D0 K6
K0 K26 K4M0 K1
Specifies the input mode of
CH1 to CH4.
Specifies the input mode of
CH5 to CH8.
Enables the upper/lower limit value detection function.
Reads the channel data from CH1 to CH6.
(CH1
D0, CH2
D1,
.....
CH6
D5)
Reads the upper/lower limit value error status.
(M0 to M15)
FNC 79
TO
FNC 79
TO
FNC 79
TO
FNC 78
FROM
FNC 78
FROM
K0 K28 K4M20 K1
K0 K29 D6 K1
FNC 78
FROM
FNC 78
FROM
K0 K99 H0003 K1
K0 K28 K0 K1
P
FNC 79
TO
X001
Clear of upper/
lower limit value
error
X002
Clear of scale
over error
RUN monitor
Reads the scale over status.
(M20 to M25)
Reads the error status.
(BFM #29
D6)
Clears the upper/lower limit value error.
Clears the scale over error.
P
FNC 79
TO
TO
K50
M8000
T0
Initial pulse
P
Stand by for five seconds.
As for the changed input
mode, the power failure
maintenance is done by
EEPROM.
The change of program in the
input mode and stand by for
five seconds can be omitted.
At use the input mode
memorized in EEPROM.