Mitsubishi Electric MELSEQ FX3S Series User Manual page 179

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

Advertisement

FX
Series Programmable Controllers
3S
User's Manual - Hardware Edition
Program example
In this program example, the counter C10 is displayed, and current value/set value edit (data change) is
enabled when the [OK] button is pressed.
System information is assigned from D130 to D134 and from M400 to M414.
M8002
Input for counting the counter
M407
M401
Cautions on using the edit function
It is necessary to make valid the specified device monitor function before using the specified device editor
function.
When the [+] and [-] buttons are used for scrolling the device number, the device number scroll program is
activated if the current value or set value is increased or decreased during editing.
In such a combination, it is necessary to set the following interlock:
Edit request input
M+1
(Edit completion response)
[+] button
M+6
M
[-] button
M+5 M
FNC 12
K130
D8158
MOV
FNC 12
K400
D8159
MOV
FNC 12
K6
D130
MOV
FNC 12
K10
D131
MOV
FNC 40
M400
M414
ZRST
C10
SET
M400
RST
M400
SET
M
RST
M
FNC 24
INC
FNC 25
DEC
Set the interlock so that scroll is disabled while the edit request is valid.
(Write the same device as M used for edit request.)
16.9 Specified Device Monitor Function
System information (system No.1)
is set at D130 to D134.
System information (system No.2)
is set at M400 to M414.
Sets the device type to "Counter".
Sets the device number to "C10".
M400 to M414 storing the system
information are reset.
K100
When the [OK] button (M + 7 = M407) is pressed,
the edit request (M = M400) turns ON.
The SET instruction is used so that the edit request
remains ON even if the [OK] button is released.
When the [OK] button for edit completion or [ESC]
button is pressed, the PLC turns ON the edit
completion response (M + 1 = M401).
M400 is reset, and the edit is completed.
Editing program
Device number scroll program
16 Display Module (FX3S-5DM)
173
11
12
13
14
15
16
17
A
B
C

Advertisement

Table of Contents
loading

Table of Contents