Program Example2 (When Monitoring Consecutive Timers Using Operation Button) - Mitsubishi Electric MELSEQ FX3S Series User Manual

Hide thumbs Also See for MELSEQ FX3S Series:
Table of Contents

Advertisement

FX
Series Programmable Controllers
3S
User's Manual - Hardware Edition

16.9.3 Program example2 (when monitoring consecutive timers using operation button)

In this program example, the device type to be displayed on the specified device monitor screen is set to
"timer (T)". The operation buttons [+] and [-] in the display module are available to scroll device numbers T0 to
T10 during monitoring.
System information is assigned from D130 to D134 and from M400 to M414.
M8002
M406
M405
M405
M406
FNC224
LD=
FNC224
LD=
*1.
If device numbers are not consecutive, refer to program example 3 on the next page.
*2.
When a non-keep type data register is used for D8158, the current value of the data register becomes
"0" when the PLC is stopped. As a result, the device type displayed as "D" becomes invalid, and
the operator functions become valid.
Use a keep type data register as shown above for making invalid the operator functions.
*3.
When a keep type auxiliary relay is used for D8159, initialize it using the FNC 40 (ZRST) instruction,
etc.
170
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 40
ZRST
FNC 12
K11
D131
MOV
FNC 12
K-1
D131
MOV
*1
K100
T 0
K200
T10
*2
System information (system No.1)
K130
D8158
is set at D130 to D134.
System information (system No.2)
K400
D8159
is set at M400 to M414.
K5
D130
Sets the device type to "Timer".
D131
Resets the device number D131.
RST
*3
M400 to M414 storing the system
M400
M414
information are reset.
When the [+] button is pressed, M406
storing the system information turns ON.
FNC 24
D131
The INC instruction increases
INC
the current value of D131 by "1".
When the [-] button is pressed, M405
FNC 25
storing the system information turns ON.
D131
DEC
The DEC instruction decreases
the current value of D131 by "1".
K0
D131
K10
D131
16 Display Module (FX3S-5DM)
16.9 Specified Device Monitor Function
Timers T0 to T10 are used
in the program.
T0 to T10 are monitored.
The device number display range
is set to "from T0 to T10".

Advertisement

Table of Contents
loading

Table of Contents