EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q00U(J)CPU

Mitsubishi Electric MELSEC-Q00U(J)CPU
588 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
549
APPENDICES
A
Appendix 5 Replacing Basic Model QCPU or Qn(H)CPU with QnUCPU
Appendix 5.4 Functions
Even when program A overwrites the index register Z0 with a value of 30000, no change is made to the index
register Z0 used by program B. No error occurs as long as X10Z0 does not exceed the X device range.
When program A overwrites the index register Z0 with a value of 30000, the value of the index register Z0 used by
program B is also changed. An error occurs when X10Z0 exceeds the X device range.
When the CJ instruction is used as shown below and the previous condition (denoted as "(1) LD M0" in the figure
below) is off, avoid the execution of a contact instruction that uses the index register (denoted as "(2) LD X10Z0"
in the figure below). When condition (1) is off, instruction (2) is not executed and the value of the device used as a
contact is not read. Thus, the device range check processing does not detect "OPERATION ERROR" (error
code: 4101).
Note that the use of the CJ instruction increases the scan time.
Ex.
When the index register is used as a local device
Ex.
When the index register is not used as a local device
4) Use the CJ instruction.
30000
Z0
1000
Z0
Internal device
Internal device
For program B
For program A
Program A
Program B
Standard RAM/memory card (SRAM)
Program A
Program B
Device memory
Internal device
30000
Z0
(1)
(2)
Program

Table of Contents

Related product manuals