User guide
Page 143
EDSR (End Subroutine)
[Function] Declares completion of subroutine.
*Subroutines are generally used at the end of a program.
[Example] EDSR
Declare completion of subroutine.
EDSR is always added at the end of a subroutine.
2-7 Subroutine Control Commands
BGSR (Begin Subroutine)
Subroutine 1
Finish
Chapter 4. Programming
Start
[Function] Declares start of subroutine.
*Subroutines are generally used at the end of a program.
[Example] BGSR 1
Declare start of subroutine.
Expansion
condition
(AND · OR)
Input
condition
(I/O · Flag)
Command
Post
(Output port · Flag)
Command Operand 1 Operand 2
BGSR Subroutine No.
Expansion
condition
(A N D · OR)
Input
condition
(I/O · Flag)
Com mand
Post
(Output port · Flag)
Com mand Operand 1 Operand 2
EDSR
Subroutine 1
BGSR 1
EDSR
BGSR 1
EDSR