Program Example 2 ([+] / [-] Buttons For User Message Switching) - Mitsubishi FX3U-?*MR/ES User Manual

Fx3u series programmable controllers
Table of Contents

Advertisement

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

19.23.5 Program example 2 ([+] / [-] buttons for user message switching)

The following is a program example in which the [+] / [-] buttons are used to switch the displayed user message.
Note that user messages do not appear when a screen other than the "top screen (time display)" is displayed.
1. Operation
The No.1 message shown below appears when auxiliary relay M100 switches on, and the [+] / [-] buttons can
be used at that time to switch to the other messages as shown below.
The system information is assigned from D50 to D90 and from M50 to M56.
No.1
P L C
P r o c
e
s s m c
a
V
e r .
2
.
2. Character data
User message data to be displayed is created in GX Developer, and is assigned to the file registers shown below.
Message No.
1
2
3
3. Program
M8002
Initial pulse
M100
M100
"User
message
displayed" flag [+] button ON
M100
M56
"User
message
displayed" flag [-] button ON
M100
M56
M60
M61
M62
No.2
I n
p
+
h
i n
e r y
R i s e
-
0
t e m p
File Register Where Saved
D1000 to D1031
D1032 to D1063
D1064 to D1095
M53
SFTL
M60
M61
M63
M52
SFTR
M58
M59
BMOV
BMOV
BMOV
r
e p a
r
a
t
i o
n
+
t o
p
r
e
s e t
-
e
r a t
u
r
e
→ Refer to Subsection 19.23.7 for character data input.
MOV
K50
D8300
MOV
K50
D8301
M54
ZRST
M58
M63
SET
M60
M61
K3
K1
RST
M60
SET
M60
RST
M63
M59
K4
K1
SET
M62
RST
M59
D1000
D59
K32
D1032
D59
K32
D1064
D59
K32
END
19 FX3U-7DM (Display Module)
19.23 User Message Display Function
No.3
R U N N NG
I
P r o c
e
s s
N
o
.
0 5
M o u n
t
i n g
h
o
l e
P r o c
e
s s i
n
g
Sets system information (system
signal 1) at D50 to D90.
Sets system information (system
signal 2) at M50 to M56.
User message display command.
Initializes the user message selection
flag.
Sets the user message initial screen.
User message selection flag control
according to [+] / [-] button operation.
Sets user message data at D59 to
D90.
11
12
13
14
15
16
17
18
19
20
429

Advertisement

Table of Contents
loading

Table of Contents