Denso RC5 Specifications Page 65

  • Download
  • Add to my manuals
  • Print
  • Page
    / 692
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 64
Chapter 2 Program Flow
2-3
2.1.2 Calling a Program
If a program is created separately from the one that is mainly executed, the
program can be used by calling it like a subroutine.
When the program is called, designate the program name using a CALL
statement.
When a CALL statement calls a program, control moves to the program that is
called. If control executes an END statement on the last line of the called
program, control returns to the next line in the calling program.
The called program can also call another program. However, the called
program cannot call the calling program.
Since one program can call multiple programs, efficiency can be raised by
creating a universal program.
Only global variables can be commonly used in the calling program. Pass local
variables as arguments if required since they are not commonly used. Refer to
“8.16 Calling with a Value and with Reference”.
Program MOTION
Program TIMING
Program PRO2
Program PRO1
Fig. 2-3 Program Calling Diagram
One program can be called from multiple programs.
Other programs can be called in the called prograI.
(Calling nesting)
Page view 64
1 2 ... 60 61 62 63 64 65 66 67 68 69 70 ... 691 692

Comments to this Manuals

No comments