Mitsubishi QD51 Programming Manual page 606

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
ZMESSAGE
Instruction
• Defines a message port.
ZMESSAGE <message port number> LEN=<message length>
Syntax
<message port number>
<message length>
ZMESSAGE 1 LEN=128
Examples
• The ZMESSAGE instruction is used to define message ports in the main memory.
Description
Message ports are used to perform communication between programs that operate in
multitask operations.
• It is possible to define up to 32 message ports. <message port number> is used to specify
which of the message ports to be defined.
<message port number> is determined by the types of message port as follows. Select the
type according to the purpose used.
FIFO method • • • Message port numbers 16 to 31
The messages are stored in the message port buffer in the order they are sent to the
message ports.
Priority method • • • Message port numbers 0 to 15
This method retrieves the message sent by the program with the highest priority first,
regardless of the order of data transmission to the message ports.
11 - 436
Z MESSAGE
Program 2
Program 1
B
IN
• • • •
Specify the number of the message port to be
defined.
• • • •
Specify the length of the message used in the
message port in byte units (1 to 256).
• • • •
Defines the message port of message port number 1
with the message length of 128 bytes.
Message port buffer
A
(16)
(15)
(14)
Low priority
B
A
Program 2
High priority
MELSEC-Q
Available only in execution mode
B
A
(3)
(2)
(1)
Program 1
OUT
B
A
11 - 436

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents