Справочник Пользователя для Mitsubishi Electronics FX3S-MT/DS

Скачать
Страница из 216
16 Display Module (FX3S-5DM)
170
FX
3S
 Series Programmable Controllers
User's Manual - Hardware Edition
16.9 Specified Device Monitor Function
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.
*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.
Timers T0 to T10 are used 
in the program.
T0 to T10 are monitored.
FNC 12
MOV
K130
D8158
FNC 12
MOV
K400
D8159
When the [+] button is pressed, M406 
storing the system information turns ON.
The INC instruction increases 
the current value of D131 by "1".
M8002
Resets the device number D131.
FNC 12
MOV
K5
D130
RST
D131
FNC 24
INC
D131
FNC 25
DEC
D131
FNC224
LD=
K11
D131
FNC224
LD=
K-1
D131
FNC 12
MOV
K0
D131
T10
T 0
K100
K200
*1
*2
*3
FNC 12
MOV
K10
D131
M406
M405
System information (system No.1) 
is set at D130 to D134.
Sets the device type to "Timer".
FNC 40
ZRST
M400
M414
M400 to M414 storing the system 
information are reset.
System information (system No.2) 
is set at M400 to M414.
When the [-] button is pressed, M405 
storing the system information turns ON.
The DEC instruction decreases 
the current value of D131 by "1".
The device number display range 
is set to "from T0 to T10".
M406
M405