![Omron CJ1G-CPUxx Instructions Manual Download Page 936](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491936.webp)
915
Display Instructions: DISPLAY MESSAGE: MSG(046)
Section 3-27
After a message has been registered, the message display can be changed
by overwriting the message in the message storage area.
To clear a message that has been registered, execute MSG(046) with S set to
the message number of the message you want to clear and N set to a con-
stant (0000 to FFFF).
A message registered during program execution will be retained even if pro-
gram execution is stopped, but all messages will be cleared when the pro-
gram is executed again.
Note Refer to Appendix A in the CS/CJ-series Programming Consoles Operation
Manual (W341) for a table showing extended ASCII.
Flags
Precautions
Registered messages are updated each time MSG(046) is executed.
All message characters after the null character (00) are converted to spaces
in the Programming Console display.
The character stored in the leftmost byte is displayed before the character in
the rightmost byte.
Examples
The following diagram shows how 16 words of hexadecimal data are con-
verted to a message displayed on the Programming Console.
When CIO 000000 turns ON in the following example, the 16 words of data in
D00100 through D00115 are read as the 32 characters of ASCII data for mes-
sage number 7 and displayed at the Peripheral device.
Name
Label
Operation
Error Flag
ER
ON if the content of S isn’t 0000 to 0007 hexadecimal.
OFF in all other cases.
16 words
(32 characters)
Programming Console display
16 characters
×
2 lines
N+1
N
N+2
N+15
A B C D E F
MSG
4
4
4
B
M:
N
M
4D
41
54
45
52
49
41
4C
20
53
48
4F
52
54
MSG
MATERIAL SHORT
Reads ASCII
data up to 00.
Leave out spaces.
(Values ignored)
16 characters
×
2 lines max.
Spaces
D00107
D00115
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...