Omron SYSMAC CS Series Instruction & Reference Manual page 962

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
Function
When the execution condition is ON, MSG(046) registers the 16 words of ASCII data (up to 32
characters including the null character) from M to M+15 for the message number specified by N. Once
a message has been registered, a Programming Console can be connected and the message will be
displayed after any error messages that have been generated.
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 constant (0000 to FFFF).
A message registered during program execution will be retained even if program execution is stopped,
but all messages will be cleared when the program is executed again.
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.
Example Programming
N
4
N+1
4
N+2
4
N+15
B
When CIO 0.00 turns ON in the following example, the 16 words of data in D100 through D115 are read
as the 32 characters of ASCII data for message number 7 and displayed at the Peripheral device.
0.00
N
D100
M
928
16 words
(32 characters)
M:
4D
41
D100
D101
54
45
Reads ASCII
D102
52
49
data up to 00.
D103
41
4C
D104
20
53
48
4F
D105
D106
52
54
D107
Leave out spaces.
(Values ignored)
D115
Programming Console display
MSG
A B C D E F
16 characters × 2 lines
16 characters × 2 lines max.
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Spaces

Advertisement

Table of Contents
loading

Table of Contents