Mitsubishi QD51 Programming Manual page 614

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
ZMESSAGE PUT
• Writes messages to a message port.
ZMESSAGE PUT <message port number>,<message>, • • •
Syntax
<message port number>
<message>
ZMESSAGE PUT 1,"Hello"
Examples
ZMESSAGE PUT 16, A%
• The ZMESSAGE PUT instruction is used to write messages to message ports.
Description
• Specify the message port number of the message port to which messages are to be
written in <message port number>.
• A numeric constant, character string constant, numeric variable, character variable, or an
array variable can be specified for <message>. A character string must be enclosed by
double quotation marks (").
• If <message> is a numeric value or numeric variable, it is possible to specify multiple
<message> by separating each <message> by commas.
In this case, the types of the messages written and the types of the messages read by the
ZMESSAGE GET instruction must match correctly. Otherwise, improper messages will be
read.
Examples
11 - 444
Instruction
ZMESSAGE PUT
[Program that writes messages]
ZMESSAGE PUT 1, A%, B!, C#,
Integer
Single precision
• • • •
Specify the number of the message port to which a
message is to be written.
• • • •
Specify the message to be written to the message
port.
• • • •
Writes a message containing the character string
"Hello" to the message port of message port number 1.
• • • •
Writes a message containing the data in A% to the
message port of message port number 16.
[Program that reads messages]
ZMESSAGE GET 1, P%, Q!, R#
Double
precision
ZMESSAGE GET 1, A1%, A2%, A3%
MELSEC-Q
Available only in execution mode
Double
Integer
precision
Single precision
Integer
3
11 - 444

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents