Mitsubishi Q00JCPU User Manual page 737

Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

10
DEVICE EXPLANATION
(5) Using local devices used by the file where a subroutine program is
stored
It is possible to use local devices that are used by the file where a subroutine program
is stored when executing a subroutine program.
Whether or not such local devices are used is set by special relay (SM776) ON/OFF
setting.
Table10.30 Switching over local devices by setting ON/OFF for a special relay (SM776)
SM776
Executes calculation by the local devices that are used by the file where the
OFF
subroutine program was called.
Executes calculation by the local devices that are used by the file where the
ON
subroutine program is stored.
(a) Operation at "SM776 : OFF"
File name: ABC
X0
CALL
X2
INCP
Local devices used by
the file name: ABC
(b) Operation at "SM776 : ON"
File name: ABC
X0
CALL
X2
INCP
Local devices used by
the file name: ABC
Operation
Execution of the sub-
P100
routine program
D0
END
Read/write of the
local devices
Figure 10.106 When SM776 is OFF
Execution of the sub-
P100
routine program
D0
Read/write of the
local devices
END
Figure 10.107 When SM776 is ON
10.14 Convenient Usage of Devices
10.14.2 Local devices
File name: DEF
(Stand-by type program)
P100
Subroutine
program
RET
Local devices used
by the file name: DEF
File name: DEF
(Stand-by type program)
P100
Subroutine
program
RET
Local devices used by
the file name: DEF
10
- 122
9
10
11
12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents