Mitsubishi Electronics Q173HCPU/Q172HCPU Work Light User Manual


 
6 - 176
6 MOTION PROGRAMS FOR POSITIONING CONTROL
6.16.29 Write device data to shared CPU memory (MULTW)
Code MULTW
Function
Write device data to shared
CPU memory
A part for (n) words of data since the device specified with (S) of the
self CPU module are written to since the shared CPU memory
address specified with (D) of the self CPU module.
Format
Self CPU device is made to turn on the by
writing completion.
M;D S n
Number of words to be written. (1 to 256)
First device No. which writing data are stored.
The shared CPU memory address of self CPU of
the writing destination device. (800H to FFFH)
D1
LWTU
[Explanation]
(1) A part for (n) words of data since the device specified with (S) of the self CPU
module are written to since the shared CPU memory address specified with (D)
of the self CPU module. After writing completion of the device data, the complete
bit device specified with (D1) turns on.
Write the data
of a part for
(n)words
Device memory
Shared CPU memor
y
of self CPU
(S)
(D)
Self CPU operation
data area
System area
Automatic refresh area
User-defined area
0H
200H
800H
0FFFH
Shared CPU memory address
This area
cannot be
used at
user area.
This area
can be
used at
user area.
(Note)
(Note) : When automatic refresh is not set, it can be used as a user defined area.
And, when automatic refresh is set up, since the automatic refresh transmitting
range becomes a user defined area.
(2) Do resetting of the complete bit device by the user program.
(3) Another MULTW instruction cannot be processed until MULTW instruction is
executed and a complete bit device is turned ON. When MULTW instruction was
executed again before MULTW instruction is executed and complete bit device
is turned ON, the MULTW instruction executed later becomes no processing.
(4) The devices that may be set at (D), (S) (n) and (D1) are shown below.
Word devices
(Note)
(16-bit integer type)
Bit devices
(Note)
Setting data
D W #@ M B F X Y
Constant
(D)
— — — — —
(S)
— — — — —
(n)
— — — — —
(D1) — — —
(Note) : The device No. cannot be specified indirectly.