
281
CHAPTER 7 CONVENIENT USAGE OF DEVICES
7
7.
2
Lo
cal Dev
ic
e
(3) Local devices when executing a subroutine program
When executing a subroutine program, the local device in the file where the subroutine program is stored can be
used by ON/OFF of SM776.
(a) When SM776 is off
(b) When SM776 is on
(c) Precautions
• When SM776 is on, local device data area read out when a subroutine program is called, and the data are
saved after execution of the RET instruction. Because of this, the scan time is increased if one subroutine
program is executed with SM776 set to on.
• The on/off status of SM776 is set for each CPU module. It cannot be set for each file.
• If the on/off status of SM776 is changed during program execution, control is implemented according to
the information after the change.
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.
Local device area
for file name, ABC
Local device area
for file name, DEF
Execution of subroutine
program
Local device
writing/reading
File name: DEF
(Standby type program)
File name: ABC
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: DEF
(Standby type program)
File name: ABC
Subroutine program
Содержание L02CPU
Страница 1: ......
Страница 2: ......
Страница 13: ...11 Memo ...
Страница 78: ...76 Memo ...
Страница 226: ...224 Memo ...
Страница 317: ...315 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 318: ...316 To the next page ...
Страница 319: ...317 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 320: ...318 To the next page ...
Страница 321: ...319 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 322: ...320 To the next page ...
Страница 323: ...321 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 324: ...322 To the next page ...
Страница 325: ...323 APPENDICES APPEN DIX Appendix 4 Character Codes Available in the Display Unit To the next page ...
Страница 326: ...324 To the next page ...
Страница 335: ...333 Memo ...
Страница 339: ......