Mitsubishi Q00JCPU User Manual page 556

Q series, logic
Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

9
DEVICE EXPLANATION
9
9.13 Convenient Usage of Devices
- 105
9.13.1 Global devices and local devices
(d) 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.
Table9.23 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.
1) Operation at "SM776 : OFF"
File name: ABC
X0
CALL
X2
INCP
Local devices used by
the file name: ABC
2) 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
Diagram 9.99 When SM776 is OFF
Execution of the sub-
P100
routine program
D0
Read/write of the
local devices
END
Diagram 9.100 When SM776 is ON
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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents