Display Instructions: DISPLAY MESSAGE: MSG(046)
Flags
Precautions
Examples
N
N+1
N+2
N+15
N
M
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.
Name
Error Flag
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.
The following diagram shows how 16 words of hexadecimal data are con-
verted to a message displayed on the Programming Console.
4
4
16 words
4
(32 characters)
B
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.
M:
4D
41
54
45
Reads ASCII
data up to 00.
52
49
41
4C
20
53
48
4F
52
54
D00107
Leave out spaces.
(Values ignored)
D00115
Label
ER
ON if the content of S is not 0000 to 0007 hexadecimal.
OFF in all other cases.
Programming Console display
MSG
A B C D E F
16 characters × 2 lines
16 characters × 2 lines max.
MSG
MATERIAL SHORT
Section 3-27
Operation
Spaces
1121
Need help?
Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 08-2008 and is the answer not in the manual?
Questions and answers