1121
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
ABCDE
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)