
171
Part 4 Commands
EDSR (End subroutine)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Prohibited Prohibited EDSR Prohibited Prohibited CP
[Function]
Declare the end of a subroutine.
This command is always required at the end of a subroutine.
Thereafter, the program will proceed to the step next to the EXSR that has been called.
[Example 1] Refer to the section on EXSR command.
172
Part 4 Commands
1.9 Task Management
EXIT (End program)
Command, declaration
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command,
declaration
Operand 1
Operand 2
Output
(Output, flag)
Optional Optional EXIT Prohibited Prohibited
CP
[Function] End the program.
If the last step has been reached without encountering any EXIT command, the program
will return to the beginning.
(Note)
Status at program end
Output ports
Retained
Local flags
Cleared
Local variables
Cleared
Current values
Retained
Global flags
Retained
Global variables
Retained
[Example 1]
:
:
EXIT
End the program.
175
Summary of Contents for X-SEL PX
Page 1: ...Operation ManualSeventh Edition X SEL Controller PX QX Type Tenth Edition ...
Page 2: ......
Page 8: ......
Page 14: ......
Page 410: ...383 Appendix 386 ...
Page 452: ...425 Appendix 5 428 ...
Page 559: ......