663
UMSG
1
2
3
4
4
6
7
8
7.18
Ot
her inst
ructions
7.18.2
0
UMSG
F
unct
i
on
(1) The string data specified by is displayed as a user message in the display unit.
The string specified directly by (surrounded by double quotation marks (")) or the string from the device number
specified by until the device number storing "00
H
" is displayed.
(2) Strings of up to 128 single-byte characters can be displayed in the display unit.
(3) The user message is displayed when the UMSG instruction command is rising.
If the string is changed while the command is on, then the modified user message will appear in the display unit.
(4) The string specified by the UMSG instruction is displayed upon END processing. If two or more UMSG instructions are
executed, then the last UMSG instruction executed before the END is valid. If two or more programs are running, then
the last UMSG instruction to be executed is valid.
(5) This instruction is not processed if it is run when no display unit is mounted.
(6) If the "ESC" key on the display unit is pressed while a user message is being displayed, the displayed message will
disappear.
To display the message again, execute "User Message" from the menu screen on the display unit.
(7) If a NULL code (00
H
) is specified as the argument to this instruction, then any message currently being displayed will
disappear.
The procedure for specifying a NULL code (00
H
) in the instruction parameter is as follows.
See the MELSEC-L CPU Module User's Manual (Function Explanation, Program Fundamentals) for details about the display
unit.
Operat
i
on
E
rror
(1) The following will cause a computation error, setting the error flag (SM0), and storing an error code in SD0.
Error
code
Error details
Q00J/
Q00/
Q01
QnH
QnPH QnPRH
QnU
LCPU
4100
More than 128 characters are specified in the string.
––
––
––
––
––
4101
There is no NULL code (00
H
) within the range of the target device
following the device number specified by
––
––
––
––
––
S
S
S
b15
to
b8
b7
to
b0
2nd
char
1st
char
4
th
char
3rd
char
6th
char
5th
char
8th
char
7th
char
10th
char
9th
char
Run
U
MSG
i
nstruct
i
on
00
I
nd
i
cates
end
of
str
i
ng
.
Message
appears
on
d
i
sp
l
ay
un
i
t
.
S
+
1
+
2
+
3
+4
S
S
S
S
H
U
ser
message
Process
A
comp
l
ete
.
Spec
i
fy
i
ng
a
NULL
code(00
H
)
S
S