Mitsubishi Electronics QnUCPU Home Theater Server User Manual


 
CHAPTER9 DEVICES
9
2
3
4
5
6
7
8
9.14 Convenient Usage of Devices
9.14.2 Local device
9 - 91
(5) Using the local device corresponding to the file where a subroutine program is
stored
When executing a subroutine program, you can utilize the local device corresponding to the file where the
subroutine program is stored.
Use of the relevant local device is set by ON/OFF of SM776.
(a) When SM776 is off
(b) When SM776 is on
Table9.14 Local device switching by ON/OFF of the special relay (SM776)
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.
Figure 9.107 When SM776 is off
Figure 9.108 When SM776 is on
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)