Program Example3 (When Monitoring Non-Consecutive Timers Using Operation Buttons) - 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.4 Program example3 (when monitoring non-consecutive timers using operation
buttons)
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 T1,
T5, T10 and T20 during monitoring.
System information is assigned from D130 to D134 and from M400 to M414.
M8002
M406
M405
M405
M406
M8000
FNC224
LD=
FNC224
K-1
LD=
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 40
ZRST
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 12
MOV
FNC 12
K4
Z0
MOV
FNC 12
Z0
MOV
K100
T 1
K150
T 5
K200
T10
K250
T20
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".
Z0
Resets the index register (Z0).
RST
M400 to M414 storing the system
M400
M414
information are reset.
K1
D140
K5
D141
K10
D142
K20
D143
When the [+] button is pressed, M406
storing the system information turns ON.
FNC 24
Z0
The INC instruction increases
INC
the current value of Z0 by "1".
When the [-] button is pressed, M405
FNC 25
Z0
storing the system information turns ON.
DEC
The DEC instruction decreases
the current value of Z0 by "1".
D140Z0
D131
The device number to be
displayed is specified.
K0
Z0
K3
Z0
16 Display Module (FX3S-5DM)
16.9 Specified Device Monitor Function
Timers having nonconsecutive
device numbers are used as
shown in this program.
Transfers the timer device
numbers to D140 to D143.
The device number is specified
within the allowable range.
11
12
13
14
15
16
17
A
B
C
171

Advertisement

Table of Contents
loading

Table of Contents