![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_7422681161.webp)
1122
Display Instructions: DISPLAY MESSAGE: MSG(046)
Section 3-27
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.
An error will occur and the Error Flag will turn ON if N is not between 0 and 7.
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 is not 0000 to 0007 hexadecimal.
OFF in all other cases.
N+1
N
N+2
N+15
A B C D E F
MSG
4
4
4
B
16 characters
×
2 lines
Programming Console display
16 words
(32 characters)
M:
4D
41
54
45
52
49
41
4C
20
53
48
4F
52
54
MSG
MATERIAL SHORT
D00107
D00115
N
M
Spaces
16 characters
×
2 lines max.
Reads ASCII
data up to 00.
Leave out spaces.
(Values ignored)
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...