Mitsubishi Electric FX3G User Manual page 148

Hide thumbs Also See for FX3G:
Table of Contents

Advertisement

FX
/FX
/FX
/FX
/FX
3S
3G
3GC
3U
FX
-4AD/FX
-4AD (4-channel Analog Input)
3U
3UC
2. Example of sequence program
• For FX
/FX
3U
Initial pulse
M8002
RUN monitor
M8000
T0
Clear data
history
X000
Temporarily stop
data history
X001
Temporarily stop
data history
X001
T0
*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.
B-58
PLC User's Manual - Analog Control Edition
3UC
Series PLCs
3UC
FNC 12
MOV
P
FNC 12
MOV
P
FNC 15
U0\G10
BMOV
FNC 12
MOV
P
FNC 12
MOV
P
FNC 12
MOV
P
FNC 15
U0\G200
BMOV
FNC 15
U0\G1900
BMOV
FNC 15
U0\G3600
BMOV
FNC 15
U0\G5300
BMOV
Input modes of channels 1 to 4 will be
H3300
U0\G0
specified.
K50
*1
T0
K100
U0\G198
The sampling time will be set to 100 ms.
The digital values set for channels 1
D0
K4
to 4 will be read out to D0 to D3.
Data history of all the channels will be
H000F U0\G199
erased.
Data history of all the channels will be
H0F00 U0\G199
temporarily stopped.
Temporary stoppage of data history will be
H0000 U0\G199
canceled for all the channels.
Channel-1 history data (100 data samples)
D100
K100
will be read out to D100 to D199.
FNC 07
The watchdog timer will be refreshed.
WDT
Channel-2 history data (100 data samples)
D200
K100
will be read out to D200 to D299.
FNC 07
The watchdog timer will be refreshed.
WDT
Channel-3 history data (100 data samples)
D300
K100
will be read out to D300 to D399.
FNC 07
The watchdog timer will be refreshed.
WDT
Channel-4 history data (100 data samples)
D400
K100
will be read out to D400 to D499.
FNC 07
The watchdog timer will be refreshed.
WDT
7 Examples of Practical Programs
7.3 Program That Uses Data History Function
*2
*2
*3
*3
*3
*3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fx3sFx3gcFx3uFx3uc

Table of Contents