Mitsubishi Electric melsec q00ujcpu User Manual page 436

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

(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.
Table9.14 Local device switching by ON/OFF of the special relay (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
X0
X2
Local device area for
file name, ABC
(b) When SM776 is on
File name: ABC
X0
X2
Local device area for
file name, ABC
Execution of subroutine
CALL
P100
program
INCP
D0
END
Local device
writing/reading
Figure 9.106 When SM776 is off
Execution of subroutine
CALL
P100
program
INCP
D0
Local device
writing/reading
END
Figure 9.107 When SM776 is on
Operation
File name: DEF
(Stand-by type program)
P100
Subroutine
program
RET
Local device area for
file name, DEF
File name: DEF
(Stand-by type program)
P100
Subroutine
program
RET
Local device area for
file name, DEF
CHAPTER9 DEVICES
9
2
3
4
5
6
7
8
9 - 91

Advertisement

Table of Contents
loading

Table of Contents