Mitsubishi L02CPU User Manual page 283

Melsec-l series
Hide thumbs Also See for L02CPU:
Table of Contents

Advertisement

(3) Local devices when executing a subroutine program
When executing a subroutine program, the local device in the file where the subroutine program is stored can be
used by ON/OFF of SM776.
SM776
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.
(a) When SM776 is off
File name: ABC
Local device area
for file name, ABC
(b) When SM776 is on
File name: ABC
Local device area
for file name, ABC
(c) Precautions
• When SM776 is on, local device data area 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 program execution, control is implemented according to
the information after the change.
CHAPTER 7 CONVENIENT USAGE OF DEVICES
Operation
Execution of subroutine
program
Local device
writing/reading
Execution of subroutine
program
Local device
writing/reading
File name: DEF
(Standby type program)
Subroutine program
Local device area
for file name, DEF
File name: DEF
(Standby type program)
Subroutine program
Local device area
for file name, DEF
7
281

Advertisement

Table of Contents
loading

This manual is also suitable for:

L26cpu-bt

Table of Contents