430
FX
3U
Series Programmable Controllers
User’s Manual - Hardware Edition
19 FX3U-7DM (Display Module)
19.23 User Message Display Function
19.23.6 Program example 3 (user messages plus data display)
The following is a program example in which the counter’s current value appears at the user message.
Note that user messages do not appear when a screen other than the "top screen (time display)" is displayed.
1. Operation
The message shown below appears when auxiliary relay M100 switches on.
In this program example, the system information is assigned from D50 to D90 and from M50 to M56.
*1.
The current values of the devices shown below appear as the target quantity, the production quantity,
and the remaining quantity.
2. Displaying a word device current value as a message
A numeric value can be displayed at the user message by combining BCD (FNC 18), ASCI (FNC 82), and
BMOV (FNC 15) instructions, etc.
3. Character data
User message data to be displayed is created in GX Developer, and is assigned to file registers D1000 to D1031.
→
Refer to Subsection 19.23.7 for character data input.
4. Program
Continued on next page
Item
Device
Remarks
Target
D200
Specifies the C0 setting.
Production C0
Counts the number of M101 ON operations.
Remaining D201
Remaining (D201) = target (D200) - production (C0).
1
T a r
e t
< P r o
g
d u
i o
t
>
c
R e m
i n
n
a
g
n
P r o d u
i o
t
c
n
*
1
*
1
*
i
Initial pulse
MOV
K50
D8300
MOV
K50
D8301
M8002
Sets system information (system
signal 1) at D50 to D90.
Sets system information (system
signal 2) at M50 to M56.
Production quantity count setting is
specified indirectly by D200.
M101
C0
MOV K10000 D200
D200
RUN monitor
D200
C0
D201
M8000
Remaining quantity
SUB
Specifies "10000" as the target
quantity
M100
M54
D1000
D59
K32
BMOV
MOV
D200
D100
CALL
P0
D140
D72
K3
BMOV
MOV
C0
D102
CALL
P0
D150
D80
K3
BMOV
User message display command.
Sets character data other than "Target",
"Production", and "Remaining".
Starts a sub-routine program that
adds a space (20H) to the target
quantity (D200) current value (5
digits) to generate 6-character data.
Saves the generated character data
at the user message display position.
Starts a sub-routine program that
adds a space (20H) to the production
quantity (C0) current value (max. 5
digits) to generate 6-character data.
Saves the generated character data
at the user message display position.
Summary of Contents for FX2-16E series
Page 2: ......
Page 8: ... 6 Safety Precautions Read these precautions before use MEMO ...
Page 519: ......