Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
B-54
7 Examples of Practical Programs
7.1 Program That Uses Averaging Time
FX
3G
/FX
3U
/FX
3UC
PLC User's Manual - Analog Control Edition
FX3U-4AD/FX3UC-4AD (4-channel Analog Input)
•For FX3G, FX3U, FX3UC Series PLCs
*1. After setting the input mode, set the data writing time (waiting time) to 5 seconds or more for each
setting.
The specified input mode will be retained even if power failure occurs. After specifying the input mode,
if the same input mode is used, it is not necessary to set the input mode and waiting time (T0 K50).
*2. To use the default value set for the digital filter function, it is not necessary to set the digital filter
function in the sequence program.
M8002
M8000
K50
T0
*1
T0
Input modes of channels 1
to 4 will be specified.
For channels 1 and 2, the averaging time
will be set to "10".
Initial pulse
The digital filter function of channels 1
and 2 will be disabled.
RUN monitor
*2
The digital values set for channels
1 to 4 will be read out to D0 to D3.
*1
FNC 79
TO
K0 K1
P
K0 H3300
FNC 79
TO
K2 K4
P
K0 K10
FNC 79
TO
K6 K4
P
K0 K0
FNC 78
FROM
K10 K4K0 D0