2
-
32
CHAPTER2 SEQUENCE PROGRAMS
2
3
2.3 Settings When Progr
am is Divided
2.3.4 Sta
nd-by type progr
am
(3) Execution method
Execute stand-by type programs in either of the following methods.
• Create subroutine and/or interrupt programs in a stand-by type program and call them using a pointer or
when an interrupt occurs.
• Change a stand-by type program to any other execution type using instructions.
(a) Creating subroutine and/or interrupt programs in a single stand-by type program
When creating subroutine and/or interrupt programs in a single stand-by type program, start the program from
the step 0.
The FEND instruction used in creation of a subroutine or interrupt program is not required after a main routine
program.
Figure 2.34 Creating subroutine programs in a single stand-by type program
P508
RET
RET
Y10
RET
END
Y11
Y12
P500
P501
Program B (Stand-by type program)
Program A
Main routine
program
Use common pointer.
Содержание 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: ......