EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q00U(J)CPU - Page 428

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...
426
(5) Using the local device corresponding to the file where a subroutine program is
stored
When a subroutine program is executed, the local device corresponding to the file where the subroutine program
is stored can be utilized.
Use of the relevant local device is set by ON/OFF of SM776.
(a) When SM776 is off
(b) When SM776 is on
(c) Precautions
When SM776 is on, local device data are read out when a subroutine program is called, and the data are
saved after execution of the RET instruction.
Because of this, the scan time is increased if one subroutine program is executed with SM776 set to on.
The on/off status of SM776 is set for each CPU module.
It cannot be set for each file.
If the on/off status of SM776 is changed during sequence program execution, control is implemented
according to the information after the change.
SM776 Operation
OFF Perform operations with the local device that corresponds to the source file of the subroutine program.
ON Perform operations with the local device that corresponds to the file where the subroutine program is stored.
X0
X2
P100
D0
CALL
INCP
END
RET
P100
Subroutine
program
Local device area for
file name, ABC
Local device area for
file name, DEF
File name: ABC
File name: DEF
(Stand-by type program)
Execution of subroutine
program
Local device
writing/reading
X0
X2
P100
D0
CALL
INCP
END
RET
P100
Subroutine
program
Local device area for
file name, ABC
Local device area for
file name, DEF
Execution of subroutine
program
Local device
writing/reading
File name: ABC
File name: DEF
(Stand-by type program)

Table of Contents

Related product manuals