Mitsubishi Electronics MELSEC-F Home Theater Server User Manual


 
B-60
7 Examples of Practical Programs
7.3 Program That Uses Data History Function
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.
After this, if the same input mode is used, it is not necessary to set the input mode and waiting time
(T0 K50) again.
*2. The set input mode and the sampling time are retained in the 4AD EEPROM. Therefore, even if the
sequence program is deleted, the previously set functions will still be valid.
*3. If a large amount of history data is read out, the scan time of the PLC will be become longer. If the
scan time exceeds 200 ms, the CPU error indicator lamp will illuminate, and the PLC will stop.
Insert WDT instruction (watchdog timer refresh) between BMOV instructions.
M8002
M8000
K50
T0
*1
T0
Input modes of channels 1 to 4 will be
specified.
The sampling time will be set to 100 ms.
Initial pulse
RUN monitor
The digital values set for channels 1
to 4 will be read out to D0 to D3.
Data history of all the channels will be
erased.
X000
Clear data
history
*2
Data history of all the channels will be
temporarily stopped.
X001
Temporarily stop
data history
Temporary stoppage of data history will be
canceled for all the channels.
Temporarily stop
data history
X001
T0
FNC 07
WDT
FNC 07
WDT
FNC 07
WDT
FNC 07
WDT
Channel-1 history data (100 data samples)
will be read out to D100 to D199.
Channel-2 history data (100 data samples)
will be read out to D200 to D299.
Channel-3 history data (100 data samples)
will be read out to D300 to D399.
Channel-4 history data (100 data samples)
will be read out to D400 to D499.
The watchdog timer will be refreshed.
*3
The watchdog timer will be refreshed.
*3
The watchdog timer will be refreshed.
*3
The watchdog timer will be refreshed.
*3
*2
FNC 79
TO
K0 K1
P
K0 H3300
FNC 78
FROM
K10 K4
P
K0 D0
FNC 79
TO
K198 K1
P
K0 K100
FNC 79
TO
K199 K1
P
K0 H000F
FNC 79
TO
K199 K1
P
H0F00
FNC 79
TO
K199 K1
P
H0000
FNC 79
TO
K200 K100D100
FNC 79
TO
K1900 K100D200
FNC 79
TO
K3600 K100K0 D300
FNC 79
TO
K4300 K100K0 D400
K0
K0
K0
K0