9
-
106
CHAPTER9 DEVICES
9
9.13 C
onve
nient
Usag
e of Devices
9.13.2
Local device
(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.21 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.106 When SM776 is off
Figure 9.107 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)
Содержание 00JCPU
Страница 1: ......
Страница 2: ......
Страница 96: ...2 51 2 4 5 Character string data 1 Definition The CPU module uses shift JIS code character strings...
Страница 541: ......
Страница 542: ......