Mitsubishi Electric MELSEC iQ-R Series Migration Manual page 46

Servo system controller motion controller
Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

2. DETAILS OF MIGRATION FROM Q17nCPUN(-T) TO RnMTCPU
(6) Data read/write operation to the CPU shared memory
(a) MULTW/MULTR instructions
MULTW/MULTR instructions need to be used when Q17nCPUN(-T) accesses the CPU
shared memory. Meanwhile, "CPU buffer memory access device (from U3E \G0)" is
available for RnMTCPU to access the memory, and therefore the MULTW/MULTR
instructions have been eliminated in RnMTCPU.
If those instructions are used before migration, replace them with TO/FROM instruction,
BMOV instruction, or CPU buffer memory access device to directly access the memory.
The following shows program examples for revision.
Ex. 1) The program which writes two words from D0 to the CPU shared memory (from
MULTW HA00, D0, K2, M0
Ex. 2) The program which reads two words from the shared memory (HC00) of CPU No.1
MULTR #0, H3E0, HC00, K2
[Point]
Make sure to review the Motion SFC program since MELSOFT MT Works2 does not automatically
convert Motion SFC programs at project diversion.
An error occurs at the program conversion, and write operation cannot be performed.
(b) Access to other modules (MULTR/FROM/TO instructions)
If Q17nCPUN(-T) accesses other modules with MULTR instructions or FROM/TO
instructions although the specified I/O number cannot be found (the specified module
does not exist), a Motion SFC error will be outputted, however, the operation will continue.
With RnMTCPU, whether to stop or continue the program execution can be selected with
parameter.
([R series common parameter] - [CPU parameter] - [RAS setting] - [CPU module
operation setting at error detected] - [Module I/O No. specification incorrect])
The default setting of the parameter is "Stop".
In order to make the setting equivalent to that of Q17nCPUN(-T) (program execution
does not stop), change the parameter to "Continue".
HA00) of self-CPU (CPU No.2)
Q17nCPUN(-T)
to #0
Q17nCPUN(-T)
RnMTCPU
(One of the following three)
TO H3E10, HA00, D0, K2
BMOV U3E1\G2560, D0, K2
U3E1\G2560L = D0L
RnMTCPU
(One of the following three)
FROM #0, HE00, HC00, K2
BMOV #0, U3E0\G3072, K2
#0L = U3E0\G3072L
2 - 14

Advertisement

Table of Contents
loading

Table of Contents