Exchanging Data Between Tasks; Common Memory And Internal Devices - Mitsubishi QD51 Programming Manual

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

Advertisement

8 MULTITASK PROCESSING

8.5 Exchanging Data between Tasks

8.5.1 Common memory and internal devices

Common
memory
8 k bytes
Extension
registers
2 k bytes
8 - 14
The contents of variables and arrays in each task can be referenced only within each
program during multitask processing. It is necessary to use a special method to
exchange data between programs.
Variables
and arrays in
program 1
Common memory and extension registers (ED) can be used equally from all tasks in
AD51H-BASIC. Data can be exchanged between tasks by using this area.
Program 1
Variables
and arrays in
program 1
The PUTMEM and GETMEM instructions are used in order to access common
memory and extension registers. The memory configuration is as follows.
Common memory
Internal devices
(Address)
1800
1801
1802
1803
ED0
ED1
ED1023
ED1024
ED1025
(ED)
ED2047
Program 1
Common
memory
Internal devices
H
H
H
H
The PUTMEM and GETMEM instructions are used to access
to
the communication module's buffer memory as well.
37FF
Be careful when using these instructions; specifying addresses
H
0
to 17FF
H
H
3800
H
memory.
3801
H
to
3FFF
H
4000
H
4001
H
to
47FF
H
Variables
and arrays in
program 2
Program 2
Program 2
Variables
and arrays in
program 2
means performing an operation to the buffer
MELSEC-Q
8 - 14

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents